allocator_api 0.5.0

This is a copy of the unstable allocator_api (https://github.com/rust-lang/rust/issues/32838) and of parts of the unstable alloc feature. Usable with stable rust, but requires 1.26.
Documentation
Build #106732 2018-06-26 09:00:03

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 allocator_api v0.5.0 Fresh semver-parser v0.7.0 Fresh semver v0.9.0 Compiling rustc_version v0.2.2 Running `rustc --crate-name rustc_version .cargo/registry/src/github.com-1ecc6299db9ec823/rustc_version-0.2.2/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=b736822a67fa4cb2 -C extra-filename=-b736822a67fa4cb2 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-5bed4733df187960.rlib --extern-version semver=semver,0.9.0 --cap-lints allow` Compiling allocator_api v0.5.0 Running `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/allocator_api-0.5.0/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="std"' --cfg 'feature="default"' -C metadata=170ab7d91131e7b1 -C extra-filename=-170ab7d91131e7b1 --out-dir /home/cratesfyi/cratesfyi/debug/build/allocator_api-170ab7d91131e7b1 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern rustc_version=/home/cratesfyi/cratesfyi/debug/deps/librustc_version-b736822a67fa4cb2.rlib --extern-version rustc_version=rustc_version,0.2.2 --cap-lints allow` Running `/home/cratesfyi/cratesfyi/debug/build/allocator_api-170ab7d91131e7b1/build-script-build` Documenting allocator_api v0.5.0 Running `rustdoc --crate-name allocator_api .cargo/registry/src/github.com-1ecc6299db9ec823/allocator_api-0.5.0/src/lib.rs -o /home/cratesfyi/cratesfyi/doc --cfg 'feature="std"' --cfg 'feature="default"' -Z unstable-options --resource-suffix -20180602-1.28.0-dev-b9bf4f162 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cfg 'feature="nonnull_cast"' --cfg 'feature="global_alloc"'` error[E0432]: unresolved import `std::alloc::alloc` --> .cargo/registry/src/github.com-1ecc6299db9ec823/allocator_api-0.5.0/src/lib.rs:59:22 | 59 | use std::alloc::{alloc, alloc_zeroed, dealloc, realloc}; | ^^^^^ no `alloc` in `alloc`. Did you mean to use `Alloc`? error[E0432]: unresolved import `std::alloc::alloc_zeroed` --> .cargo/registry/src/github.com-1ecc6299db9ec823/allocator_api-0.5.0/src/lib.rs:59:29 | 59 | use std::alloc::{alloc, alloc_zeroed, dealloc, realloc}; | ^^^^^^^^^^^^ no `alloc_zeroed` in `alloc` error[E0432]: unresolved import `std::alloc::dealloc` --> .cargo/registry/src/github.com-1ecc6299db9ec823/allocator_api-0.5.0/src/lib.rs:59:43 | 59 | use std::alloc::{alloc, alloc_zeroed, dealloc, realloc}; | ^^^^^^^ no `dealloc` in `alloc` error[E0432]: unresolved import `std::alloc::realloc` --> .cargo/registry/src/github.com-1ecc6299db9ec823/allocator_api-0.5.0/src/lib.rs:59:52 | 59 | use std::alloc::{alloc, alloc_zeroed, dealloc, realloc}; | ^^^^^^^ no `realloc` in `alloc` 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/allocator_api-0.5.0/src/lib.rs:57:9 | 57 | use core::alloc::Layout as CoreLayout; | ^^^^^^^^^^^^^^^^^^^ | = 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/allocator_api-0.5.0/src/lib.rs:71:27 | 71 | impl From<Layout> for CoreLayout { | ^^^^^^^^^^ | = help: add #![feature(allocator_api)] to the crate attributes to enable error: Compilation failed, aborting rustdoc thread 'main' panicked at 'Error( CargoError( ChainedError { error: Could not document `allocator_api`., cause: process didn't exit successfully: `rustdoc --crate-name allocator_api .cargo/registry/src/github.com-1ecc6299db9ec823/allocator_api-0.5.0/src/lib.rs -o /home/cratesfyi/cratesfyi/doc --cfg feature="std" --cfg feature="default" -Z unstable-options --resource-suffix -20180602-1.28.0-dev-b9bf4f162 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cfg feature="nonnull_cast" --cfg feature="global_alloc"` (exit code: 101) } ), State { next_error: None, backtrace: None } )', src/bin/cratesfyi.rs:142:13 note: Run with `RUST_BACKTRACE=1` for a backtrace.