stats_alloc 0.1.4

An allocator wrapper that allows for instrumenting global allocators
Build #111102 2018-08-03T17:19:30.286076+00:00
# 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 stats_alloc v0.1.4
Documenting stats_alloc v0.1.4
Running `rustdoc --crate-name stats_alloc .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.4/src/lib.rs -o /home/cratesfyi/cratesfyi/doc --cfg 'feature="docs-rs"' --cfg 'feature="nightly"' --cfg 'feature="default"' -Z unstable-options --resource-suffix -20180602-1.28.0-dev-b9bf4f162 -L dependency=/home/cratesfyi/cratesfyi/debug/deps`
error[E0053]: method `alloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.4/src/lib.rs:211:5
|
211 |     unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `std::heap::Opaque`, found u8
|
= note: expected type `unsafe fn(&&'a StatsAlloc<T>, std::heap::Layout) -> *mut std::heap::Opaque`
found type `unsafe fn(&&'a StatsAlloc<T>, std::heap::Layout) -> *mut u8`

error[E0053]: method `dealloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.4/src/lib.rs:215:5
|
215 |     unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `std::heap::Opaque`, found u8
|
= note: expected type `unsafe fn(&&'a StatsAlloc<T>, *mut std::heap::Opaque, std::heap::Layout)`
found type `unsafe fn(&&'a StatsAlloc<T>, *mut u8, std::heap::Layout)`

error[E0053]: method `alloc_zeroed` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.4/src/lib.rs:219:5
|
219 |     unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `std::heap::Opaque`, found u8
|
= note: expected type `unsafe fn(&&'a StatsAlloc<T>, std::heap::Layout) -> *mut std::heap::Opaque`
found type `unsafe fn(&&'a StatsAlloc<T>, std::heap::Layout) -> *mut u8`

error[E0053]: method `realloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.4/src/lib.rs:223:5
|
223 |     unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `std::heap::Opaque`, found u8
|
= note: expected type `unsafe fn(&&'a StatsAlloc<T>, *mut std::heap::Opaque, std::heap::Layout, usize) -> *mut std::heap::Opaque`
found type `unsafe fn(&&'a StatsAlloc<T>, *mut u8, std::heap::Layout, usize) -> *mut u8`

error[E0053]: method `alloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.4/src/lib.rs:229:5
|
229 |     unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `std::heap::Opaque`, found u8
|
= note: expected type `unsafe fn(&StatsAlloc<T>, std::heap::Layout) -> *mut std::heap::Opaque`
found type `unsafe fn(&StatsAlloc<T>, std::heap::Layout) -> *mut u8`

error[E0053]: method `dealloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.4/src/lib.rs:235:5
|
235 |     unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `std::heap::Opaque`, found u8
|
= note: expected type `unsafe fn(&StatsAlloc<T>, *mut std::heap::Opaque, std::heap::Layout)`
found type `unsafe fn(&StatsAlloc<T>, *mut u8, std::heap::Layout)`

error[E0053]: method `alloc_zeroed` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.4/src/lib.rs:241:5
|
241 |     unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `std::heap::Opaque`, found u8
|
= note: expected type `unsafe fn(&StatsAlloc<T>, std::heap::Layout) -> *mut std::heap::Opaque`
found type `unsafe fn(&StatsAlloc<T>, std::heap::Layout) -> *mut u8`

error[E0053]: method `realloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.4/src/lib.rs:247:5
|
247 |     unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `std::heap::Opaque`, found u8
|
= note: expected type `unsafe fn(&StatsAlloc<T>, *mut std::heap::Opaque, std::heap::Layout, usize) -> *mut std::heap::Opaque`
found type `unsafe fn(&StatsAlloc<T>, *mut u8, std::heap::Layout, usize) -> *mut u8`

error: Compilation failed, aborting rustdoc

thread 'main' panicked at 'Error(
CargoError(
ChainedError {
error: Could not document `stats_alloc`.,
cause: process didn't exit successfully: `rustdoc --crate-name stats_alloc .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.4/src/lib.rs -o /home/cratesfyi/cratesfyi/doc --cfg feature="docs-rs" --cfg feature="nightly" --cfg feature="default" -Z unstable-options --resource-suffix -20180602-1.28.0-dev-b9bf4f162 -L dependency=/home/cratesfyi/cratesfyi/debug/deps` (exit code: 101)
}
),
State {
next_error: None,
backtrace: None
}
)', src/bin/cratesfyi.rs:142:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.