qadapt 0.1.0

The Quick And Dirty Allocation Profiling Tool
Build #117960 2018-09-23T00:00:18.614346+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 qadapt v0.1.0
Fresh spin v0.4.9
Fresh libc v0.2.43
Documenting qadapt v0.1.0
Running `rustdoc --crate-name qadapt .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.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-606b9d8488fbb2f2.rlib --extern-version spin=spin,0.4.9 --extern libc=/home/cratesfyi/cratesfyi/debug/deps/liblibc-6483f3c0908451dd.rlib --extern-version libc=libc,0.2.43`
error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.0/src/lib.rs:9:5
|
9 | use core::alloc::Layout;
|     ^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.0/src/lib.rs:10:5
|
10 | use core::alloc::GlobalAlloc;
|     ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.0/src/lib.rs:34:5
|
34 | /     unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
35 | |         if !INTERNAL_ALLOCATION.load(Ordering::SeqCst) {
36 | |             self.internal().has_allocated.store(true, Ordering::SeqCst);
37 | |         }
38 | |
39 | |         malloc(layout.size()) as *mut u8
40 | |     }
| |_____^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.0/src/lib.rs:42:5
|
42 | /     unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) {
43 | |         free(ptr as *mut c_void)
44 | |     }
| |_____^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.0/src/lib.rs:33:13
|
33 | unsafe impl GlobalAlloc for QADAPT {
|             ^^^^^^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.0/src/lib.rs:34:36
|
34 |     unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
|                                    ^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.0/src/lib.rs:42:53
|
42 |     unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) {
|                                                     ^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0053]: method `alloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.0/src/lib.rs:34:5
|
34 |     unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `core::alloc::Opaque`, found u8
|
= note: expected type `unsafe fn(&QADAPT, core::alloc::Layout) -> *mut core::alloc::Opaque`
found type `unsafe fn(&QADAPT, core::alloc::Layout) -> *mut u8`

error[E0053]: method `dealloc` has an incompatible type for trait
--> .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.0/src/lib.rs:42:5
|
42 |     unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) {
|     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected extern type `core::alloc::Opaque`, found u8
|
= note: expected type `unsafe fn(&QADAPT, *mut core::alloc::Opaque, core::alloc::Layout)`
found type `unsafe fn(&QADAPT, *mut u8, core::alloc::Layout)`

error: Compilation failed, aborting rustdoc

thread 'main' panicked at 'Error(
CargoError(
ChainedError {
error: Could not document `qadapt`.,
cause: process didn't exit successfully: `rustdoc --crate-name qadapt .cargo/registry/src/github.com-1ecc6299db9ec823/qadapt-0.1.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-606b9d8488fbb2f2.rlib --extern-version spin=spin,0.4.9 --extern libc=/home/cratesfyi/cratesfyi/debug/deps/liblibc-6483f3c0908451dd.rlib --extern-version libc=libc,0.2.43` (exit code: 101)
}
),
State {
next_error: None,
backtrace: None
}
)', src/bin/cratesfyi.rs:142:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.