[INFO] fetching crate errgo 0.1.4...
[INFO] testing errgo-0.1.4 against beta-2026-03-05 for beta-1.95-1
[INFO] extracting crate errgo 0.1.4 into /workspace/builds/worker-5-tc2/source
[INFO] started tweaking crates.io crate errgo 0.1.4
[INFO] finished tweaking crates.io crate errgo 0.1.4
[INFO] tweaked toml for crates.io crate errgo 0.1.4 written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate errgo 0.1.4 on toolchain beta-2026-03-05
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2026-03-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2026-03-05" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 37 packages to latest compatible versions
[INFO] [stderr]       Adding thiserror v1.0.69 (available: v2.0.18)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2026-03-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-03-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c1f68ef45d6864249489ac228fac60e0cd05f638cdd5afab7ff1ad752cc6dd00
[INFO] running `Command { std: "docker" "start" "-a" "c1f68ef45d6864249489ac228fac60e0cd05f638cdd5afab7ff1ad752cc6dd00", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c1f68ef45d6864249489ac228fac60e0cd05f638cdd5afab7ff1ad752cc6dd00", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c1f68ef45d6864249489ac228fac60e0cd05f638cdd5afab7ff1ad752cc6dd00", kill_on_drop: false }`
[INFO] [stdout] c1f68ef45d6864249489ac228fac60e0cd05f638cdd5afab7ff1ad752cc6dd00
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-03-05" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7a7d77cc693c9ee58513280261a767324530d274ee78cd93a908b4c0b8001ae9
[INFO] running `Command { std: "docker" "start" "-a" "7a7d77cc693c9ee58513280261a767324530d274ee78cd93a908b4c0b8001ae9", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling errgo v0.1.4 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.28s
[INFO] running `Command { std: "docker" "inspect" "7a7d77cc693c9ee58513280261a767324530d274ee78cd93a908b4c0b8001ae9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7a7d77cc693c9ee58513280261a767324530d274ee78cd93a908b4c0b8001ae9", kill_on_drop: false }`
[INFO] [stdout] 7a7d77cc693c9ee58513280261a767324530d274ee78cd93a908b4c0b8001ae9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-03-05" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 155587a6b3715654fc20a09e10e4032dd4470637f8db7798264c36537e6128ac
[INFO] running `Command { std: "docker" "start" "-a" "155587a6b3715654fc20a09e10e4032dd4470637f8db7798264c36537e6128ac", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling winnow v0.7.15
[INFO] [stderr]    Compiling toml_writer v1.0.6+spec-1.1.0
[INFO] [stderr]    Compiling termcolor v1.4.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling target-triple v1.0.0
[INFO] [stderr]    Compiling diff v0.1.13
[INFO] [stderr]    Compiling dissimilar v1.0.10
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling yansi v1.0.1
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling toml_datetime v1.0.0+spec-1.1.0
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling serde_spanned v1.0.4
[INFO] [stderr]    Compiling pretty_assertions v1.4.1
[INFO] [stderr]    Compiling toml_parser v1.0.9+spec-1.1.0
[INFO] [stderr]    Compiling toml v1.0.6+spec-1.1.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling errgo v0.1.4 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling trybuild v1.0.116
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 19.86s
[INFO] running `Command { std: "docker" "inspect" "155587a6b3715654fc20a09e10e4032dd4470637f8db7798264c36537e6128ac", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "155587a6b3715654fc20a09e10e4032dd4470637f8db7798264c36537e6128ac", kill_on_drop: false }`
[INFO] [stdout] 155587a6b3715654fc20a09e10e4032dd4470637f8db7798264c36537e6128ac
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-03-05" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 28ee90ddd6c4c100aba4b1170aa8c847b8f5546e4ad22a5482df92e16569dc4a
[INFO] running `Command { std: "docker" "start" "-a" "28ee90ddd6c4c100aba4b1170aa8c847b8f5546e4ad22a5482df92e16569dc4a", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/errgo-7a9c530d6631874a)
[INFO] [stdout] 
[INFO] [stdout] running 14 tests
[INFO] [stdout] test config::tests::parse_derives ... ok
[INFO] [stdout] test config::tests::parse_attributes ... ok
[INFO] [stdout] test config::tests::parse_visibility ... ok
[INFO] [stdout] test config::tests::parse_all ... ok
[INFO] [stdout] test data::tests::parse_unit_variant ... ok
[INFO] [stdout] test data::tests::parse_named_variant ... ok
[INFO] [stdout] test data::tests::use_unit_variant ... ok
[INFO] [stdout] test data::tests::parse_unit_variant_with_discriminant ... ok
[INFO] [stdout] test data::tests::use_unnamed_variant ... ok
[INFO] [stdout] test data::tests::parse_unnamed_variant ... ok
[INFO] [stdout] test tests::get_result_name ... ok
[INFO] [stdout] test data::tests::use_named_variant ... ok
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling quote v1.0.45
[INFO] [stderr]    Compiling unicode-ident v1.0.24
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling yansi v1.0.1
[INFO] [stderr]    Compiling diff v0.1.13
[INFO] [stdout] test tests::readme ... FAILED
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling pretty_assertions v1.4.1
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling errgo v0.1.4 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling errgo-tests v0.0.0 (/opt/rustwide/target/tests/trybuild/errgo)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.88s
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr] test trybuild/pass/derive_passthrough.rs [should pass] ... ok
[INFO] [stderr] test trybuild/pass/empty.rs [should pass] ... ok
[INFO] [stderr] test trybuild/pass/err_attr_passthrough.rs [should pass] ... ok
[INFO] [stderr] test trybuild/pass/mix.rs [should pass] ... ok
[INFO] [stderr] test trybuild/pass/nested.rs [should pass] ... ok
[INFO] [stderr] test trybuild/pass/struct_attr_passthrough.rs [should pass] ... ok
[INFO] [stderr] test trybuild/pass/structy.rs [should pass] ... ok
[INFO] [stderr] test trybuild/pass/tuple.rs [should pass] ... ok
[INFO] [stderr] test trybuild/pass/unit.rs [should pass] ... ok
[INFO] [stderr] test trybuild/pass/visibility.rs [should pass] ... ok
[INFO] [stderr] 
[INFO] [stderr] WARNINGS:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] warning: unused import: `inner::FooError`
[INFO] [stderr]  --> trybuild/pass/visibility.rs:2:13
[INFO] [stderr]   |
[INFO] [stderr] 2 |     pub use inner::FooError;
[INFO] [stderr]   |             ^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] 
[INFO] [stderr] STDERR:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] warning: unused import: `inner::FooError`
[INFO] [stderr]  --> /opt/rustwide/workdir/trybuild/pass/visibility.rs:2:13
[INFO] [stderr]   |
[INFO] [stderr] 2 |     pub use inner::FooError;
[INFO] [stderr]   |             ^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] 
[INFO] [stderr] test trybuild/fail/invalid_ident.rs [should fail to compile] ... ok
[INFO] [stderr] test trybuild/fail/invalid_signature.rs [should fail to compile] ... ok
[INFO] [stderr] test trybuild/fail/unsupported_macro_args.rs [should fail to compile] ... ok
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stdout] test tests::trybuild ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- tests::readme stdout ----
[INFO] [stdout] 
[INFO] [stdout] thread 'tests::readme' (36) panicked at src/lib.rs:331:9:
[INFO] [stdout] assertion failed: `(left == right)`
[INFO] [stdout] 
[INFO] [stdout] [1mDiff[0m [31m< left[0m / [32mright >[0m :
[INFO] [stdout] [32m><div align="center">[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>[![crates-io](https://img.shields.io/crates/v/errgo.svg)](https://crates.io/crates/errgo)[0m
[INFO] [stdout] [32m>[![docs-rs](https://docs.rs/errgo/badge.svg)](https://docs.rs/errgo)[0m
[INFO] [stdout] [32m>[![github](https://img.shields.io/static/v1?label=&message=github&color=grey&logo=github)](https://github.com/aatifsyed/errgo)[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m></div>[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m># `errgo`[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>Generate `enum` error variants inline.[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>A slightly type-safer take on [anyhow], where each ad-hoc error is handleable by the caller.[0m
[INFO] [stdout] [32m>Designed to play nice with other crates like [strum] or [thiserror].[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>This crate was written to aid wrapping C APIs - transforming e.g error codes to handleable messages.[0m
[INFO] [stdout] [32m>It shouldn't really be used for library api entry points - a well-considered top-level error type is likely to be both more readable and forward compatible.[0m
[INFO] [stdout] [32m>Consider reading [Study of `std::io::Error`](https://matklad.github.io/2020/10/15/study-of-std-io-error.html) or simply making all generated structs `pub(crate)`.[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>```rust[0m
[INFO] [stdout] [32m>use errgo::errgo;[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>#[errgo][0m
[INFO] [stdout] [32m>fn shave_yaks([0m
[INFO] [stdout] [32m>    num_yaks: usize,[0m
[INFO] [stdout] [32m>    empty_buckets: usize,[0m
[INFO] [stdout] [32m>    num_razors: usize,[0m
[INFO] [stdout] [32m>) -> Result<(), ShaveYaksError> {[0m
[INFO] [stdout] [32m>    if num_razors == 0 {[0m
[INFO] [stdout] [32m>        return Err(err!(NotEnoughRazors));[0m
[INFO] [stdout] [32m>    }[0m
[INFO] [stdout] [32m>    if num_yaks > empty_buckets {[0m
[INFO] [stdout] [32m>        return Err(err!(NotEnoughBuckets {[0m
[INFO] [stdout] [32m>            got: usize = empty_buckets,[0m
[INFO] [stdout] [32m>            required: usize = num_yaks,[0m
[INFO] [stdout] [32m>        }));[0m
[INFO] [stdout] [32m>    }[0m
[INFO] [stdout] [32m>    Ok(())[0m
[INFO] [stdout] [32m>}[0m
[INFO] [stdout] [32m>```[0m
[INFO] [stdout] [32m>Under the hood, a struct like this is generated:[0m
[INFO] [stdout] [32m>```rust[0m
[INFO] [stdout] [32m>enum ShaveYaksError { // name and visibility are taken from function return type and visibility[0m
[INFO] [stdout] [32m>    NotEnoughRazors,[0m
[INFO] [stdout] [32m>    NotEnoughBuckets {[0m
[INFO] [stdout] [32m>        got: usize,[0m
[INFO] [stdout] [32m>        required: usize,[0m
[INFO] [stdout] [32m>    }[0m
[INFO] [stdout] [32m>}[0m
[INFO] [stdout] [32m>```[0m
[INFO] [stdout] [32m>Note that the struct definition is placed just above the function body, meaning that you can't use [`errgo`] on functions in `impl` blocks - you'll have to move the function body to an outer scope, and call it in the impl block.[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>Importantly, you can derive on the generated struct, _and_ passthrough attributes, allowing you to use crates like [thiserror] or [strum].[0m
[INFO] [stdout] [32m>See the [`errgo`] documentation for other arguments accepted by the macro.[0m
[INFO] [stdout] [32m>```rust[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>#[errgo(derive(Debug, thiserror::Error))][0m
[INFO] [stdout] [32m>fn shave_yaks([0m
[INFO] [stdout] [32m>    num_yaks: usize,[0m
[INFO] [stdout] [32m>    empty_buckets: usize,[0m
[INFO] [stdout] [32m>    num_razors: usize,[0m
[INFO] [stdout] [32m>) -> Result<(), ShaveYaksError> {[0m
[INFO] [stdout] [32m>    if num_razors == 0 {[0m
[INFO] [stdout] [32m>        return Err(err!([0m
[INFO] [stdout] [32m>            #[error("not enough razors!")][0m
[INFO] [stdout] [32m>            NotEnoughRazors[0m
[INFO] [stdout] [32m>        ));[0m
[INFO] [stdout] [32m>    }[0m
[INFO] [stdout] [32m>    if num_yaks > empty_buckets {[0m
[INFO] [stdout] [32m>        return Err(err!([0m
[INFO] [stdout] [32m>            #[error("not enough buckets - needed {required}")][0m
[INFO] [stdout] [32m>            NotEnoughBuckets {[0m
[INFO] [stdout] [32m>                got: usize = empty_buckets,[0m
[INFO] [stdout] [32m>                required: usize = num_yaks,[0m
[INFO] [stdout] [32m>            }[0m
[INFO] [stdout] [32m>        ));[0m
[INFO] [stdout] [32m>    }[0m
[INFO] [stdout] [32m>    Ok(())[0m
[INFO] [stdout] [32m>}[0m
[INFO] [stdout] [32m>```[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>Which generates the following:[0m
[INFO] [stdout] [32m>```rust[0m
[INFO] [stdout] [32m>#[derive(Debug, thiserror::Error)][0m
[INFO] [stdout] [32m>enum ShaveYaksError {[0m
[INFO] [stdout] [32m>    #[error("not enough razors!")][0m
[INFO] [stdout] [32m>    NotEnoughRazors,[0m
[INFO] [stdout] [32m>    #[error("not enough buckets - needed {required}")][0m
[INFO] [stdout] [32m>    NotEnoughBuckets {[0m
[INFO] [stdout] [32m>        got: usize,[0m
[INFO] [stdout] [32m>        required: usize,[0m
[INFO] [stdout] [32m>    }[0m
[INFO] [stdout] [32m>}[0m
[INFO] [stdout] [32m>```[0m
[INFO] [stdout] [32m>And `err!` macro invocations are replaced with struct instantiations - no matter where they are in the function body![0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>If you need to reuse the same variant within a function, just use the normal construction syntax:[0m
[INFO] [stdout] [32m>```rust[0m
[INFO] [stdout] [32m>#[errgo][0m
[INFO] [stdout] [32m>fn foo() -> Result<(), FooError> {[0m
[INFO] [stdout] [32m>    fallible_op().map_err(|e| err!(IoError(io::Error = e)));[0m
[INFO] [stdout] [32m>    Err(FooError::IoError(todo!()))[0m
[INFO] [stdout] [32m>}[0m
[INFO] [stdout] [32m>```[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>[anyhow]: https://docs.rs/anyhow[0m
[INFO] [stdout] [32m>[thiserror]: https://docs.rs/thiserror[0m
[INFO] [stdout] [32m>[strum]: https://docs.rs/strum[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7d6614f76daa - std[b80a194dd3c418bb]::backtrace_rs::backtrace::libunwind::trace
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x7d6614f76daa - std[b80a194dd3c418bb]::backtrace_rs::backtrace::trace_unsynchronized::<std[b80a194dd3c418bb]::sys::backtrace::_print_fmt::{closure#1}>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x7d6614f76daa - std[b80a194dd3c418bb]::sys::backtrace::_print_fmt
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/sys/backtrace.rs:74:9
[INFO] [stdout]    3:     0x7d6614f76daa - <<std[b80a194dd3c418bb]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[10b6fa85044e1869]::fmt::Display>::fmt
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/sys/backtrace.rs:44:26
[INFO] [stdout]    4:     0x7d6614fb8dba - <core[10b6fa85044e1869]::fmt::rt::Argument>::fmt
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/core/src/fmt/rt.rs:152:76
[INFO] [stdout]    5:     0x7d6614fb8dba - core[10b6fa85044e1869]::fmt::write
[INFO] [stdout]    6:     0x7d6614f88332 - std[b80a194dd3c418bb]::io::default_write_fmt::<alloc[dd269455e567d8e9]::vec::Vec<u8>>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/io/mod.rs:639:11
[INFO] [stdout]    7:     0x7d6614f88332 - <alloc[dd269455e567d8e9]::vec::Vec<u8> as std[b80a194dd3c418bb]::io::Write>::write_fmt
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/io/mod.rs:1994:13
[INFO] [stdout]    8:     0x7d6614f4660f - <std[b80a194dd3c418bb]::sys::backtrace::BacktraceLock>::print
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/sys/backtrace.rs:47:9
[INFO] [stdout]    9:     0x7d6614f4660f - std[b80a194dd3c418bb]::panicking::default_hook::{closure#0}
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panicking.rs:292:27
[INFO] [stdout]   10:     0x7d6614f69029 - std[b80a194dd3c418bb]::panicking::default_hook
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panicking.rs:316:9
[INFO] [stdout]   11:     0x63431e7cec5c - <alloc[dd269455e567d8e9]::boxed::Box<dyn for<'a, 'b> core[10b6fa85044e1869]::ops::function::Fn<(&'a std[b80a194dd3c418bb]::panic::PanicHookInfo<'b>,), Output = ()> + core[10b6fa85044e1869]::marker::Sync + core[10b6fa85044e1869]::marker::Send> as core[10b6fa85044e1869]::ops::function::Fn<(&std[b80a194dd3c418bb]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/alloc/src/boxed.rs:2254:9
[INFO] [stdout]   12:     0x63431e7cec5c - test[826cbc6ef54ab466]::test_main_with_exit_callback::<test[826cbc6ef54ab466]::test_main::{closure#0}>::{closure#0}
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/test/src/lib.rs:145:21
[INFO] [stdout]   13:     0x7d6614f692a2 - <alloc[dd269455e567d8e9]::boxed::Box<dyn for<'a, 'b> core[10b6fa85044e1869]::ops::function::Fn<(&'a std[b80a194dd3c418bb]::panic::PanicHookInfo<'b>,), Output = ()> + core[10b6fa85044e1869]::marker::Sync + core[10b6fa85044e1869]::marker::Send> as core[10b6fa85044e1869]::ops::function::Fn<(&std[b80a194dd3c418bb]::panic::PanicHookInfo,)>>::call
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/alloc/src/boxed.rs:2254:9
[INFO] [stdout]   14:     0x7d6614f692a2 - std[b80a194dd3c418bb]::panicking::panic_with_hook
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panicking.rs:833:13
[INFO] [stdout]   15:     0x7d6614f466c8 - std[b80a194dd3c418bb]::panicking::panic_handler::{closure#0}
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panicking.rs:698:13
[INFO] [stdout]   16:     0x7d6614f3cef9 - std[b80a194dd3c418bb]::sys::backtrace::__rust_end_short_backtrace::<std[b80a194dd3c418bb]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/sys/backtrace.rs:182:18
[INFO] [stdout]   17:     0x7d6614f47dad - __rustc[9698a3e60dd14283]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panicking.rs:689:5
[INFO] [stdout]   18:     0x7d6614fb982c - core[10b6fa85044e1869]::panicking::panic_fmt
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/core/src/panicking.rs:80:14
[INFO] [stdout]   19:     0x63431e55c25b - errgo::tests::readme::h3dc0f51607f93511
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:331:9
[INFO] [stdout]   20:     0x63431e55c2b7 - errgo::tests::readme::{{closure}}::hbd8fbc20940dc78d
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:323:16
[INFO] [stdout]   21:     0x63431e5554d6 - core::ops::function::FnOnce::call_once::h65cec6096c55ebed
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   22:     0x63431e7c2d3b - <fn() -> core[10b6fa85044e1869]::result::Result<(), alloc[dd269455e567d8e9]::string::String> as core[10b6fa85044e1869]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x63431e7c2d3b - test[826cbc6ef54ab466]::__rust_begin_short_backtrace::<core[10b6fa85044e1869]::result::Result<(), alloc[dd269455e567d8e9]::string::String>, fn() -> core[10b6fa85044e1869]::result::Result<(), alloc[dd269455e567d8e9]::string::String>>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/test/src/lib.rs:663:18
[INFO] [stdout]   24:     0x63431e7cf72b - test[826cbc6ef54ab466]::run_test_in_process::{closure#0}
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/test/src/lib.rs:686:74
[INFO] [stdout]   25:     0x63431e7cf72b - <core[10b6fa85044e1869]::panic::unwind_safe::AssertUnwindSafe<test[826cbc6ef54ab466]::run_test_in_process::{closure#0}> as core[10b6fa85044e1869]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/core/src/panic/unwind_safe.rs:274:9
[INFO] [stdout]   26:     0x63431e7cf72b - std[b80a194dd3c418bb]::panicking::catch_unwind::do_call::<core[10b6fa85044e1869]::panic::unwind_safe::AssertUnwindSafe<test[826cbc6ef54ab466]::run_test_in_process::{closure#0}>, core[10b6fa85044e1869]::result::Result<(), alloc[dd269455e567d8e9]::string::String>>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panicking.rs:581:40
[INFO] [stdout]   27:     0x63431e7cf72b - std[b80a194dd3c418bb]::panicking::catch_unwind::<core[10b6fa85044e1869]::result::Result<(), alloc[dd269455e567d8e9]::string::String>, core[10b6fa85044e1869]::panic::unwind_safe::AssertUnwindSafe<test[826cbc6ef54ab466]::run_test_in_process::{closure#0}>>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panicking.rs:544:19
[INFO] [stdout]   28:     0x63431e7cf72b - std[b80a194dd3c418bb]::panic::catch_unwind::<core[10b6fa85044e1869]::panic::unwind_safe::AssertUnwindSafe<test[826cbc6ef54ab466]::run_test_in_process::{closure#0}>, core[10b6fa85044e1869]::result::Result<(), alloc[dd269455e567d8e9]::string::String>>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panic.rs:359:14
[INFO] [stdout]   29:     0x63431e7cf72b - test[826cbc6ef54ab466]::run_test_in_process
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/test/src/lib.rs:686:27
[INFO] [stdout]   30:     0x63431e7cf72b - test[826cbc6ef54ab466]::run_test::{closure#0}
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/test/src/lib.rs:607:43
[INFO] [stdout]   31:     0x63431e7cae44 - test[826cbc6ef54ab466]::run_test::{closure#1}
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/test/src/lib.rs:637:41
[INFO] [stdout]   32:     0x63431e7cae44 - std[b80a194dd3c418bb]::sys::backtrace::__rust_begin_short_backtrace::<test[826cbc6ef54ab466]::run_test::{closure#1}, ()>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/sys/backtrace.rs:166:18
[INFO] [stdout]   33:     0x63431e7d2332 - std[b80a194dd3c418bb]::thread::lifecycle::spawn_unchecked::<test[826cbc6ef54ab466]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/thread/lifecycle.rs:91:13
[INFO] [stdout]   34:     0x63431e7d2332 - <core[10b6fa85044e1869]::panic::unwind_safe::AssertUnwindSafe<std[b80a194dd3c418bb]::thread::lifecycle::spawn_unchecked<test[826cbc6ef54ab466]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}> as core[10b6fa85044e1869]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/core/src/panic/unwind_safe.rs:274:9
[INFO] [stdout]   35:     0x63431e7d2332 - std[b80a194dd3c418bb]::panicking::catch_unwind::do_call::<core[10b6fa85044e1869]::panic::unwind_safe::AssertUnwindSafe<std[b80a194dd3c418bb]::thread::lifecycle::spawn_unchecked<test[826cbc6ef54ab466]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panicking.rs:581:40
[INFO] [stdout]   36:     0x63431e7d2332 - std[b80a194dd3c418bb]::panicking::catch_unwind::<(), core[10b6fa85044e1869]::panic::unwind_safe::AssertUnwindSafe<std[b80a194dd3c418bb]::thread::lifecycle::spawn_unchecked<test[826cbc6ef54ab466]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panicking.rs:544:19
[INFO] [stdout]   37:     0x63431e7d2332 - std[b80a194dd3c418bb]::panic::catch_unwind::<core[10b6fa85044e1869]::panic::unwind_safe::AssertUnwindSafe<std[b80a194dd3c418bb]::thread::lifecycle::spawn_unchecked<test[826cbc6ef54ab466]::run_test::{closure#1}, ()>::{closure#1}::{closure#0}>, ()>
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/panic.rs:359:14
[INFO] [stdout]   38:     0x63431e7d2332 - std[b80a194dd3c418bb]::thread::lifecycle::spawn_unchecked::<test[826cbc6ef54ab466]::run_test::{closure#1}, ()>::{closure#1}
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/thread/lifecycle.rs:89:26
[INFO] [stdout]   39:     0x63431e7d2332 - <std[b80a194dd3c418bb]::thread::lifecycle::spawn_unchecked<test[826cbc6ef54ab466]::run_test::{closure#1}, ()>::{closure#1} as core[10b6fa85044e1869]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   40:     0x7d6614f7448f - <alloc[dd269455e567d8e9]::boxed::Box<dyn core[10b6fa85044e1869]::ops::function::FnOnce<(), Output = ()> + core[10b6fa85044e1869]::marker::Send> as core[10b6fa85044e1869]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/alloc/src/boxed.rs:2240:9
[INFO] [stdout]   41:     0x7d6614f7448f - <std[b80a194dd3c418bb]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]                                at /rustc/ad726b5063362ec9897ef3d67452fc5606ee70fa/library/std/src/sys/thread/unix.rs:118:17
[INFO] [stdout]   42:     0x7d6614ce6aa4 - <unknown>
[INFO] [stdout]   43:     0x7d6614d73a64 - clone
[INFO] [stdout]   44:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tests::readme
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 13 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 30.10s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "28ee90ddd6c4c100aba4b1170aa8c847b8f5546e4ad22a5482df92e16569dc4a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "28ee90ddd6c4c100aba4b1170aa8c847b8f5546e4ad22a5482df92e16569dc4a", kill_on_drop: false }`
[INFO] [stdout] 28ee90ddd6c4c100aba4b1170aa8c847b8f5546e4ad22a5482df92e16569dc4a
