Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore compatibility with rustc older than 1.43
error[E0599]: no associated item named `MAX` found for type `isize` in the current scope --> src/identifier.rs:106:37 | 106 | debug_assert!(len <= isize::MAX as usize); | ^^^ associated item not found in `isize` | help: you are looking for the module in `std`, not the primitive type | 106 | debug_assert!(len <= std::isize::MAX as usize); | ^^^^^^^^^^^^^^^ error[E0599]: no associated item named `MAX` found for type `usize` in the current scope --> src/identifier.rs:132:44 | 132 | let max_alloc = usize::MAX / 2 - align; | ^^^ associated item not found in `usize` | help: you are looking for the module in `std`, not the primitive type | 132 | let max_alloc = std::usize::MAX / 2 - align; | ^^^^^^^^^^^^^^^
- Loading branch information