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

Cargo and Rustc Can't seem to find the alloc crate #53889

Closed
BinaryAura opened this issue Sep 1, 2018 · 2 comments
Closed

Cargo and Rustc Can't seem to find the alloc crate #53889

BinaryAura opened this issue Sep 1, 2018 · 2 comments
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools

Comments

@BinaryAura
Copy link

I've been trying to learn more about the internals of rust by implementing data structures. I've been following this article, but it calls for using heap::allocate() rustc says heap is unresolved and I found that the heap module is in the alloc crate but, Cargo can't find it, unlike core, and rustc, says the 'alloc' is unresolved.

@GabrielMajeri
Copy link
Contributor

The article you mention hasn't been updated in a while, the functions you are looking for are in the std::alloc module.

@jonas-schievink jonas-schievink added E-help-wanted Call for participation: Help is requested to fix this issue. A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools and removed E-help-wanted Call for participation: Help is requested to fix this issue. labels Jan 27, 2019
@jonas-schievink
Copy link
Contributor

Closing as a duplicate of rust-lang/nomicon#83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

No branches or pull requests

3 participants