We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to build following code with dependency on linked-list-allocator version 0.7.0:
linked-list-allocator
0.7.0
use linked_list_allocator::LockedHeap;
However I got this error:
error[E0053]: method `alloc` has an incompatible type for trait --> /Users/mac/.cargo/registry/src/github.com-1ecc6299db9ec823/linked_list_allocator-0.7.0/src/lib.rs:133:5 | 133 | unsafe fn alloc(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocErr> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found struct `core::ptr::NonNull` | = note: expected fn pointer `unsafe fn(&mut Heap, core::alloc::Layout) -> core::result::Result<(core::ptr::NonNull<u8>, usize), _>` found fn pointer `unsafe fn(&mut Heap, core::alloc::Layout) -> core::result::Result<core::ptr::NonNull<u8>, _>`
My Rust version is rustc 1.43.0-nightly (75cf41afb 2020-03-04).
rustc 1.43.0-nightly (75cf41afb 2020-03-04)
The text was updated successfully, but these errors were encountered:
This error is observed when attempting to build phil-opp/blog_os.
Sorry, something went wrong.
alloc_ref
Successfully merging a pull request may close this issue.
I tried to build following code with dependency on
linked-list-allocator
version0.7.0
:However I got this error:
My Rust version is
rustc 1.43.0-nightly (75cf41afb 2020-03-04)
.The text was updated successfully, but these errors were encountered: