snafu 0.8.5

An ergonomic error handling library
Documentation
Build #1915952 2025-03-27T13:23:54.939892+00:00
# rustc version
rustc 1.87.0-nightly (a2e63569f 2025-03-26)# docs.rs version
docsrs 0.6.0 (004a02c4 2025-03-05)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/snafu-0.8.5/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/snafu-0.8.5/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--features" "futures guide" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250326-1.87.0-nightly-a2e63569f\", \"--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] [stdout] 97fb481f5ade5230574d793aac81e3c56dda17c69170a11146aa13babd28c746
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "97fb481f5ade5230574d793aac81e3c56dda17c69170a11146aa13babd28c746", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting snafu v0.8.5 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `std::option::Result`
[INFO] [stderr]    --> src/lib.rs:913:19
[INFO] [stderr]     |
[INFO] [stderr] 913 |     /// [Result]: std::option::Result
[INFO] [stderr]     |                   ^^^^^^^^^^^^^^^^^^^ no item named `Result` in module `option`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/./guide/comparison/failure.md:11:14
[INFO] [stderr]     |
[INFO] [stderr] 11  |   [`Whatever`](crate::Whatever) type:
[INFO] [stderr]     |    ----------  ^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |    |
[INFO] [stderr]     |    because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr]     = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default
[INFO] [stderr]     = note: this warning originates in the macro `generate_guide` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 11  - [`Whatever`](crate::Whatever) type:
[INFO] [stderr] 11  + [`Whatever`] type:
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:6:28
[INFO] [stderr]     |
[INFO] [stderr] 6   |   - implements the [`Error`][Error] trait
[INFO] [stderr]     |                     -------  ^^^^^ explicit target is redundant
[INFO] [stderr]     |                     |
[INFO] [stderr]     |                     because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr] note: referenced explicit link target defined here
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:181:10
[INFO] [stderr]     |
[INFO] [stderr] 181 |   [Error]: std::error::Error
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr]     = note: this warning originates in the macro `generate_guide` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 6   - - implements the [`Error`][Error] trait
[INFO] [stderr] 6   + - implements the [`Error`] trait
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:8:34
[INFO] [stderr]     |
[INFO] [stderr] 8   |   - implements the [`ErrorCompat`][ErrorCompat] trait
[INFO] [stderr]     |                     -------------  ^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                     |
[INFO] [stderr]     |                     because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr] note: referenced explicit link target defined here
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:180:16
[INFO] [stderr]     |
[INFO] [stderr] 180 |   [ErrorCompat]: crate::ErrorCompat
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr]     = note: this warning originates in the macro `generate_guide` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 8   - - implements the [`ErrorCompat`][ErrorCompat] trait
[INFO] [stderr] 8   + - implements the [`ErrorCompat`] trait
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:88:46
[INFO] [stderr]     |
[INFO] [stderr] 88  |   will have an implementation of [`IntoError`][IntoError]:
[INFO] [stderr]     |                                   -----------  ^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                                   |
[INFO] [stderr]     |                                   because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr] note: referenced explicit link target defined here
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:182:14
[INFO] [stderr]     |
[INFO] [stderr] 182 |   [IntoError]: crate::IntoError
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr]     = note: this warning originates in the macro `generate_guide` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 88  - will have an implementation of [`IntoError`][IntoError]:
[INFO] [stderr] 88  + will have an implementation of [`IntoError`]:
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:97:48
[INFO] [stderr]     |
[INFO] [stderr] 97  |   and `fail` and can be used with the [`ensure`](ensure) macro:
[INFO] [stderr]     |                                        --------  ^^^^^^ explicit target is redundant
[INFO] [stderr]     |                                        |
[INFO] [stderr]     |                                        because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr]     = note: this warning originates in the macro `generate_guide` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 97  - and `fail` and can be used with the [`ensure`](ensure) macro:
[INFO] [stderr] 97  + and `fail` and can be used with the [`ensure`] macro:
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:116:19
[INFO] [stderr]     |
[INFO] [stderr] 116 |   [`Error::source`][source] will return the underlying error, if
[INFO] [stderr]     |    ---------------  ^^^^^^ explicit target is redundant
[INFO] [stderr]     |    |
[INFO] [stderr]     |    because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr] note: referenced explicit link target defined here
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:185:11
[INFO] [stderr]     |
[INFO] [stderr] 185 |   [source]: std::error::Error::source
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr]     = note: this warning originates in the macro `generate_guide` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 116 - [`Error::source`][source] will return the underlying error, if
[INFO] [stderr] 116 + [`Error::source`] will return the underlying error, if
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:132:18
[INFO] [stderr]     |
[INFO] [stderr] 132 |   [`Error::cause`][cause] will return the same as `source`. As
[INFO] [stderr]     |    --------------  ^^^^^ explicit target is redundant
[INFO] [stderr]     |    |
[INFO] [stderr]     |    because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr] note: referenced explicit link target defined here
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:183:10
[INFO] [stderr]     |
[INFO] [stderr] 183 |   [cause]: std::error::Error::cause
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr]     = note: this warning originates in the macro `generate_guide` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 132 - [`Error::cause`][cause] will return the same as `source`. As
[INFO] [stderr] 132 + [`Error::cause`] will return the same as `source`. As
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:133:24
[INFO] [stderr]     |
[INFO] [stderr] 133 |   [`Error::description`][description] is soft-deprecated, it will
[INFO] [stderr]     |    --------------------  ^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |    |
[INFO] [stderr]     |    because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr] note: referenced explicit link target defined here
[INFO] [stderr]    --> src/./guide/what_code_is_generated.md:184:16
[INFO] [stderr]     |
[INFO] [stderr] 184 |   [description]: std::error::Error::description
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr]     = note: this warning originates in the macro `generate_guide` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 133 - [`Error::description`][description] is soft-deprecated, it will
[INFO] [stderr] 133 + [`Error::description`] is soft-deprecated, it will
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: redundant explicit link target
[INFO] [stderr]    --> src/./guide/upgrading.md:318:39
[INFO] [stderr]     |
[INFO] [stderr] 318 |   removed in favor of the [`IntoError`](crate::IntoError) trait. If
[INFO] [stderr]     |                            -----------  ^^^^^^^^^^^^^^^^ explicit target is redundant
[INFO] [stderr]     |                            |
[INFO] [stderr]     |                            because label contains path that resolves to same destination
[INFO] [stderr]     |
[INFO] [stderr]    ::: src/lib.rs:320:1
[INFO] [stderr]     |
[INFO] [stderr] 320 | / generate_guide! {
[INFO] [stderr] 321 | |     pub mod guide {
[INFO] [stderr] 322 | |         pub mod comparison {
[INFO] [stderr] 323 | |             pub mod failure;
[INFO] [stderr] ...   |
[INFO] [stderr] 339 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: when a link's destination is not specified,
[INFO] [stderr]             the label is used to resolve intra-doc links
[INFO] [stderr]     = note: this warning originates in the macro `generate_guide` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] help: remove explicit link target
[INFO] [stderr]     |
[INFO] [stderr] 318 - removed in favor of the [`IntoError`](crate::IntoError) trait. If
[INFO] [stderr] 318 + removed in favor of the [`IntoError`] trait. If
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: `snafu` (lib doc) generated 10 warnings
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.48s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/snafu/index.html
[INFO] running `Command { std: "docker" "inspect" "97fb481f5ade5230574d793aac81e3c56dda17c69170a11146aa13babd28c746", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "97fb481f5ade5230574d793aac81e3c56dda17c69170a11146aa13babd28c746", kill_on_drop: false }`
[INFO] [stdout] 97fb481f5ade5230574d793aac81e3c56dda17c69170a11146aa13babd28c746