Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.
# rustc version
rustc 1.28.0-dev (b9bf4f162 2018-06-02)# docs.rs version
cratesfyi 0.5.0 (579f83b 2018-03-05)# build log
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading slab_allocator v0.3.5
Fresh spin v0.4.9
Compiling linked_list_allocator v0.6.3
Running `rustc --crate-name linked_list_allocator .cargo/registry/src/github.com-1ecc6299db9ec823/linked_list_allocator-0.6.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="use_spin"' --cfg 'feature="default"' --cfg 'feature="spin"' -C metadata=1120abeac83f1f84 -C extra-filename=-1120abeac83f1f84 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern spin=/home/cratesfyi/cratesfyi/debug/deps/libspin-606b9d8488fbb2f2.rlib --extern-version spin=spin,0.4.9 --cap-lints allow`
error[E0053]: method `alloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/linked_list_allocator-0.6.3/src/lib.rs:134:5
|
134 | unsafe fn alloc(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocErr> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `core::alloc::Opaque`, found u8
|
= note: expected type `unsafe fn(&mut Heap, core::alloc::Layout) -> core::result::Result<core::ptr::NonNull<core::alloc::Opaque>, core::alloc::AllocErr>`
found type `unsafe fn(&mut Heap, core::alloc::Layout) -> core::result::Result<core::ptr::NonNull<u8>, core::alloc::AllocErr>`
error[E0053]: method `dealloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/linked_list_allocator-0.6.3/src/lib.rs:138:5
|
138 | unsafe fn dealloc(&mut self, ptr: NonNull<u8>, layout: Layout) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `core::alloc::Opaque`, found u8
|
= note: expected type `unsafe fn(&mut Heap, core::ptr::NonNull<core::alloc::Opaque>, core::alloc::Layout)`
found type `unsafe fn(&mut Heap, core::ptr::NonNull<u8>, core::alloc::Layout)`
error[E0053]: method `alloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/linked_list_allocator-0.6.3/src/lib.rs:177:5
|
177 | unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `core::alloc::Opaque`, found u8
|
= note: expected type `unsafe fn(&LockedHeap, core::alloc::Layout) -> *mut core::alloc::Opaque`
found type `unsafe fn(&LockedHeap, core::alloc::Layout) -> *mut u8`
error[E0053]: method `dealloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/linked_list_allocator-0.6.3/src/lib.rs:185:5
|
185 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `core::alloc::Opaque`, found u8
|
= note: expected type `unsafe fn(&LockedHeap, *mut core::alloc::Opaque, core::alloc::Layout)`
found type `unsafe fn(&LockedHeap, *mut u8, core::alloc::Layout)`
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0053`.
thread 'main' panicked at 'Error(
CargoError(
ChainedError {
error: Could not compile `linked_list_allocator`.,
cause: process didn't exit successfully: `rustc --crate-name linked_list_allocator .cargo/registry/src/github.com-1ecc6299db9ec823/linked_list_allocator-0.6.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg feature="use_spin" --cfg feature="default" --cfg feature="spin" -C metadata=1120abeac83f1f84 -C extra-filename=-1120abeac83f1f84 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern spin=/home/cratesfyi/cratesfyi/debug/deps/libspin-606b9d8488fbb2f2.rlib --extern-version spin=spin,0.4.9 --cap-lints allow` (exit code: 101)
}
),
State {
next_error: None,
backtrace: None
}
)', src/bin/cratesfyi.rs:142:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.