Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core::alloc::Alloc no longer exists in rust nightly. It is replaced by AllocRef. #10

Closed
yima77 opened this issue Feb 18, 2020 · 2 comments

Comments

@yima77
Copy link

yima77 commented Feb 18, 2020

Now, dlmalloc build fails with:

error[E0432]: unresolved import core::alloc::Alloc
--> /home/xyz/.cargo/registry/src/github.conef.uk-1ecc6299db9ec823/dlmalloc-0.1.3/src/lib.rs:21:19
|
21 | use core::alloc::{Alloc, Layout, AllocErr};
| ^^^^^ no Alloc in alloc

@TimDiekmann
Copy link
Contributor

The AllocRef trait is currently highly unstable and in the next weeks you can expect quite a few changes. I will probably make a PR when #38, #41, and #42 at the allocator wg are merged.

@TimDiekmann
Copy link
Contributor

Depending on how fast we move forward, this will be fixed with rust-lang/wg-allocators#21 (impl<T: GlobalAlloc> AllocRef for T).

@yima77 yima77 closed this as completed Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants