allocator-api2
allocator-api2 copied to clipboard
Can't build using Rust 1.89
After a fresh clone of the repository, I can't run a cargo build using rustc 1.89.0 (29483883e 2025-08-04) and cargo 1.89.0 (c24e10642 2025-06-23).
error: implicit autoref creates a reference to the dereference of a raw pointer
--> src/vec/mod.rs:1983:30
|
1983 | let count = unsafe { (*other).len() };
| ^^-----^^^^^^^
| |
| this raw pointer has type `*const [T]`
|
= note: creating a reference requires the pointer target to be valid and imposes aliasing requirements
note: autoref is being applied to this expression, resulting in: `&[T]`
--> src/vec/mod.rs:1983:30
|
1983 | let count = unsafe { (*other).len() };
| ^^^^^^^^
note: method calls to `len` require a reference
--> /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/core/src/slice/mod.rs:116:5
= note: `#[deny(dangerous_implicit_autorefs)]` on by default
help: try using a raw pointer method instead; or if this reference is intentional, make it explicit
|
1983 | let count = unsafe { (&(*other)).len() };
| ++ +
error: could not compile `allocator-api2` (lib) due to 1 previous error