[INFO] fetching crate errgo 0.1.4...
[INFO] testing errgo-0.1.4 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0
[INFO] extracting crate errgo 0.1.4 into /workspace/builds/worker-7-tc1/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-7-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate errgo 0.1.4 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Blocking waiting for file lock on package cache
[INFO] [stderr] Updating crates.io index
[INFO] [stderr] Blocking waiting for file lock on package cache
[INFO] [stderr] Locking 44 packages to latest compatible versions
[INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.12)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Blocking waiting for file lock on package cache
[INFO] [stderr] Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 98c450ffb6aa00500ba52fe44d22bf4fe05258aee44fc194b11588e2924ac171
[INFO] running `Command { std: "docker" "start" "-a" "98c450ffb6aa00500ba52fe44d22bf4fe05258aee44fc194b11588e2924ac171", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "98c450ffb6aa00500ba52fe44d22bf4fe05258aee44fc194b11588e2924ac171", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "98c450ffb6aa00500ba52fe44d22bf4fe05258aee44fc194b11588e2924ac171", kill_on_drop: false }`
[INFO] [stdout] 98c450ffb6aa00500ba52fe44d22bf4fe05258aee44fc194b11588e2924ac171
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }`
[INFO] [stdout] 20ee6a1d0ceb256a1e7da23394f7cf517dbb3c56b288018a868048380080aa6f
[INFO] running `Command { std: "docker" "start" "-a" "20ee6a1d0ceb256a1e7da23394f7cf517dbb3c56b288018a868048380080aa6f", kill_on_drop: false }`
[INFO] [stderr] Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr] Compiling syn v1.0.109
[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 2.38s
[INFO] running `Command { std: "docker" "inspect" "20ee6a1d0ceb256a1e7da23394f7cf517dbb3c56b288018a868048380080aa6f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "20ee6a1d0ceb256a1e7da23394f7cf517dbb3c56b288018a868048380080aa6f", kill_on_drop: false }`
[INFO] [stdout] 20ee6a1d0ceb256a1e7da23394f7cf517dbb3c56b288018a868048380080aa6f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }`
[INFO] [stdout] e46bd68cbfe693aa6353ec6afc0ca8a2584dbfd126c9f681ec10257b6514f8e4
[INFO] running `Command { std: "docker" "start" "-a" "e46bd68cbfe693aa6353ec6afc0ca8a2584dbfd126c9f681ec10257b6514f8e4", kill_on_drop: false }`
[INFO] [stderr] Compiling serde v1.0.219
[INFO] [stderr] Compiling target-triple v0.1.4
[INFO] [stderr] Compiling proc-macro2 v1.0.95
[INFO] [stderr] Compiling unicode-ident v1.0.18
[INFO] [stderr] Compiling toml_write v0.1.2
[INFO] [stderr] Compiling hashbrown v0.15.4
[INFO] [stderr] Compiling serde_json v1.0.140
[INFO] [stderr] Compiling memchr v2.7.5
[INFO] [stderr] Compiling itoa v1.0.15
[INFO] [stderr] Compiling winnow v0.7.11
[INFO] [stderr] Compiling ryu v1.0.20
[INFO] [stderr] Compiling thiserror v1.0.69
[INFO] [stderr] Compiling syn v1.0.109
[INFO] [stderr] Compiling serde_derive v1.0.219
[INFO] [stderr] Compiling thiserror-impl v1.0.69
[INFO] [stderr] Compiling diff v0.1.13
[INFO] [stderr] Compiling yansi v1.0.1
[INFO] [stderr] Compiling glob v0.3.2
[INFO] [stderr] Compiling termcolor v1.4.1
[INFO] [stderr] Compiling dissimilar v1.0.10
[INFO] [stderr] Compiling proc-macro-error v1.0.4
[INFO] [stderr] Compiling quote v1.0.40
[INFO] [stderr] Compiling pretty_assertions v1.4.1
[INFO] [stderr] Compiling indexmap v2.10.0
[INFO] [stderr] Compiling syn v2.0.104
[INFO] [stderr] Compiling toml_datetime v0.6.11
[INFO] [stderr] Compiling serde_spanned v0.6.9
[INFO] [stderr] Compiling toml_edit v0.22.27
[INFO] [stderr] Compiling toml v0.8.23
[INFO] [stderr] Compiling trybuild v1.0.105
[INFO] [stderr] Compiling errgo v0.1.4 (/opt/rustwide/workdir)
[INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 20.76s
[INFO] running `Command { std: "docker" "inspect" "e46bd68cbfe693aa6353ec6afc0ca8a2584dbfd126c9f681ec10257b6514f8e4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e46bd68cbfe693aa6353ec6afc0ca8a2584dbfd126c9f681ec10257b6514f8e4", kill_on_drop: false }`
[INFO] [stdout] e46bd68cbfe693aa6353ec6afc0ca8a2584dbfd126c9f681ec10257b6514f8e4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }`
[INFO] [stdout] c2721d942f6a30abc89b26cbc1eb0813586d0a09fd40d89d9b36853fce4ab490
[INFO] running `Command { std: "docker" "start" "-a" "c2721d942f6a30abc89b26cbc1eb0813586d0a09fd40d89d9b36853fce4ab490", kill_on_drop: false }`
[INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/errgo-b6b370f4231f4dd6)
[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_unnamed_variant ... ok
[INFO] [stdout] test data::tests::parse_unit_variant_with_discriminant ... ok
[INFO] [stdout] test data::tests::parse_named_variant ... ok
[INFO] [stdout] test data::tests::use_unit_variant ... ok
[INFO] [stdout] test tests::get_result_name ... ok
[INFO] [stdout] test data::tests::use_unnamed_variant ... ok
[INFO] [stdout] test config::tests::parse_all ... ok
[INFO] [stdout] test data::tests::use_named_variant ... ok
[INFO] [stdout] test data::tests::parse_unit_variant ... ok
[INFO] [stdout] test tests::readme ... FAILED
[INFO] [stderr] Compiling proc-macro2 v1.0.95
[INFO] [stderr] Compiling unicode-ident v1.0.18
[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] [stderr] Compiling pretty_assertions v1.4.1
[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.40
[INFO] [stderr] Compiling syn v2.0.104
[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 13.01s
[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] ... mismatch
[INFO] [stderr]
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: expected identifier
[INFO] [stderr] --> trybuild/fail/invalid_ident.rs:5:21
[INFO] [stderr] |
[INFO] [stderr] 5 | return Err(err!(1Bar));
[INFO] [stderr] | ^^^^
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr]
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: expected identifier
[INFO] [stderr] --> trybuild/fail/invalid_ident.rs:5:21
[INFO] [stderr] |
[INFO] [stderr] 5 | return Err(err!(1Bar));
[INFO] [stderr] | ^^^^
[INFO] [stderr]
[INFO] [stderr] error: cannot find macro `err` in this scope
[INFO] [stderr] --> trybuild/fail/invalid_ident.rs:5:16
[INFO] [stderr] |
[INFO] [stderr] 5 | return Err(err!(1Bar));
[INFO] [stderr] | ^^^
[INFO] [stderr]
[INFO] [stderr] warning: unreachable expression
[INFO] [stderr] --> trybuild/fail/invalid_ident.rs:6:5
[INFO] [stderr] |
[INFO] [stderr] 5 | return Err(err!(1Bar));
[INFO] [stderr] | ---------------------- any code following this expression is unreachable
[INFO] [stderr] 6 | Ok(())
[INFO] [stderr] | ^^^^^^ unreachable expression
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning
[INFO] [stderr] your test with the environment variable TRYBUILD=overwrite
[INFO] [stderr]
[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 ... FAILED
[INFO] [stdout]
[INFO] [stdout] failures:
[INFO] [stdout]
[INFO] [stdout] ---- tests::readme stdout ----
[INFO] [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>
[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>[](https://crates.io/crates/errgo)[0m
[INFO] [stdout] [32m>[](https://docs.rs/errgo)[0m
[INFO] [stdout] [32m>[](https://github.com/aatifsyed/errgo)[0m
[INFO] [stdout] [32m>[0m
[INFO] [stdout] [32m>
[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: 0x7e21ea2bf432 - std::backtrace_rs::backtrace::libunwind::trace::h7c95ef939f65c294
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout] 1: 0x7e21ea2bf432 - std::backtrace_rs::backtrace::trace_unsynchronized::h32c948083968be8c
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout] 2: 0x7e21ea2bf432 - std::sys::backtrace::_print_fmt::hbce1ec88d06e088c
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout] 3: 0x7e21ea2bf432 - ::fmt::hb9fc0e74cd3e2ce7
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout] 4: 0x7e21ea30ff83 - core::fmt::rt::Argument::fmt::h6807405d250eb341
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/fmt/rt.rs:173:76
[INFO] [stdout] 5: 0x7e21ea30ff83 - core::fmt::write::h44c4c28224d1d425
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/fmt/mod.rs:1460:25
[INFO] [stdout] 6: 0x7e21ea2b31a3 - std::io::default_write_fmt::h6fafc5c7e9d14a26
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:639:11
[INFO] [stdout] 7: 0x7e21ea2b31a3 - std::io::Write::write_fmt::h290d0920dffb2dfa
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:1954:13
[INFO] [stdout] 8: 0x7e21ea2bf282 - std::sys::backtrace::BacktraceLock::print::hdd765023e0895687
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout] 9: 0x7e21ea2c2f5c - std::panicking::default_hook::{{closure}}::h3703709d08ff9881
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:300:27
[INFO] [stdout] 10: 0x7e21ea2c2db2 - std::panicking::default_hook::h52db45a3301fd26f
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:324:9
[INFO] [stdout] 11: 0x57fd84c535c4 - as core::ops::function::Fn>::call::hb28c30a05cbb4e31
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1980:9
[INFO] [stdout] 12: 0x57fd84c535c4 - test::test_main_with_exit_callback::{{closure}}::hade7ce5d9d9f2ec0
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:145:21
[INFO] [stdout] 13: 0x7e21ea2c3ab3 - as core::ops::function::Fn>::call::h14e5ecef0584a08f
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1980:9
[INFO] [stdout] 14: 0x7e21ea2c3ab3 - std::panicking::rust_panic_with_hook::h6c4d7d69d053bb09
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:841:13
[INFO] [stdout] 15: 0x7e21ea2c377a - std::panicking::begin_panic_handler::{{closure}}::h7b56674cf0518b4b
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:706:13
[INFO] [stdout] 16: 0x7e21ea2bf929 - std::sys::backtrace::__rust_end_short_backtrace::h3266312f35a9262a
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:168:18
[INFO] [stdout] 17: 0x7e21ea2c340d - __rustc[f4ffc7196a45a630]::rust_begin_unwind
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:697:5
[INFO] [stdout] 18: 0x7e21ea30b4b0 - core::panicking::panic_fmt::h42f13c80076c805d
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panicking.rs:75:14
[INFO] [stdout] 19: 0x57fd84948640 - errgo::tests::readme::h67d170517cef8479
[INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:331:9
[INFO] [stdout] 20: 0x57fd84948347 - errgo::tests::readme::{{closure}}::h5ead01fb92075fa6
[INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:323:16
[INFO] [stdout] 21: 0x57fd84949d46 - core::ops::function::FnOnce::call_once::h675904e118992772
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5
[INFO] [stdout] 22: 0x57fd84c58cbb - core::ops::function::FnOnce::call_once::h892b3cd1ed940bc1
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5
[INFO] [stdout] 23: 0x57fd84c58cbb - test::__rust_begin_short_backtrace::h7f72273c41550b48
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:648:18
[INFO] [stdout] 24: 0x57fd84c57f2e - test::run_test_in_process::{{closure}}::h42f0391f89834c5b
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:671:74
[INFO] [stdout] 25: 0x57fd84c57f2e - as core::ops::function::FnOnce<()>>::call_once::h1b4865c43aaf8852
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout] 26: 0x57fd84c57f2e - std::panicking::catch_unwind::do_call::h34aa7e2a6b9e7f6c
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:589:40
[INFO] [stdout] 27: 0x57fd84c57f2e - std::panicking::catch_unwind::h994360178e3ed1c1
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:552:19
[INFO] [stdout] 28: 0x57fd84c57f2e - std::panic::catch_unwind::h6982b95d01daf48c
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panic.rs:359:14
[INFO] [stdout] 29: 0x57fd84c57f2e - test::run_test_in_process::h740768e67b7da745
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:671:27
[INFO] [stdout] 30: 0x57fd84c57f2e - test::run_test::{{closure}}::h00f00628574240a9
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:592:43
[INFO] [stdout] 31: 0x57fd84c1bb74 - test::run_test::{{closure}}::h5626e17dcad266e2
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:622:41
[INFO] [stdout] 32: 0x57fd84c1bb74 - std::sys::backtrace::__rust_begin_short_backtrace::hd75b822058746c5a
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:152:18
[INFO] [stdout] 33: 0x57fd84c1f46a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h272cdb2aa3fefbcf
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/thread/mod.rs:559:17
[INFO] [stdout] 34: 0x57fd84c1f46a - as core::ops::function::FnOnce<()>>::call_once::h5c094eb97251fe22
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout] 35: 0x57fd84c1f46a - std::panicking::catch_unwind::do_call::h0191b825eba0ee96
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:589:40
[INFO] [stdout] 36: 0x57fd84c1f46a - std::panicking::catch_unwind::hcbb1bc6fb1213f87
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:552:19
[INFO] [stdout] 37: 0x57fd84c1f46a - std::panic::catch_unwind::h6920d0849417775b
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panic.rs:359:14
[INFO] [stdout] 38: 0x57fd84c1f46a - std::thread::Builder::spawn_unchecked_::{{closure}}::h7f7dbea3633a5c8d
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/thread/mod.rs:557:30
[INFO] [stdout] 39: 0x57fd84c1f46a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h01722336b77302e3
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5
[INFO] [stdout] 40: 0x7e21ea2c8247 - as core::ops::function::FnOnce>::call_once::h23ffb04297f2b6ae
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1966:9
[INFO] [stdout] 41: 0x7e21ea2c8247 - as core::ops::function::FnOnce>::call_once::h7eed0c3d02cfccd3
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1966:9
[INFO] [stdout] 42: 0x7e21ea2c8247 - std::sys::pal::unix::thread::Thread::new::thread_start::ha73048ec7e971876
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/pal/unix/thread.rs:97:17
[INFO] [stdout] 43: 0x7e21ea032aa4 -
[INFO] [stdout] 44: 0x7e21ea0bfa34 - clone
[INFO] [stdout] 45: 0x0 -
[INFO] [stdout]
[INFO] [stdout] ---- tests::trybuild stdout ----
[INFO] [stdout]
[INFO] [stdout] thread 'tests::trybuild' panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.105/src/run.rs:102:13:
[INFO] [stdout] 1 of 13 tests failed
[INFO] [stdout] stack backtrace:
[INFO] [stdout] 0: 0x7e21ea2bf432 - std::backtrace_rs::backtrace::libunwind::trace::h7c95ef939f65c294
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout] 1: 0x7e21ea2bf432 - std::backtrace_rs::backtrace::trace_unsynchronized::h32c948083968be8c
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout] 2: 0x7e21ea2bf432 - std::sys::backtrace::_print_fmt::hbce1ec88d06e088c
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout] 3: 0x7e21ea2bf432 - ::fmt::hb9fc0e74cd3e2ce7
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout] 4: 0x7e21ea30ff83 - core::fmt::rt::Argument::fmt::h6807405d250eb341
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/fmt/rt.rs:173:76
[INFO] [stdout] 5: 0x7e21ea30ff83 - core::fmt::write::h44c4c28224d1d425
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/fmt/mod.rs:1460:25
[INFO] [stdout] 6: 0x7e21ea2b31a3 - std::io::default_write_fmt::h6fafc5c7e9d14a26
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:639:11
[INFO] [stdout] 7: 0x7e21ea2b31a3 - std::io::Write::write_fmt::h290d0920dffb2dfa
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:1954:13
[INFO] [stdout] 8: 0x7e21ea2bf282 - std::sys::backtrace::BacktraceLock::print::hdd765023e0895687
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout] 9: 0x7e21ea2c2f5c - std::panicking::default_hook::{{closure}}::h3703709d08ff9881
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:300:27
[INFO] [stdout] 10: 0x7e21ea2c2db2 - std::panicking::default_hook::h52db45a3301fd26f
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:324:9
[INFO] [stdout] 11: 0x57fd84c535c4 - as core::ops::function::Fn>::call::hb28c30a05cbb4e31
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1980:9
[INFO] [stdout] 12: 0x57fd84c535c4 - test::test_main_with_exit_callback::{{closure}}::hade7ce5d9d9f2ec0
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:145:21
[INFO] [stdout] 13: 0x7e21ea2c3ab3 - as core::ops::function::Fn>::call::h14e5ecef0584a08f
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1980:9
[INFO] [stdout] 14: 0x7e21ea2c3ab3 - std::panicking::rust_panic_with_hook::h6c4d7d69d053bb09
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:841:13
[INFO] [stdout] 15: 0x7e21ea2c377a - std::panicking::begin_panic_handler::{{closure}}::h7b56674cf0518b4b
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:706:13
[INFO] [stdout] 16: 0x7e21ea2bf929 - std::sys::backtrace::__rust_end_short_backtrace::h3266312f35a9262a
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:168:18
[INFO] [stdout] 17: 0x7e21ea2c340d - __rustc[f4ffc7196a45a630]::rust_begin_unwind
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:697:5
[INFO] [stdout] 18: 0x7e21ea30b4b0 - core::panicking::panic_fmt::h42f13c80076c805d
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panicking.rs:75:14
[INFO] [stdout] 19: 0x57fd84a82355 - trybuild::run::::run::h1f802920d5d5fee5
[INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.105/src/run.rs:102:13
[INFO] [stdout] 20: 0x57fd84a87b48 - ::drop::h18c27d71c502e17e
[INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.105/src/lib.rs:341:38
[INFO] [stdout] 21: 0x57fd8494a927 - core::ptr::drop_in_place::h81c3c7354573c16a
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ptr/mod.rs:799:1
[INFO] [stdout] 22: 0x57fd8494831b - errgo::tests::trybuild::h24e538fc74a8a26c
[INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:320:5
[INFO] [stdout] 23: 0x57fd84948297 - errgo::tests::trybuild::{{closure}}::hf58740ae79bb09e4
[INFO] [stdout] at /opt/rustwide/workdir/src/lib.rs:316:18
[INFO] [stdout] 24: 0x57fd84949f66 - core::ops::function::FnOnce::call_once::hc97897de6e448aeb
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5
[INFO] [stdout] 25: 0x57fd84c58cbb - core::ops::function::FnOnce::call_once::h892b3cd1ed940bc1
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5
[INFO] [stdout] 26: 0x57fd84c58cbb - test::__rust_begin_short_backtrace::h7f72273c41550b48
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:648:18
[INFO] [stdout] 27: 0x57fd84c57f2e - test::run_test_in_process::{{closure}}::h42f0391f89834c5b
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:671:74
[INFO] [stdout] 28: 0x57fd84c57f2e - as core::ops::function::FnOnce<()>>::call_once::h1b4865c43aaf8852
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout] 29: 0x57fd84c57f2e - std::panicking::catch_unwind::do_call::h34aa7e2a6b9e7f6c
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:589:40
[INFO] [stdout] 30: 0x57fd84c57f2e - std::panicking::catch_unwind::h994360178e3ed1c1
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:552:19
[INFO] [stdout] 31: 0x57fd84c57f2e - std::panic::catch_unwind::h6982b95d01daf48c
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panic.rs:359:14
[INFO] [stdout] 32: 0x57fd84c57f2e - test::run_test_in_process::h740768e67b7da745
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:671:27
[INFO] [stdout] 33: 0x57fd84c57f2e - test::run_test::{{closure}}::h00f00628574240a9
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:592:43
[INFO] [stdout] 34: 0x57fd84c1bb74 - test::run_test::{{closure}}::h5626e17dcad266e2
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/test/src/lib.rs:622:41
[INFO] [stdout] 35: 0x57fd84c1bb74 - std::sys::backtrace::__rust_begin_short_backtrace::hd75b822058746c5a
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/backtrace.rs:152:18
[INFO] [stdout] 36: 0x57fd84c1f46a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h272cdb2aa3fefbcf
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/thread/mod.rs:559:17
[INFO] [stdout] 37: 0x57fd84c1f46a - as core::ops::function::FnOnce<()>>::call_once::h5c094eb97251fe22
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout] 38: 0x57fd84c1f46a - std::panicking::catch_unwind::do_call::h0191b825eba0ee96
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:589:40
[INFO] [stdout] 39: 0x57fd84c1f46a - std::panicking::catch_unwind::hcbb1bc6fb1213f87
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panicking.rs:552:19
[INFO] [stdout] 40: 0x57fd84c1f46a - std::panic::catch_unwind::h6920d0849417775b
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/panic.rs:359:14
[INFO] [stdout] 41: 0x57fd84c1f46a - std::thread::Builder::spawn_unchecked_::{{closure}}::h7f7dbea3633a5c8d
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/thread/mod.rs:557:30
[INFO] [stdout] 42: 0x57fd84c1f46a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h01722336b77302e3
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/core/src/ops/function.rs:250:5
[INFO] [stdout] 43: 0x7e21ea2c8247 - as core::ops::function::FnOnce>::call_once::h23ffb04297f2b6ae
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1966:9
[INFO] [stdout] 44: 0x7e21ea2c8247 - as core::ops::function::FnOnce>::call_once::h7eed0c3d02cfccd3
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/boxed.rs:1966:9
[INFO] [stdout] 45: 0x7e21ea2c8247 - std::sys::pal::unix::thread::Thread::new::thread_start::ha73048ec7e971876
[INFO] [stdout] at /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/sys/pal/unix/thread.rs:97:17
[INFO] [stdout] 46: 0x7e21ea032aa4 -
[INFO] [stdout] 47: 0x7e21ea0bfa34 - clone
[INFO] [stdout] 48: 0x0 -
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] failures:
[INFO] [stdout] tests::readme
[INFO] [stdout] tests::trybuild
[INFO] [stdout]
[INFO] [stdout] test result: FAILED. 12 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 18.04s
[INFO] [stdout]
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "c2721d942f6a30abc89b26cbc1eb0813586d0a09fd40d89d9b36853fce4ab490", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c2721d942f6a30abc89b26cbc1eb0813586d0a09fd40d89d9b36853fce4ab490", kill_on_drop: false }`
[INFO] [stdout] c2721d942f6a30abc89b26cbc1eb0813586d0a09fd40d89d9b36853fce4ab490