[INFO] fetching crate quick-error2 2.1.0... [INFO] checking quick-error2-2.1.0 against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] extracting crate quick-error2 2.1.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate quick-error2 2.1.0 on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate quick-error2 2.1.0 [INFO] finished tweaking crates.io crate quick-error2 2.1.0 [INFO] tweaked toml for crates.io crate quick-error2 2.1.0 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate crates.io crate quick-error2 2.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93defbf018a5bb4f84cea7ec43d5344bd22cf827e85ceb9b0f3668e00927c077 [INFO] running `Command { std: "docker" "start" "-a" "93defbf018a5bb4f84cea7ec43d5344bd22cf827e85ceb9b0f3668e00927c077", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93defbf018a5bb4f84cea7ec43d5344bd22cf827e85ceb9b0f3668e00927c077", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93defbf018a5bb4f84cea7ec43d5344bd22cf827e85ceb9b0f3668e00927c077", kill_on_drop: false }` [INFO] [stdout] 93defbf018a5bb4f84cea7ec43d5344bd22cf827e85ceb9b0f3668e00927c077 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3af086fa0d40fdd229ee8aa2afb99cab46ef3a56c471fc0136e828371254fb0a [INFO] running `Command { std: "docker" "start" "-a" "3af086fa0d40fdd229ee8aa2afb99cab46ef3a56c471fc0136e828371254fb0a", kill_on_drop: false }` [INFO] [stderr] Checking quick-error2 v2.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:1000:19 [INFO] [stdout] | [INFO] [stdout] 1000 | let err: &Error = &Bare::Two; [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:1078:19 [INFO] [stdout] | [INFO] [stdout] 1078 | let err: &Error = &TupleWrapper::Other(desc); [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:1090:19 [INFO] [stdout] | [INFO] [stdout] 1090 | let err: &Error = &TupleWrapper::FromUtf8Error(source.clone(), invalid_utf8.clone()); [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:1165:19 [INFO] [stdout] | [INFO] [stdout] 1165 | let err: &Error = &StructWrapper::Utf8Error { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:1312:19 [INFO] [stdout] | [INFO] [stdout] 1312 | let err: &Error = &StructWrapper::Utf8Error { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `quick_error`, `quick_error::ResultExt` [INFO] [stdout] --> examples/context.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use quick_error::{quick_error, ResultExt}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared crate or module `quick_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `quick_error` [INFO] [stdout] --> examples/context.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | quick_error! { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error` [INFO] [stdout] --> examples/context.rs:26:50 [INFO] [stdout] | [INFO] [stdout] 26 | let fname = env::args().skip(1).next().ok_or(Error::NoFileName)?; [INFO] [stdout] | ^^^^^ use of undeclared type `Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> examples/context.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | fn parse_file() -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::io::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> examples/context.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, stderr, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::num::ParseIntError` [INFO] [stdout] --> examples/context.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::num::ParseIntError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> examples/context.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/context.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | let mut file = File::open(fname).context(fname)?; [INFO] [stdout] | ^^^^^^^ method not found in `Result` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:964:8 [INFO] [stdout] | [INFO] [stdout] 964 | fn context(self, x: X) -> Result>; [INFO] [stdout] | ------- the method is available for `Result` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use quick_error2::ResultExt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/context.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | Ok(buf.parse().context(fname)?) [INFO] [stdout] | ^^^^^^^ method not found in `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:964:8 [INFO] [stdout] | [INFO] [stdout] 964 | fn context(self, x: X) -> Result>; [INFO] [stdout] | ------- the method is available for `Result<_, _>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use quick_error2::ResultExt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> examples/context.rs:4:29 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, stderr, Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `quick-error2` due to 7 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "3af086fa0d40fdd229ee8aa2afb99cab46ef3a56c471fc0136e828371254fb0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3af086fa0d40fdd229ee8aa2afb99cab46ef3a56c471fc0136e828371254fb0a", kill_on_drop: false }` [INFO] [stdout] 3af086fa0d40fdd229ee8aa2afb99cab46ef3a56c471fc0136e828371254fb0a