[INFO] fetching crate errgo 0.1.4...
[INFO] testing errgo-0.1.4 against 1.83.0 for beta-1.84.0-4-retry
[INFO] extracting crate errgo 0.1.4 into /workspace/builds/worker-0-tc1/source
[INFO] validating manifest of crates.io crate errgo 0.1.4 on toolchain 1.83.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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-0-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 43 packages to latest compatible versions
[INFO] [stderr]       Adding thiserror v1.0.69 (available: v2.0.7)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.83.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7e9997c3ac8da7154e6facf06c615f3fa24a008ec64655fd301a2b4e9f6a0309
[INFO] running `Command { std: "docker" "start" "-a" "7e9997c3ac8da7154e6facf06c615f3fa24a008ec64655fd301a2b4e9f6a0309", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7e9997c3ac8da7154e6facf06c615f3fa24a008ec64655fd301a2b4e9f6a0309", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7e9997c3ac8da7154e6facf06c615f3fa24a008ec64655fd301a2b4e9f6a0309", kill_on_drop: false }`
[INFO] [stdout] 7e9997c3ac8da7154e6facf06c615f3fa24a008ec64655fd301a2b4e9f6a0309
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9f6c248d652bbe24e0097093b57573f1713cf8bb9e578f4080701b17d887ea02
[INFO] running `Command { std: "docker" "start" "-a" "9f6c248d652bbe24e0097093b57573f1713cf8bb9e578f4080701b17d887ea02", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.92
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.90
[INFO] [stderr]    Compiling errgo v0.1.4 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.27s
[INFO] running `Command { std: "docker" "inspect" "9f6c248d652bbe24e0097093b57573f1713cf8bb9e578f4080701b17d887ea02", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9f6c248d652bbe24e0097093b57573f1713cf8bb9e578f4080701b17d887ea02", kill_on_drop: false }`
[INFO] [stdout] 9f6c248d652bbe24e0097093b57573f1713cf8bb9e578f4080701b17d887ea02
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3949256aece3d541247984bd96e61a1b69742e89dc76d38f334044ca96bdd0f5
[INFO] running `Command { std: "docker" "start" "-a" "3949256aece3d541247984bd96e61a1b69742e89dc76d38f334044ca96bdd0f5", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.92
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[INFO] [stderr]    Compiling serde v1.0.216
[INFO] [stderr]    Compiling hashbrown v0.15.2
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling serde_json v1.0.133
[INFO] [stderr]    Compiling winnow v0.6.20
[INFO] [stderr]    Compiling target-triple v0.1.3
[INFO] [stderr]    Compiling ryu v1.0.18
[INFO] [stderr]    Compiling itoa v1.0.14
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling yansi v1.0.1
[INFO] [stderr]    Compiling glob v0.3.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling dissimilar v1.0.9
[INFO] [stderr]    Compiling termcolor v1.4.1
[INFO] [stderr]    Compiling diff v0.1.13
[INFO] [stderr]    Compiling pretty_assertions v1.4.1
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.90
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling indexmap v2.7.0
[INFO] [stderr]    Compiling serde_spanned v0.6.8
[INFO] [stderr]    Compiling toml_datetime v0.6.8
[INFO] [stderr]    Compiling toml_edit v0.22.22
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling serde_derive v1.0.216
[INFO] [stderr]    Compiling errgo v0.1.4 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling toml v0.8.19
[INFO] [stderr]    Compiling trybuild v1.0.101
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 16.31s
[INFO] running `Command { std: "docker" "inspect" "3949256aece3d541247984bd96e61a1b69742e89dc76d38f334044ca96bdd0f5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3949256aece3d541247984bd96e61a1b69742e89dc76d38f334044ca96bdd0f5", kill_on_drop: false }`
[INFO] [stdout] 3949256aece3d541247984bd96e61a1b69742e89dc76d38f334044ca96bdd0f5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1.83.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 76ebe924f88fc37530b919451b140b47ee740f6442b3211802d1bc60ab24fe1b
[INFO] running `Command { std: "docker" "start" "-a" "76ebe924f88fc37530b919451b140b47ee740f6442b3211802d1bc60ab24fe1b", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/errgo-4270113b4e5f0374)
[INFO] [stdout] 
[INFO] [stdout] running 14 tests
[INFO] [stdout] test config::tests::parse_visibility ... ok
[INFO] [stdout] test config::tests::parse_derives ... ok
[INFO] [stdout] test config::tests::parse_attributes ... ok
[INFO] [stdout] test data::tests::parse_unit_variant ... ok
[INFO] [stdout] test config::tests::parse_all ... ok
[INFO] [stdout] test data::tests::parse_named_variant ... ok
[INFO] [stdout] test data::tests::parse_unit_variant_with_discriminant ... ok
[INFO] [stdout] test data::tests::parse_unnamed_variant ... ok
[INFO] [stdout] test data::tests::use_unit_variant ... ok
[INFO] [stdout] test data::tests::use_named_variant ... ok
[INFO] [stdout] test tests::get_result_name ... ok
[INFO] [stdout] test data::tests::use_unnamed_variant ... ok
[INFO] [stderr]    Compiling proc-macro2 v1.0.92
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[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 diff v0.1.13
[INFO] [stderr]    Compiling yansi v1.0.1
[INFO] [stdout] test tests::readme ... FAILED
[INFO] [stderr]    Compiling pretty_assertions v1.4.1
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.90
[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 9.36s
[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)]` 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)]` 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] thread 'tests::readme' 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:     0x7c158d013a3a - std::backtrace_rs::backtrace::libunwind::trace::h5a5b8284f2d0c266
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7c158d013a3a - std::backtrace_rs::backtrace::trace_unsynchronized::h76d4f1c9b0b875e3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7c158d013a3a - std::sys::backtrace::_print_fmt::hc4546b8364a537c6
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7c158d013a3a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b6bd5631a6d1f6b
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7c158d063c63 - core::fmt::rt::Argument::fmt::h270f6602a2b96f62
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7c158d063c63 - core::fmt::write::h7550c97b06c86515
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/fmt/mod.rs:1186:21
[INFO] [stdout]    6:     0x7c158d0073c3 - std::io::Write::write_fmt::h509ff860e5956e5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7c158d013882 - std::sys::backtrace::BacktraceLock::print::h2395ccd2c84ba3aa
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7c158d015e8a - std::panicking::default_hook::{{closure}}::he19d4c7230e07961
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7c158d015c94 - std::panicking::default_hook::hf614597d3c67bbdb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x5e3739937f29 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39b51ce4599c23d1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x5e3739937f29 - test::test_main::{{closure}}::he977ae839a582784
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7c158d0165f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h9455091b6b06f9fb
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7c158d0165f8 - std::panicking::rust_panic_with_hook::h8942133a8b252070
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7c158d0163ba - std::panicking::begin_panic_handler::{{closure}}::hb5f5963570096b29
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7c158d013f19 - std::sys::backtrace::__rust_end_short_backtrace::h6208cedc1922feda
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7c158d01604c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7c158d060070 - core::panicking::panic_fmt::h0c3082644d1bf418
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
[INFO] [stdout]   18:     0x5e3739611f0a - errgo::tests::readme::h370f27a96693e6ec
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:331:9
[INFO] [stdout]   19:     0x5e3739611bb7 - errgo::tests::readme::{{closure}}::h8d1ba7d51776d213
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:323:16
[INFO] [stdout]   20:     0x5e373962f396 - core::ops::function::FnOnce::call_once::h6ff6812e00eb15c9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   21:     0x5e373993c8eb - core::ops::function::FnOnce::call_once::h109cf8051a59b34e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   22:     0x5e373993c8eb - test::__rust_begin_short_backtrace::hf4fff89d377446ba
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:621:18
[INFO] [stdout]   23:     0x5e373993c127 - test::run_test_in_process::{{closure}}::h0e39181dd7ee5a43
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:60
[INFO] [stdout]   24:     0x5e373993c127 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc5a66a30f0bdfd1f
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   25:     0x5e373993c127 - std::panicking::try::do_call::h873b7cf639554a5e
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   26:     0x5e373993c127 - std::panicking::try::hdb19862fad9c8bd1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   27:     0x5e373993c127 - std::panic::catch_unwind::h281fe732d236d260
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   28:     0x5e373993c127 - test::run_test_in_process::h949b6df8457ed338
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:644:27
[INFO] [stdout]   29:     0x5e373993c127 - test::run_test::{{closure}}::h52c556a6d4740e10
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:565:43
[INFO] [stdout]   30:     0x5e3739901404 - test::run_test::{{closure}}::h4237f6381c45ccb9
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/test/src/lib.rs:595:41
[INFO] [stdout]   31:     0x5e3739901404 - std::sys::backtrace::__rust_begin_short_backtrace::h505c97a579eca628
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   32:     0x5e3739904ace - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9e86b2e2bc107ea3
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:538:17
[INFO] [stdout]   33:     0x5e3739904ace - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8b06ddb275ff4a25
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   34:     0x5e3739904ace - std::panicking::try::do_call::hb26ecd7cd9a9355d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:557:40
[INFO] [stdout]   35:     0x5e3739904ace - std::panicking::try::h8ddeca9d705f9069
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:520:19
[INFO] [stdout]   36:     0x5e3739904ace - std::panic::catch_unwind::h49e1c33078844c46
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panic.rs:358:14
[INFO] [stdout]   37:     0x5e3739904ace - std::thread::Builder::spawn_unchecked_::{{closure}}::h6073db6ff56ad35d
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/thread/mod.rs:537:30
[INFO] [stdout]   38:     0x5e3739904ace - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2c5a5f3779c774f1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   39:     0x7c158d0200ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hf75717d9f28faebf
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   40:     0x7c158d0200ab - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7bd883a5f3c5f3c1
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   41:     0x7c158d0200ab - std::sys::pal::unix::thread::Thread::new::thread_start::hcc78f3943333fa94
[INFO] [stdout]                                at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   42:     0x7c158cc95ac3 - <unknown>
[INFO] [stdout]   43:     0x7c158cd26a04 - 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 13.92s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "76ebe924f88fc37530b919451b140b47ee740f6442b3211802d1bc60ab24fe1b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "76ebe924f88fc37530b919451b140b47ee740f6442b3211802d1bc60ab24fe1b", kill_on_drop: false }`
[INFO] [stdout] 76ebe924f88fc37530b919451b140b47ee740f6442b3211802d1bc60ab24fe1b
