rust-osdev / linked-list-allocator

Apache License 2.0
219 stars 53 forks source link

no `Alloc` in `alloc` #19

Closed haraldh closed 4 years ago

haraldh commented 4 years ago
   Compiling bitflags v1.2.1
   Compiling lazy_static v1.4.0
   Compiling linked_list_allocator v0.6.5
error[E0432]: unresolved import `alloc::alloc::Alloc`
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/linked_list_allocator-0.6.5/src/lib.rs:14:20
   |
14 | use alloc::alloc::{Alloc, AllocErr, Layout};
   |                    ^^^^^
   |                    |
   |                    no `Alloc` in `alloc`
   |                    help: a similar name exists in the module: `alloc`

error: aborting due to previous error
phil-opp commented 4 years ago

Thanks for reporting! This is caused by https://github.com/rust-lang/rust/pull/68529 and the subsequent https://github.com/rust-lang/rust/pull/68736. I'll push a fix.