SafeManuallyDrop 1.0.3

A safe version of ManuallyDrop with various features and options to track undefined behavior when working with ManuallyDrop.
Documentation
Build #2522386 2025-09-21 12:14:59

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.92.0-nightly (dd7fda570 2025-09-20)

# docs.rs version docsrs 0.6.0 (f42173de 2025-09-12)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/SafeManuallyDrop-1.0.3/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/SafeManuallyDrop-1.0.3/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250920-1.92.0-nightly-dd7fda570\", \"--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: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 69329fbde73a667a7d300bb5decba9e0ba2cc615fcbe3ca882ac8ae8da112a6d [INFO] running `Command { std: "docker" "start" "-a" "69329fbde73a667a7d300bb5decba9e0ba2cc615fcbe3ca882ac8ae8da112a6d", kill_on_drop: false }` [INFO] [stderr] Scraping SafeManuallyDrop v1.0.3 (/opt/rustwide/workdir) [INFO] [stderr] Documenting SafeManuallyDrop v1.0.3 (/opt/rustwide/workdir) [INFO] [stderr] warning: unclosed HTML tag `T` [INFO] [stderr] --> src/macro_codegen.rs:254:47 [INFO] [stderr] | [INFO] [stderr] 254 | /// Takes the value from the ManuallyDrop<T> container out. [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/beh/unsafe.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | / crate::__codegen! { [INFO] [stderr] 16 | | @use; [INFO] [stderr] 17 | | @impl UnsafeManuallyDrop { [INFO] [stderr] 18 | | is_safe: false, [INFO] [stderr] ... | [INFO] [stderr] 51 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::invalid_html_tags)]` on by default [INFO] [stderr] = note: this warning originates in the macro `$crate::__codegen` which comes from the expansion of the macro `crate::__codegen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: try marking as source code [INFO] [stderr] | [INFO] [stderr] 254 | /// Takes the value from the `ManuallyDrop<T>` container out. [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: unclosed HTML tag `T` [INFO] [stderr] --> src/macro_codegen.rs:254:47 [INFO] [stderr] | [INFO] [stderr] 254 | /// Takes the value from the ManuallyDrop<T> container out. [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/beh/safe.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | / crate::__codegen! { [INFO] [stderr] 18 | | @use; [INFO] [stderr] 19 | | @impl SafeManuallyDrop { [INFO] [stderr] 20 | | is_safe: true, [INFO] [stderr] ... | [INFO] [stderr] 54 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `$crate::__codegen` which comes from the expansion of the macro `crate::__codegen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: try marking as source code [INFO] [stderr] | [INFO] [stderr] 254 | /// Takes the value from the `ManuallyDrop<T>` container out. [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] thread 'rustc' (76) panicked at compiler/rustc_span/src/lib.rs:2258:17: [INFO] [stderr] assertion failed: bpos.to_u32() >= mbc.pos.to_u32() + mbc.bytes as u32 [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x7fa812002983 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h7c6ba7eb3d79c74e [INFO] [stderr] 1: 0x7fa812802044 - core::fmt::write::h51b415dc740abb61 [INFO] [stderr] 2: 0x7fa811fb7201 - std::io::Write::write_fmt::h65024e6b411b5d6a [INFO] [stderr] 3: 0x7fa811fc86f2 - std::sys::backtrace::BacktraceLock::print::h1fa141d4115fcdc7 [INFO] [stderr] 4: 0x7fa811fce659 - std::panicking::default_hook::{{closure}}::h5b8d1bafc007debc [INFO] [stderr] 5: 0x7fa811fce183 - std::panicking::default_hook::hbee1bd2db26bedfe [INFO] [stderr] 6: 0x7fa810ff23c7 - std[aa543e5c3b33e14e]::panicking::update_hook::<alloc[25bb32ac37752f7b]::boxed::Box<rustc_driver_impl[4e82038d4654c963]::install_ice_hook::{closure#1}>>::{closure#0} [INFO] [stderr] 7: 0x7fa811fcea7f - std::panicking::panic_with_hook::h8cbd8c4377e6572b [INFO] [stderr] 8: 0x7fa811fce806 - std::panicking::panic_handler::{{closure}}::h335ded1aca77b6b6 [INFO] [stderr] 9: 0x7fa811fc8839 - std::sys::backtrace::__rust_end_short_backtrace::hd229ab5df32e8172 [INFO] [stderr] 10: 0x7fa811fa936d - __rustc[8ed8e68a5aa5849d]::rust_begin_unwind [INFO] [stderr] 11: 0x7fa80eff3dd0 - core::panicking::panic_fmt::hb55754338c38e2ee [INFO] [stderr] 12: 0x7fa80e95d5dc - core::panicking::panic::h8e8c803449f88ef4 [INFO] [stderr] 13: 0x7fa812c7eed4 - <rustc_span[201c3f2d192352b6]::source_map::SourceMap>::lookup_char_pos [INFO] [stderr] 14: 0x55b95556c1b7 - <rustdoc[ec1c864e2daf5081]::clean::types::Span>::cnum [INFO] [stderr] 15: 0x55b9554ecb79 - <rustdoc[ec1c864e2daf5081]::html::render::context::Context>::href_from_span [INFO] [stderr] 16: 0x55b955676f99 - <&core[e1f2d92e823976a5]::fmt::builders::FromFn<rustdoc[ec1c864e2daf5081]::html::sources::print_src<&mut core[e1f2d92e823976a5]::fmt::Formatter>::{closure#0}> as core[e1f2d92e823976a5]::fmt::Display>::fmt [INFO] [stderr] 17: 0x7fa812802044 - core::fmt::write::h51b415dc740abb61 [INFO] [stderr] 18: 0x55b95567767b - <&askama[a51abde2c2f047fc]::filters::escape::Safe<&core[e1f2d92e823976a5]::fmt::builders::FromFn<rustdoc[ec1c864e2daf5081]::html::sources::print_src<&mut core[e1f2d92e823976a5]::fmt::Formatter>::{closure#0}>> as core[e1f2d92e823976a5]::fmt::Display>::fmt [INFO] [stderr] 19: 0x7fa812802044 - core::fmt::write::h51b415dc740abb61 [INFO] [stderr] 20: 0x55b95546c7b3 - rustdoc[ec1c864e2daf5081]::html::render::render_call_locations::<&mut core[e1f2d92e823976a5]::fmt::Formatter>::{closure#2} [INFO] [stderr] 21: 0x55b9556ac1b3 - <core[e1f2d92e823976a5]::fmt::builders::FromFn<rustdoc[ec1c864e2daf5081]::html::render::document_full_inner::{closure#0}> as core[e1f2d92e823976a5]::fmt::Display>::fmt [INFO] [stderr] 22: 0x7fa812802044 - core::fmt::write::h51b415dc740abb61 [INFO] [stderr] 23: 0x55b955310e9c - rustdoc[ec1c864e2daf5081]::html::render::render_impl::{closure#0}::doc_impl_item::<&mut alloc[25bb32ac37752f7b]::string::String, &mut alloc[25bb32ac37752f7b]::string::String> [INFO] [stderr] 24: 0x55b9556a904b - <core[e1f2d92e823976a5]::fmt::builders::FromFn<rustdoc[ec1c864e2daf5081]::html::render::render_impl::{closure#0}> as core[e1f2d92e823976a5]::fmt::Display>::fmt [INFO] [stderr] 25: 0x55b9556499fd - <core[e1f2d92e823976a5]::iter::adapters::map::Map<core[e1f2d92e823976a5]::iter::adapters::filter_map::FilterMap<indexmap[283e8b9477b9db63]::map::iter::Values<rustdoc[ec1c864e2daf5081]::clean::types::ItemId, rustdoc[ec1c864e2daf5081]::html::render::write_shared::AliasedTypeImpl>, <rustdoc[ec1c864e2daf5081]::html::render::write_shared::Part<rustdoc[ec1c864e2daf5081]::html::render::write_shared::TypeAlias, rustdoc[ec1c864e2daf5081]::html::render::ordered_json::OrderedJson>>::get::{closure#0}>, <rustdoc[ec1c864e2daf5081]::html::render::write_shared::Part<rustdoc[ec1c864e2daf5081]::html::render::write_shared::TypeAlias, rustdoc[ec1c864e2daf5081]::html::render::ordered_json::OrderedJson>>::get::{closure#1}> as core[e1f2d92e823976a5]::iter::traits::iterator::Iterator>::next [INFO] [stderr] 26: 0x55b9555fbe4f - rustdoc[ec1c864e2daf5081]::html::render::write_shared::write_shared [INFO] [stderr] 27: 0x55b9554f71c5 - <rustdoc[ec1c864e2daf5081]::html::render::context::Context>::init [INFO] [stderr] 28: 0x55b955476f01 - rustdoc[ec1c864e2daf5081]::main_args::{closure#2}::{closure#0} [INFO] [stderr] 29: 0x55b9554674d0 - rustc_interface[ddde8db7de1554b0]::interface::run_compiler::<(), rustdoc[ec1c864e2daf5081]::main_args::{closure#2}>::{closure#1} [INFO] [stderr] 30: 0x55b9553ac5d8 - std[aa543e5c3b33e14e]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[ddde8db7de1554b0]::util::run_in_thread_with_globals<rustc_interface[ddde8db7de1554b0]::util::run_in_thread_pool_with_globals<rustc_interface[ddde8db7de1554b0]::interface::run_compiler<(), rustdoc[ec1c864e2daf5081]::main_args::{closure#2}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> [INFO] [stderr] 31: 0x55b95549d62d - <<std[aa543e5c3b33e14e]::thread::Builder>::spawn_unchecked_<rustc_interface[ddde8db7de1554b0]::util::run_in_thread_with_globals<rustc_interface[ddde8db7de1554b0]::util::run_in_thread_pool_with_globals<rustc_interface[ddde8db7de1554b0]::interface::run_compiler<(), rustdoc[ec1c864e2daf5081]::main_args::{closure#2}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[e1f2d92e823976a5]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stderr] 32: 0x7fa81399ddcd - std::sys::thread::unix::Thread::new::thread_start::ha9de35456108e0f3 [INFO] [stderr] 33: 0x7fa80d28aaa4 - <unknown> [INFO] [stderr] 34: 0x7fa80d317a34 - clone [INFO] [stderr] 35: 0x0 - <unknown> [INFO] [stderr] [INFO] [stderr] error: the compiler unexpectedly panicked. this is a bug. [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-rustdoc&template=ice.md [INFO] [stderr] [INFO] [stderr] note: please make sure that you have updated to the latest nightly [INFO] [stderr] [INFO] [stderr] warning: the ICE couldn't be written to `/opt/rustwide/workdir/rustc-ice-2025-09-21T12_14_59-75.txt`: Read-only file system (os error 30) [INFO] [stderr] [INFO] [stderr] note: rustc 1.92.0-nightly (dd7fda570 2025-09-20) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: --crate-type lib -Z unstable-options -Z unstable-options [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] end of query stack [INFO] [stderr] warning: `SafeManuallyDrop` (lib doc) generated 2 warnings [INFO] [stderr] error: could not document `SafeManuallyDrop` [INFO] running `Command { std: "docker" "inspect" "69329fbde73a667a7d300bb5decba9e0ba2cc615fcbe3ca882ac8ae8da112a6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69329fbde73a667a7d300bb5decba9e0ba2cc615fcbe3ca882ac8ae8da112a6d", kill_on_drop: false }` [INFO] [stdout] 69329fbde73a667a7d300bb5decba9e0ba2cc615fcbe3ca882ac8ae8da112a6d