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 slabmalloc v0.3.0
Fresh spin v0.4.8
Documenting slabmalloc v0.3.0
Running `rustdoc --crate-name slabmalloc .cargo/registry/src/github.com-1ecc6299db9ec823/slabmalloc-0.3.0/src/lib.rs -o /home/cratesfyi/cratesfyi/doc -Z unstable-options --resource-suffix -20180602-1.28.0-dev-b9bf4f162 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern spin=/home/cratesfyi/cratesfyi/debug/deps/libspin-e32c438fac4f2071.rlib --extern-version spin=spin,0.4.8`
error[E0053]: method `alloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/slabmalloc-0.3.0/src/lib.rs:63:5
|
63 | unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `core::alloc::Opaque`, found u8
|
= note: expected type `unsafe fn(&SafeZoneAllocator, core::alloc::Layout) -> *mut core::alloc::Opaque`
found type `unsafe fn(&SafeZoneAllocator, core::alloc::Layout) -> *mut u8`
error[E0053]: method `dealloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/slabmalloc-0.3.0/src/lib.rs:68:5
|
68 | unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `core::alloc::Opaque`, found u8
|
= note: expected type `unsafe fn(&SafeZoneAllocator, *mut core::alloc::Opaque, core::alloc::Layout)`
found type `unsafe fn(&SafeZoneAllocator, *mut u8, core::alloc::Layout)`
error: Compilation failed, aborting rustdoc
thread 'main' panicked at 'Error(
CargoError(
ChainedError {
error: Could not document `slabmalloc`.,
cause: process didn't exit successfully: `rustdoc --crate-name slabmalloc .cargo/registry/src/github.com-1ecc6299db9ec823/slabmalloc-0.3.0/src/lib.rs -o /home/cratesfyi/cratesfyi/doc -Z unstable-options --resource-suffix -20180602-1.28.0-dev-b9bf4f162 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern spin=/home/cratesfyi/cratesfyi/debug/deps/libspin-e32c438fac4f2071.rlib --extern-version spin=spin,0.4.8` (exit code: 101)
}
),
State {
next_error: None,
backtrace: None
}
)', src/bin/cratesfyi.rs:142:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.