[INFO] fetching crate alt-failure 0.1.5... [INFO] testing alt-failure-0.1.5 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate alt-failure 0.1.5 into /workspace/builds/worker-26/source [INFO] validating manifest of crates.io crate alt-failure 0.1.5 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate alt-failure 0.1.5 [INFO] finished tweaking crates.io crate alt-failure 0.1.5 [INFO] tweaked toml for crates.io crate alt-failure 0.1.5 written to /workspace/builds/worker-26/source/Cargo.toml [INFO] crate crates.io crate alt-failure 0.1.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c9c5ccd315f90210de3470bfc34e650cdd42cecd91036ddfd9e3436918476297 [INFO] running `Command { std: "docker" "start" "-a" "c9c5ccd315f90210de3470bfc34e650cdd42cecd91036ddfd9e3436918476297", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c9c5ccd315f90210de3470bfc34e650cdd42cecd91036ddfd9e3436918476297", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9c5ccd315f90210de3470bfc34e650cdd42cecd91036ddfd9e3436918476297", kill_on_drop: false }` [INFO] [stdout] c9c5ccd315f90210de3470bfc34e650cdd42cecd91036ddfd9e3436918476297 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54e1c2f52247549ecf544bee9b2f1ec99c6f066b3b48cc6bf1fe116f3bd6547e [INFO] running `Command { std: "docker" "start" "-a" "54e1c2f52247549ecf544bee9b2f1ec99c6f066b3b48cc6bf1fe116f3bd6547e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling cc v1.0.45 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling backtrace v0.3.37 [INFO] [stderr] Compiling alt-failure v0.1.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.61s [INFO] running `Command { std: "docker" "inspect" "54e1c2f52247549ecf544bee9b2f1ec99c6f066b3b48cc6bf1fe116f3bd6547e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54e1c2f52247549ecf544bee9b2f1ec99c6f066b3b48cc6bf1fe116f3bd6547e", kill_on_drop: false }` [INFO] [stdout] 54e1c2f52247549ecf544bee9b2f1ec99c6f066b3b48cc6bf1fe116f3bd6547e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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" "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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8091f66cbf9a3fa99640f71c404e0475b6f87737951d945d3554db1703d36450 [INFO] running `Command { std: "docker" "start" "-a" "8091f66cbf9a3fa99640f71c404e0475b6f87737951d945d3554db1703d36450", kill_on_drop: false }` [INFO] [stderr] Compiling alt-failure v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `failure` [INFO] [stdout] --> examples/bail_ensure.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate failure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `bail` in this scope [INFO] [stdout] --> examples/bail_ensure.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | bail!("ruh {}", "roh"); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> examples/bail_ensure.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ensure!(true, "true is false"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> examples/bail_ensure.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ensure!(false, "false is false"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `failure` [INFO] [stdout] --> examples/string_custom_error_pattern.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate failure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> examples/bail_ensure.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | fn bailer() -> Result<(), Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> examples/bail_ensure.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn ensures() -> Result<(), Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `failure` [INFO] [stdout] --> tests/macro_trailing_comma.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate failure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `failure` [INFO] [stdout] --> tests/fail_compat.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate failure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `alt-failure` due to 7 previous errors [INFO] [stdout] error[E0463]: can't find crate for `failure` [INFO] [stdout] --> tests/basic_fail.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate failure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: cannot find macro `format_err` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | format_err!("test {}", 4).to_string(), [INFO] [stdout] | ^^^^^^^^^^ help: a macro with a similar name exists: `format_args` [INFO] [stdout] | [INFO] [stdout] = note: `format_err` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `failure` [INFO] [stdout] --> examples/simple.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate failure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `format_err` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | format_err!("test {}", 4,).to_string()); [INFO] [stdout] | ^^^^^^^^^^ help: a macro with a similar name exists: `format_args` [INFO] [stdout] | [INFO] [stdout] = note: `format_err` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `format_err` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | format_err!("test",).to_string()); [INFO] [stdout] | ^^^^^^^^^^ help: a macro with a similar name exists: `format_args` [INFO] [stdout] | [INFO] [stdout] = note: `format_err` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `format_err` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | format_err!("test").to_string(), [INFO] [stdout] | ^^^^^^^^^^ help: a macro with a similar name exists: `format_args` [INFO] [stdout] | [INFO] [stdout] = note: `format_err` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | wrap_early_return!(ensure!(4 == 5)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ensure` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:52:28 [INFO] [stdout] | [INFO] [stdout] 52 | wrap_early_return!(ensure!(true == false)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ensure` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Fail` in this scope [INFO] [stdout] --> tests/fail_compat.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Fail, Debug)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | wrap_early_return!(ensure!(false)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ensure` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:43:28 [INFO] [stdout] | [INFO] [stdout] 43 | wrap_early_return!(ensure!(false, "test {}", 4,))); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ensure` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `fail` in this scope [INFO] [stdout] --> tests/fail_compat.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[fail(display = "my error")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Fail` in this scope [INFO] [stdout] --> tests/basic_fail.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Fail, Debug)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `fail` in this scope [INFO] [stdout] --> tests/basic_fail.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[fail(display = "my error")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Fail` in this scope [INFO] [stdout] --> examples/simple.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:42:28 [INFO] [stdout] | [INFO] [stdout] 42 | wrap_early_return!(ensure!(false, "test {}", 4)), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ensure` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 40 | wrap_early_return!(ensure!(false, "test",))); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ensure` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ensure` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | wrap_early_return!(ensure!(false, "test")), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ensure` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `bail` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | wrap_early_return!(bail!("test {}", 4,))); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `bail` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `bail` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 32 | wrap_early_return!(bail!("test {}", 4)), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `bail` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `bail` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 30 | wrap_early_return!(bail!("test",))); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `bail` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `bail` in this scope [INFO] [stdout] --> tests/macro_trailing_comma.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | wrap_early_return!(bail!("test")), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `bail` is in scope, but it is a function, not a macro [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> tests/fail_compat.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 15 | fn return_error() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 - fn return_error() -> Result<(), Box> { [INFO] [stdout] 15 + fn return_error() -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> tests/fail_compat.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 20 | fn return_error_send_sync() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 - fn return_error_send_sync() -> Result<(), Box> { [INFO] [stdout] 20 + fn return_error_send_sync() -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `fail` in this scope [INFO] [stdout] --> examples/simple.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[fail(display = "my error")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Fail` in this scope [INFO] [stdout] --> examples/simple.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `fail` in this scope [INFO] [stdout] --> examples/simple.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | #[fail(display = "my wrapping error")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `fail` in this scope [INFO] [stdout] --> examples/simple.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | struct WrappingError(#[fail(cause)] MyError); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fail` [INFO] [stdout] --> examples/simple.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | for cause in Fail::iter_chain(&bad_function().unwrap_err()) { [INFO] [stdout] | ^^^^ use of undeclared type `Fail` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `MyError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/basic_fail.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 10 | struct MyError; [INFO] [stdout] | --------------- [INFO] [stdout] | | [INFO] [stdout] | method `to_string` not found for this [INFO] [stdout] | doesn't satisfy `MyError: ToString` [INFO] [stdout] | doesn't satisfy `MyError: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 14 | assert_eq!(err.to_string(), "my error"); [INFO] [stdout] | ^^^^^^^^^ `MyError` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `MyError: std::fmt::Display` [INFO] [stdout] which is required by `MyError: ToString` [INFO] [stdout] note: the following trait must be implemented [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fail` [INFO] [stdout] --> examples/string_custom_error_pattern.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | for cause in Fail::iter_causes(&err) { [INFO] [stdout] | ^^^^ use of undeclared type `Fail` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `alt-failure` due to 4 previous errors; 2 warnings emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> examples/string_custom_error_pattern.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | inner: Context, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `name` found for struct `MyError` in the current scope [INFO] [stdout] --> tests/basic_fail.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 10 | struct MyError; [INFO] [stdout] | --------------- method `name` not found for this [INFO] [stdout] ... [INFO] [stdout] 15 | assert_eq!(err.name(), Some("basic_fail::MyError")); [INFO] [stdout] | ^^^^ method not found in `MyError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Fail` in this scope [INFO] [stdout] --> examples/string_custom_error_pattern.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | impl Fail for MyError { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `alt-failure` due to 17 previous errors [INFO] [stdout] error[E0412]: cannot find type `Fail` in this scope [INFO] [stdout] --> examples/string_custom_error_pattern.rs:38:32 [INFO] [stdout] | [INFO] [stdout] 37 | impl Fail for MyError { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 38 | fn cause(&self) -> Option<&Fail> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `alt-failure` due to 7 previous errors [INFO] [stdout] error[E0599]: no method named `context` found for struct `MyError` in the current scope [INFO] [stdout] --> tests/basic_fail.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 10 | struct MyError; [INFO] [stdout] | --------------- method `context` not found for this [INFO] [stdout] ... [INFO] [stdout] 17 | let ctx = err.context("whatever"); [INFO] [stdout] | ^^^^^^^ method not found in `MyError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Backtrace` in this scope [INFO] [stdout] --> examples/string_custom_error_pattern.rs:42:36 [INFO] [stdout] | [INFO] [stdout] 42 | fn backtrace(&self) -> Option<&Backtrace> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use std::backtrace::Backtrace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Context` [INFO] [stdout] --> examples/string_custom_error_pattern.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | inner: Context::new(msg.into()), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> examples/string_custom_error_pattern.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 63 | impl From> for MyError { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> examples/string_custom_error_pattern.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | fn from(inner: Context) -> MyError { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> examples/string_custom_error_pattern.rs:70:11 [INFO] [stdout] | [INFO] [stdout] 70 | impl From> for MyError { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Context` in this scope [INFO] [stdout] --> examples/string_custom_error_pattern.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | fn from(inner: Context<&'static str>) -> MyError { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use core::task::Context; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `alt-failure` due to 8 previous errors [INFO] [stderr] error: could not compile `alt-failure` due to 12 previous errors [INFO] [stdout] error[E0463]: can't find crate for `failure` [INFO] [stdout] --> examples/error_as_cause.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate failure; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Fail` in this scope [INFO] [stdout] --> examples/error_as_cause.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Fail)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `fail` in this scope [INFO] [stdout] --> examples/error_as_cause.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[fail(display = "my wrapping error")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `fail` in this scope [INFO] [stdout] --> examples/error_as_cause.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | struct WrappingError(#[fail(cause)] Error); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Fail` [INFO] [stdout] --> examples/error_as_cause.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | for cause in Fail::iter_causes(&bad_function().unwrap_err()) { [INFO] [stdout] | ^^^^ use of undeclared type `Fail` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> examples/error_as_cause.rs:8:37 [INFO] [stdout] | [INFO] [stdout] 8 | struct WrappingError(#[fail(cause)] Error); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `err_msg` in this scope [INFO] [stdout] --> examples/error_as_cause.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | Err(WrappingError(err_msg("this went bad"))) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `alt-failure` due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "8091f66cbf9a3fa99640f71c404e0475b6f87737951d945d3554db1703d36450", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8091f66cbf9a3fa99640f71c404e0475b6f87737951d945d3554db1703d36450", kill_on_drop: false }` [INFO] [stdout] 8091f66cbf9a3fa99640f71c404e0475b6f87737951d945d3554db1703d36450