allocator_api 0.6.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.33.
Documentation

Build #3627224 2026-06-19 12:20:10

# rustc version rustc 1.98.0-nightly (bc2112ed5 2026-06-18)

# docs.rs version docsrs 0.0.0 (886bc7a22b1adc4b387ce1343447fe3af98d9ce5 2026-06-14 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "134f72e866e3a0efe18f21ce2ba5d09d59f7e3e59410528c7ff651aecc29fd46" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260618-1.98.0-nightly-bc2112ed5\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting allocator_api v0.6.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/liballoc/boxed.rs:25:1 [INFO] [stderr] | [INFO] [stderr] 25 | /// A pointer type for heap allocation. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/liballoc/raw_vec.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | / /// A low-level utility for more ergonomically allocating, reallocating, and deallocating [INFO] [stderr] 16 | | /// a buffer of memory on the heap without having to worry about all the corner cases [INFO] [stderr] 17 | | /// involved. This type is excellent for building your own data structures like Vec and VecDeque. [INFO] [stderr] 18 | | /// In particular: [INFO] [stderr] ... | [INFO] [stderr] 40 | | /// field. This allows zero-sized types to not be special-cased by consumers of [INFO] [stderr] 41 | | /// this type. [INFO] [stderr] | |_-------------^ [INFO] [stderr] | | [INFO] [stderr] | rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: `allocator_api` (lib doc) generated 2 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/allocator_api/index.html [INFO] running `Command { std: "docker" "inspect" "134f72e866e3a0efe18f21ce2ba5d09d59f7e3e59410528c7ff651aecc29fd46", kill_on_drop: false }`