stats_alloc 0.1.3

An allocator wrapper that allows for instrumenting global allocators
Build #111098 2018-08-03T16:47:22.393025+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.3
Documenting stats_alloc v0.1.3
Running `rustdoc --crate-name stats_alloc .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.3/src/lib.rs -o /home/cratesfyi/cratesfyi/doc --cfg 'feature="default"' -Z unstable-options --resource-suffix -20180602-1.28.0-dev-b9bf4f162 -L dependency=/home/cratesfyi/cratesfyi/debug/deps`
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/stats_alloc-0.1.3/src/lib.rs:29:18
|
29 | use std::alloc::{GlobalAlloc, Layout, System};
|                  ^^^^^^^^^^^
|
= 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/stats_alloc-0.1.3/src/lib.rs:29:31
|
29 | use std::alloc::{GlobalAlloc, Layout, System};
|                               ^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'allocator_api' (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.3/src/lib.rs:29:39
|
29 | use std::alloc::{GlobalAlloc, Layout, System};
|                                       ^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'allocator_api' (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.3/src/lib.rs:54:44
|
54 | pub static INSTRUMENTED_SYSTEM: StatsAlloc<System> =
|                                            ^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'allocator_api' (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.3/src/lib.rs:62:16
|
62 |         inner: System,
|                ^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'allocator_api' (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/stats_alloc-0.1.3/src/lib.rs:66:17
|
66 | impl StatsAlloc<System> {
|                 ^^^^^^
|
= 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/stats_alloc-0.1.3/src/lib.rs:78:9
|
78 | impl<T: GlobalAlloc> StatsAlloc<T> {
|         ^^^^^^^^^^^
|
= 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/stats_alloc-0.1.3/src/lib.rs:137:26
|
137 | pub struct Region<'a, T: GlobalAlloc + 'a> {
|                          ^^^^^^^^^^^
|
= 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/stats_alloc-0.1.3/src/lib.rs:142:13
|
142 | impl<'a, T: GlobalAlloc + 'a> Region<'a, T> {
|             ^^^^^^^^^^^
|
= 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/stats_alloc-0.1.3/src/lib.rs:167:5
|
167 | /     unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
168 | |         (*self).alloc(layout)
169 | |     }
| |_____^
|
= 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/stats_alloc-0.1.3/src/lib.rs:171:5
|
171 | /     unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
172 | |         (*self).dealloc(ptr, layout)
173 | |     }
| |_____^
|
= 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/stats_alloc-0.1.3/src/lib.rs:175:5
|
175 | /     unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
176 | |         (*self).alloc_zeroed(layout)
177 | |     }
| |_____^
|
= 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/stats_alloc-0.1.3/src/lib.rs:179:5
|
179 | /     unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
180 | |         (*self).realloc(ptr, layout, new_size)
181 | |     }
| |_____^
|
= 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/stats_alloc-0.1.3/src/lib.rs:166:20
|
166 | unsafe impl<'a, T: GlobalAlloc + 'a> GlobalAlloc for &'a StatsAlloc<T> {
|                    ^^^^^^^^^^^
|
= 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/stats_alloc-0.1.3/src/lib.rs:166:38
|
166 | unsafe impl<'a, T: GlobalAlloc + 'a> GlobalAlloc for &'a StatsAlloc<T> {
|                                      ^^^^^^^^^^^
|
= 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/stats_alloc-0.1.3/src/lib.rs:185:5
|
185 | /     unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
186 | |         self.allocations.fetch_add(1, Ordering::SeqCst);
187 | |         self.bytes_allocated.fetch_add(layout.size(), Ordering::SeqCst);
188 | |         self.inner.alloc(layout)
189 | |     }
| |_____^
|
= 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/stats_alloc-0.1.3/src/lib.rs:190:5
|
190 | /     unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
191 | |         self.deallocations.fetch_add(1, Ordering::SeqCst);
192 | |         self.bytes_deallocated.fetch_add(layout.size(), Ordering::SeqCst);
193 | |         self.inner.dealloc(ptr, layout)
194 | |     }
| |_____^
|
= 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/stats_alloc-0.1.3/src/lib.rs:196:5
|
196 | /     unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
197 | |         self.allocations.fetch_add(1, Ordering::SeqCst);
198 | |         self.bytes_allocated.fetch_add(layout.size(), Ordering::SeqCst);
199 | |         self.inner.alloc_zeroed(layout)
200 | |     }
| |_____^
|
= 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/stats_alloc-0.1.3/src/lib.rs:202:5
|
202 | /     unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
203 | |         self.reallocations.fetch_add(1, Ordering::SeqCst);
204 | |         if new_size > layout.size() {
205 | |             self.bytes_allocated.fetch_add(new_size - layout.size(), Ordering::SeqCst);
...   |
210 | |         self.inner.realloc(ptr, layout, new_size)
211 | |     }
| |_____^
|
= 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/stats_alloc-0.1.3/src/lib.rs:184:16
|
184 | unsafe impl<T: GlobalAlloc> GlobalAlloc for StatsAlloc<T> {
|                ^^^^^^^^^^^
|
= 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/stats_alloc-0.1.3/src/lib.rs:184:29
|
184 | unsafe impl<T: GlobalAlloc> GlobalAlloc for StatsAlloc<T> {
|                             ^^^^^^^^^^^
|
= 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/stats_alloc-0.1.3/src/lib.rs:34:26
|
34 | pub struct StatsAlloc<T: 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/stats_alloc-0.1.3/src/lib.rs:167:36
|
167 |     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/stats_alloc-0.1.3/src/lib.rs:171:52
|
171 |     unsafe fn dealloc(&self, ptr: *mut u8, layout: 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/stats_alloc-0.1.3/src/lib.rs:175:43
|
175 |     unsafe fn alloc_zeroed(&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/stats_alloc-0.1.3/src/lib.rs:179:52
|
179 |     unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *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/stats_alloc-0.1.3/src/lib.rs:185:36
|
185 |     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/stats_alloc-0.1.3/src/lib.rs:190:52
|
190 |     unsafe fn dealloc(&self, ptr: *mut u8, layout: 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/stats_alloc-0.1.3/src/lib.rs:196:43
|
196 |     unsafe fn alloc_zeroed(&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/stats_alloc-0.1.3/src/lib.rs:202:52
|
202 |     unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
|                                                    ^^^^^^
|
= 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/stats_alloc-0.1.3/src/lib.rs:167:5
|
167 |     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.3/src/lib.rs:171:5
|
171 |     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.3/src/lib.rs:175:5
|
175 |     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.3/src/lib.rs:179:5
|
179 |     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.3/src/lib.rs:185:5
|
185 |     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.3/src/lib.rs:190:5
|
190 |     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.3/src/lib.rs:196:5
|
196 |     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.3/src/lib.rs:202:5
|
202 |     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.3/src/lib.rs -o /home/cratesfyi/cratesfyi/doc --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.