[INFO] fetching crate error2-derive 0.13.2...
[INFO] testing error2-derive-0.13.2 against 1.94.0 for beta-1.95-1
[INFO] extracting crate error2-derive 0.13.2 into /workspace/builds/worker-5-tc1/source
[INFO] started tweaking crates.io crate error2-derive 0.13.2
[INFO] finished tweaking crates.io crate error2-derive 0.13.2
[INFO] tweaked toml for crates.io crate error2-derive 0.13.2 written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate error2-derive 0.13.2 on toolchain 1.94.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.94.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate error2-derive 0.13.2 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.94.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.94.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 71adac91840edcaa4c14dd17be7897eb1a6b7e6f8b849cde756ad5a5116569b9
[INFO] running `Command { std: "docker" "start" "-a" "71adac91840edcaa4c14dd17be7897eb1a6b7e6f8b849cde756ad5a5116569b9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "71adac91840edcaa4c14dd17be7897eb1a6b7e6f8b849cde756ad5a5116569b9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "71adac91840edcaa4c14dd17be7897eb1a6b7e6f8b849cde756ad5a5116569b9", kill_on_drop: false }`
[INFO] [stdout] 71adac91840edcaa4c14dd17be7897eb1a6b7e6f8b849cde756ad5a5116569b9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.94.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4ec2487e97096d22eba5dac5c0882008fe37acd0c16e18c9ce678a914107c5f3
[INFO] running `Command { std: "docker" "start" "-a" "4ec2487e97096d22eba5dac5c0882008fe37acd0c16e18c9ce678a914107c5f3", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.106
[INFO] [stderr]    Compiling quote v1.0.44
[INFO] [stderr]    Compiling syn v2.0.114
[INFO] [stderr]    Compiling error2-derive v0.13.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.71s
[INFO] running `Command { std: "docker" "inspect" "4ec2487e97096d22eba5dac5c0882008fe37acd0c16e18c9ce678a914107c5f3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4ec2487e97096d22eba5dac5c0882008fe37acd0c16e18c9ce678a914107c5f3", kill_on_drop: false }`
[INFO] [stdout] 4ec2487e97096d22eba5dac5c0882008fe37acd0c16e18c9ce678a914107c5f3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.94.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 91739b790b35725fa267b05963999131f3c3248f89b3694106e101d7641bf0f0
[INFO] running `Command { std: "docker" "start" "-a" "91739b790b35725fa267b05963999131f3c3248f89b3694106e101d7641bf0f0", kill_on_drop: false }`
[INFO] [stderr]    Compiling error2-derive v0.13.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.03s
[INFO] running `Command { std: "docker" "inspect" "91739b790b35725fa267b05963999131f3c3248f89b3694106e101d7641bf0f0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "91739b790b35725fa267b05963999131f3c3248f89b3694106e101d7641bf0f0", kill_on_drop: false }`
[INFO] [stdout] 91739b790b35725fa267b05963999131f3c3248f89b3694106e101d7641bf0f0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.94.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 634888a7163b12ecae5a09fbb6136cc89616aaa779d0a2e59bd4d42aaa038938
[INFO] running `Command { std: "docker" "start" "-a" "634888a7163b12ecae5a09fbb6136cc89616aaa779d0a2e59bd4d42aaa038938", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/error2_derive-51dfda3ef59d965d)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests error2_derive
[INFO] [stdout] 
[INFO] [stdout] running 11 tests
[INFO] [stdout] test src/lib.rs - error2 (line 85) ... FAILED
[INFO] [stdout] test src/lib.rs - error2 (line 127) ... FAILED
[INFO] [stdout] test src/lib.rs - error2 (line 222) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 8) ... FAILED
[INFO] [stdout] test src/lib.rs - error2 (line 177) ... FAILED
[INFO] [stdout] test src/lib.rs - error2 (line 52) ... FAILED
[INFO] [stdout] test src/lib.rs - error2 (line 148) ... FAILED
[INFO] [stdout] test src/lib.rs - error2 (line 250) ... FAILED
[INFO] [stdout] test src/lib.rs - error2 (line 67) ... FAILED
[INFO] [stdout] test src/lib.rs - error2 (line 199) ... FAILED
[INFO] [stdout] test src/lib.rs - error2 (line 161) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - error2 (line 85) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]   --> src/lib.rs:86:5
[INFO] [stdout]    |
[INFO] [stdout] 86 | use error2::prelude::*;
[INFO] [stdout]    |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]    |
[INFO] [stdout] 85 + mod error2;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]   --> src/lib.rs:88:5
[INFO] [stdout]    |
[INFO] [stdout] 88 | use error2::prelude::*;
[INFO] [stdout]    |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]    |
[INFO] [stdout] 85 + mod error2;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]   --> src/lib.rs:95:17
[INFO] [stdout]    |
[INFO] [stdout] 95 | #[derive(Debug, Error2)]
[INFO] [stdout]    |                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout] 88 + use error2_derive::Error2;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]   --> src/lib.rs:96:3
[INFO] [stdout]    |
[INFO] [stdout] 96 | #[error2(module, display("read config error"))]
[INFO] [stdout]    |   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]   --> src/lib.rs:89:17
[INFO] [stdout]    |
[INFO] [stdout] 89 | #[derive(Debug, Error2)]
[INFO] [stdout]    |                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout] 88 + use error2_derive::Error2;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]   --> src/lib.rs:90:3
[INFO] [stdout]    |
[INFO] [stdout] 90 | #[error2(module, display("my error"))]
[INFO] [stdout]    |   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]   --> src/lib.rs:92:16
[INFO] [stdout]    |
[INFO] [stdout] 92 |     backtrace: Backtrace,
[INFO] [stdout]    |                ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 88 + use std::backtrace::Backtrace;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]   --> src/lib.rs:98:16
[INFO] [stdout]    |
[INFO] [stdout] 98 |     backtrace: Backtrace,
[INFO] [stdout]    |                ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 88 + use std::backtrace::Backtrace;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `my_error`
[INFO] [stdout]    --> src/lib.rs:107:1
[INFO] [stdout]     |
[INFO] [stdout] 107 | my_error::MyError2.fail()?;
[INFO] [stdout]     | ^^^^^^^^ use of unresolved module or unlinked crate `my_error`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `my_error`, use `cargo add my_error` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `read_config_error`
[INFO] [stdout]    --> src/lib.rs:112:1
[INFO] [stdout]     |
[INFO] [stdout] 112 | read_config_error::ReadConfigError2.fail()?;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `read_config_error`
[INFO] [stdout]     |
[INFO] [stdout]     = help: if you wanted to use a crate named `read_config_error`, use `cargo add read_config_error` to add it to your `Cargo.toml`
[INFO] [stdout] help: a struct with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 112 - read_config_error::ReadConfigError2.fail()?;
[INFO] [stdout] 112 + ReadConfigError::ReadConfigError2.fail()?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error2 (line 127) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    --> src/lib.rs:128:5
[INFO] [stdout]     |
[INFO] [stdout] 128 | use error2::prelude::*;
[INFO] [stdout]     |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]     |
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]     |
[INFO] [stdout] 127 + mod error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]    --> src/lib.rs:129:17
[INFO] [stdout]     |
[INFO] [stdout] 129 | #[derive(Debug, Error2)]
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]     |
[INFO] [stdout] 127 + use error2_derive::Error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]    --> src/lib.rs:131:7
[INFO] [stdout]     |
[INFO] [stdout] 131 |     #[error2(display("IO error at {path}"))]
[INFO] [stdout]     |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]    --> src/lib.rs:138:7
[INFO] [stdout]     |
[INFO] [stdout] 138 |     #[error2(display("Not found: {item}"))]
[INFO] [stdout]     |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]    --> src/lib.rs:135:20
[INFO] [stdout]     |
[INFO] [stdout] 135 |         backtrace: Backtrace,
[INFO] [stdout]     |                    ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 127 + use std::backtrace::Backtrace;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]    --> src/lib.rs:139:41
[INFO] [stdout]     |
[INFO] [stdout] 139 |     NotFound { item: String, backtrace: Backtrace },
[INFO] [stdout]     |                                         ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 127 + use std::backtrace::Backtrace;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error2 (line 222) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    --> src/lib.rs:223:5
[INFO] [stdout]     |
[INFO] [stdout] 223 | use error2::prelude::*;
[INFO] [stdout]     |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]     |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]     |
[INFO] [stdout] 222 + mod error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]    --> src/lib.rs:226:17
[INFO] [stdout]     |
[INFO] [stdout] 226 | #[derive(Debug, Error2)]
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]     |
[INFO] [stdout] 222 + use error2_derive::Error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]    --> src/lib.rs:227:3
[INFO] [stdout]     |
[INFO] [stdout] 227 | #[error2(display("IO error: {path}"))]
[INFO] [stdout]     |   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]    --> src/lib.rs:232:16
[INFO] [stdout]     |
[INFO] [stdout] 232 |     backtrace: Backtrace,
[INFO] [stdout]     |                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 222 + use std::backtrace::Backtrace;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `IoError2` in this scope
[INFO] [stdout]    --> src/lib.rs:237:39
[INFO] [stdout]     |
[INFO] [stdout] 228 | struct IoError {
[INFO] [stdout]     | -------------- similarly named struct `IoError` defined here
[INFO] [stdout] ...
[INFO] [stdout] 237 | std::fs::read_to_string(path).context(IoError2 { path })?;
[INFO] [stdout]     |                                       ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: a struct with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 237 - std::fs::read_to_string(path).context(IoError2 { path })?;
[INFO] [stdout] 237 + std::fs::read_to_string(path).context(IoError { path })?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `context` found for enum `Result<T, E>` in the current scope
[INFO] [stdout]    --> src/lib.rs:237:31
[INFO] [stdout]     |
[INFO] [stdout] 237 | std::fs::read_to_string(path).context(IoError2 { path })?;
[INFO] [stdout]     |                               ^^^^^^^ method not found in `Result<String, std::io::Error>`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433, E0599.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 8) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]  --> src/lib.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use error2::prelude::*;
[INFO] [stdout]   |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]   |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]   |
[INFO] [stdout] 8 + mod error2;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]   --> src/lib.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 | #[derive(Debug, Error2)]
[INFO] [stdout]    |                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout]  8 + use error2_derive::Error2;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]   --> src/lib.rs:13:7
[INFO] [stdout]    |
[INFO] [stdout] 13 |     #[error2(display("IO error"))]
[INFO] [stdout]    |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]   --> src/lib.rs:16:20
[INFO] [stdout]    |
[INFO] [stdout] 16 |         backtrace: Backtrace,
[INFO] [stdout]    |                    ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  8 + use std::backtrace::Backtrace;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error2 (line 177) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    --> src/lib.rs:178:5
[INFO] [stdout]     |
[INFO] [stdout] 178 | use error2::prelude::*;
[INFO] [stdout]     |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]     |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]     |
[INFO] [stdout] 177 + mod error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]    --> src/lib.rs:179:17
[INFO] [stdout]     |
[INFO] [stdout] 179 | #[derive(Debug, Error2)]
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]     |
[INFO] [stdout] 177 + use error2_derive::Error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]    --> src/lib.rs:180:3
[INFO] [stdout]     |
[INFO] [stdout] 180 | #[error2(display("read error: {path}"))]
[INFO] [stdout]     |   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]    --> src/lib.rs:184:16
[INFO] [stdout]     |
[INFO] [stdout] 184 |     backtrace: Backtrace,
[INFO] [stdout]     |                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 177 + use std::backtrace::Backtrace;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadError2` in this scope
[INFO] [stdout]    --> src/lib.rs:191:45
[INFO] [stdout]     |
[INFO] [stdout] 181 | struct ReadError {
[INFO] [stdout]     | ---------------- similarly named struct `ReadError` defined here
[INFO] [stdout] ...
[INFO] [stdout] 191 | std::fs::read_to_string("file.txt").context(ReadError2 { path: "file.txt" })?; // &str -> String
[INFO] [stdout]     |                                             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: a struct with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 191 - std::fs::read_to_string("file.txt").context(ReadError2 { path: "file.txt" })?; // &str -> String
[INFO] [stdout] 191 + std::fs::read_to_string("file.txt").context(ReadError { path: "file.txt" })?; // &str -> String
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `context` found for enum `Result<T, E>` in the current scope
[INFO] [stdout]    --> src/lib.rs:191:37
[INFO] [stdout]     |
[INFO] [stdout] 191 | std::fs::read_to_string("file.txt").context(ReadError2 { path: "file.txt" })?; // &str -> String
[INFO] [stdout]     |                                     ^^^^^^^ method not found in `Result<String, std::io::Error>`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433, E0599.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error2 (line 52) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]   --> src/lib.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 53 | use error2::prelude::*;
[INFO] [stdout]    |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]    |
[INFO] [stdout] 52 + mod error2;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]   --> src/lib.rs:54:17
[INFO] [stdout]    |
[INFO] [stdout] 54 | #[derive(Debug, Error2)]
[INFO] [stdout]    |                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout] 52 + use error2_derive::Error2;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]   --> src/lib.rs:55:3
[INFO] [stdout]    |
[INFO] [stdout] 55 | #[error2(display("Failed to process: {item}"))]
[INFO] [stdout]    |   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]   --> src/lib.rs:58:16
[INFO] [stdout]    |
[INFO] [stdout] 58 |     backtrace: Backtrace,
[INFO] [stdout]    |                ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 52 + use std::backtrace::Backtrace;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error2 (line 148) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    --> src/lib.rs:149:5
[INFO] [stdout]     |
[INFO] [stdout] 149 | use error2::prelude::*;
[INFO] [stdout]     |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]     |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]     |
[INFO] [stdout] 148 + mod error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]    --> src/lib.rs:151:17
[INFO] [stdout]     |
[INFO] [stdout] 151 | #[derive(Debug, Error2)]
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]     |
[INFO] [stdout] 148 + use error2_derive::Error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]    --> src/lib.rs:152:3
[INFO] [stdout]     |
[INFO] [stdout] 152 | #[error2(display("my error"))]
[INFO] [stdout]     |   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]    --> src/lib.rs:154:16
[INFO] [stdout]     |
[INFO] [stdout] 154 |     backtrace: Backtrace,
[INFO] [stdout]     |                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 148 + use std::backtrace::Backtrace;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error2 (line 250) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    --> src/lib.rs:251:5
[INFO] [stdout]     |
[INFO] [stdout] 251 | use error2::prelude::*;
[INFO] [stdout]     |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]     |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]     |
[INFO] [stdout] 250 + mod error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]    --> src/lib.rs:254:17
[INFO] [stdout]     |
[INFO] [stdout] 254 | #[derive(Debug, Error2)]
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]     |
[INFO] [stdout] 250 + use error2_derive::Error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]    --> src/lib.rs:257:16
[INFO] [stdout]     |
[INFO] [stdout] 257 |     backtrace: Backtrace,
[INFO] [stdout]     |                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 250 + use std::backtrace::Backtrace;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error2 (line 67) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]   --> src/lib.rs:68:5
[INFO] [stdout]    |
[INFO] [stdout] 68 | use error2::prelude::*;
[INFO] [stdout]    |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]    |
[INFO] [stdout] 67 + mod error2;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]   --> src/lib.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 | #[derive(Debug, Error2)]
[INFO] [stdout]    |                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]    |
[INFO] [stdout] 67 + use error2_derive::Error2;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]   --> src/lib.rs:70:3
[INFO] [stdout]    |
[INFO] [stdout] 70 | #[error2(vis(pub(crate)), display("error: {code}"))]
[INFO] [stdout]    |   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]   --> src/lib.rs:73:16
[INFO] [stdout]    |
[INFO] [stdout] 73 |     backtrace: Backtrace,
[INFO] [stdout]    |                ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 67 + use std::backtrace::Backtrace;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error2 (line 199) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    --> src/lib.rs:200:5
[INFO] [stdout]     |
[INFO] [stdout] 200 | use error2::prelude::*;
[INFO] [stdout]     |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]     |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]     |
[INFO] [stdout] 199 + mod error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]    --> src/lib.rs:202:17
[INFO] [stdout]     |
[INFO] [stdout] 202 | #[derive(Debug, Error2)]
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]     |
[INFO] [stdout] 199 + use error2_derive::Error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]    --> src/lib.rs:203:3
[INFO] [stdout]     |
[INFO] [stdout] 203 | #[error2(display("read error: {path}"))]
[INFO] [stdout]     |   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]    --> src/lib.rs:207:16
[INFO] [stdout]     |
[INFO] [stdout] 207 |     backtrace: Backtrace,
[INFO] [stdout]     |                ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 199 + use std::backtrace::Backtrace;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ReadError2` in this scope
[INFO] [stdout]    --> src/lib.rs:211:37
[INFO] [stdout]     |
[INFO] [stdout] 204 | struct ReadError {
[INFO] [stdout]     | ---------------- similarly named struct `ReadError` defined here
[INFO] [stdout] ...
[INFO] [stdout] 211 | std::fs::read(path).with_context(|| ReadError2 {
[INFO] [stdout]     |                                     ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: a struct with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 211 - std::fs::read(path).with_context(|| ReadError2 {
[INFO] [stdout] 211 + std::fs::read(path).with_context(|| ReadError {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `with_context` found for enum `Result<T, E>` in the current scope
[INFO] [stdout]    --> src/lib.rs:211:21
[INFO] [stdout]     |
[INFO] [stdout] 211 | std::fs::read(path).with_context(|| ReadError2 {
[INFO] [stdout]     | --------------------^^^^^^^^^^^^ method not found in `Result<Vec<u8>, std::io::Error>`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433, E0599.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - error2 (line 161) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `error2`
[INFO] [stdout]    --> src/lib.rs:162:5
[INFO] [stdout]     |
[INFO] [stdout] 162 | use error2::prelude::*;
[INFO] [stdout]     |     ^^^^^^ use of unresolved module or unlinked crate `error2`
[INFO] [stdout]     |
[INFO] [stdout] help: to make use of source file src/error2.rs, use `mod error2` in this file to declare the module
[INFO] [stdout]     |
[INFO] [stdout] 161 + mod error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find derive macro `Error2` in this scope
[INFO] [stdout]    --> src/lib.rs:163:17
[INFO] [stdout]     |
[INFO] [stdout] 163 | #[derive(Debug, Error2)]
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this derive macro
[INFO] [stdout]     |
[INFO] [stdout] 161 + use error2_derive::Error2;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `error2` in this scope
[INFO] [stdout]    --> src/lib.rs:165:7
[INFO] [stdout]     |
[INFO] [stdout] 165 |     #[error2(display("file error"))]
[INFO] [stdout]     |       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Backtrace` in this scope
[INFO] [stdout]    --> src/lib.rs:168:20
[INFO] [stdout]     |
[INFO] [stdout] 168 |         backtrace: Backtrace,
[INFO] [stdout]     |                    ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 161 + use std::backtrace::Backtrace;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 8)
[INFO] [stdout]     src/lib.rs - error2 (line 127)
[INFO] [stdout]     src/lib.rs - error2 (line 148)
[INFO] [stdout]     src/lib.rs - error2 (line 161)
[INFO] [stdout]     src/lib.rs - error2 (line 177)
[INFO] [stdout]     src/lib.rs - error2 (line 199)
[INFO] [stdout]     src/lib.rs - error2 (line 222)
[INFO] [stdout]     src/lib.rs - error2 (line 250)
[INFO] [stdout]     src/lib.rs - error2 (line 52)
[INFO] [stdout]     src/lib.rs - error2 (line 67)
[INFO] [stdout]     src/lib.rs - error2 (line 85)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 11 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.50s
[INFO] [stdout] 
[INFO] [stdout] all doctests ran in 0.83s; merged doctests compilation took 0.32s
[INFO] running `Command { std: "docker" "inspect" "634888a7163b12ecae5a09fbb6136cc89616aaa779d0a2e59bd4d42aaa038938", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "634888a7163b12ecae5a09fbb6136cc89616aaa779d0a2e59bd4d42aaa038938", kill_on_drop: false }`
[INFO] [stdout] 634888a7163b12ecae5a09fbb6136cc89616aaa779d0a2e59bd4d42aaa038938
