[INFO] fetching crate imagefile 0.1.0... [INFO] checking imagefile-0.1.0 against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] extracting crate imagefile 0.1.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate imagefile 0.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 imagefile 0.1.0 [INFO] finished tweaking crates.io crate imagefile 0.1.0 [INFO] tweaked toml for crates.io crate imagefile 0.1.0 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [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-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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] 035c3f94e2c1ad22aeae38bcca03a76ba630eadeaa0ae276514c2882748b20c8 [INFO] running `Command { std: "docker" "start" "-a" "035c3f94e2c1ad22aeae38bcca03a76ba630eadeaa0ae276514c2882748b20c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "035c3f94e2c1ad22aeae38bcca03a76ba630eadeaa0ae276514c2882748b20c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "035c3f94e2c1ad22aeae38bcca03a76ba630eadeaa0ae276514c2882748b20c8", kill_on_drop: false }` [INFO] [stdout] 035c3f94e2c1ad22aeae38bcca03a76ba630eadeaa0ae276514c2882748b20c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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] 9c9075a77a12690075591636064847428270b0fda7bbf8d39d154415a5428eb3 [INFO] running `Command { std: "docker" "start" "-a" "9c9075a77a12690075591636064847428270b0fda7bbf8d39d154415a5428eb3", kill_on_drop: false }` [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking imagefile v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `Error` in `byteorder` [INFO] [stdout] --> src/lib.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | byteorder::Error::UnexpectedEOF => ImgfileError::ImageEnd, [INFO] [stdout] | ^^^^^ could not find `Error` in `byteorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Error` in `byteorder` [INFO] [stdout] --> src/lib.rs:83:24 [INFO] [stdout] | [INFO] [stdout] 83 | byteorder::Error::Io(err) => ImgfileError::IoError(err), [INFO] [stdout] | ^^^^^ could not find `Error` in `byteorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0532]: expected tuple struct or tuple variant, found unit variant `ImgfileError::NotEnoughData` [INFO] [stdout] --> src/lib.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 23 | NotEnoughData, [INFO] [stdout] | ------------- `ImgfileError::NotEnoughData` defined here [INFO] [stdout] ... [INFO] [stdout] 59 | ImgfileError::NotEnoughData(..) => &"Not enough data", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use this syntax instead: `ImgfileError::NotEnoughData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/lib.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | impl From for ImgfileError { [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 9 | use fmt::Error; [INFO] [stdout] | [INFO] [stdout] 9 | use io::Error; [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/lib.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | fn from(err: byteorder::Error) -> ImgfileError { [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 9 | use fmt::Error; [INFO] [stdout] | [INFO] [stdout] 9 | use io::Error; [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | try!(r.seek(SeekFrom::Start(0))); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | try!(r.read_exact(head)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | try!(self.r.seek(SeekFrom::Start(offset))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | try!(self.r.read_exact(&mut buf[..row_len])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | try!(self.r.seek(SeekFrom::Start(HEADER_LEN))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | try!(self.r.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/encoder.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | try!(w.write_all("imagefile".as_bytes())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/encoder.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | try!(w.write_u32::(width)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/encoder.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | try!(w.write_u32::(height)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/encoder.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | try!(w.write_all(data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:65:33 [INFO] [stdout] | [INFO] [stdout] 65 | fn cause (&self) -> Option<&Error> { [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 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Error` in `byteorder` [INFO] [stdout] --> src/lib.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | byteorder::Error::UnexpectedEOF => ImgfileError::ImageEnd, [INFO] [stdout] | ^^^^^ could not find `Error` in `byteorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Error` in `byteorder` [INFO] [stdout] --> src/lib.rs:83:24 [INFO] [stdout] | [INFO] [stdout] 83 | byteorder::Error::Io(err) => ImgfileError::IoError(err), [INFO] [stdout] | ^^^^^ could not find `Error` in `byteorder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0532]: expected tuple struct or tuple variant, found unit variant `ImgfileError::NotEnoughData` [INFO] [stdout] --> src/lib.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 23 | NotEnoughData, [INFO] [stdout] | ------------- `ImgfileError::NotEnoughData` defined here [INFO] [stdout] ... [INFO] [stdout] 59 | ImgfileError::NotEnoughData(..) => &"Not enough data", [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use this syntax instead: `ImgfileError::NotEnoughData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/lib.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | impl From for ImgfileError { [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 9 | use fmt::Error; [INFO] [stdout] | [INFO] [stdout] 9 | use io::Error; [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in crate `byteorder` [INFO] [stdout] --> src/lib.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | fn from(err: byteorder::Error) -> ImgfileError { [INFO] [stdout] | ^^^^^ not found in `byteorder` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 9 | use fmt::Error; [INFO] [stdout] | [INFO] [stdout] 9 | use io::Error; [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | try!(r.seek(SeekFrom::Start(0))); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | try!(r.read_exact(head)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | try!(self.r.seek(SeekFrom::Start(offset))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | try!(self.r.read_exact(&mut buf[..row_len])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | try!(self.r.seek(SeekFrom::Start(HEADER_LEN))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/decoder.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | try!(self.r.read_exact(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/encoder.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | try!(w.write_all("imagefile".as_bytes())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/encoder.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | try!(w.write_u32::(width)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/encoder.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | try!(w.write_u32::(height)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/encoder.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | try!(w.write_all(data)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:65:33 [INFO] [stdout] | [INFO] [stdout] 65 | fn cause (&self) -> Option<&Error> { [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 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0532. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `imagefile` due to 6 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no variant or associated item named `UnexpectedEOF` found for enum `ErrorKind` in the current scope [INFO] [stdout] --> src/decoder.rs:104:43 [INFO] [stdout] | [INFO] [stdout] 104 | if e.kind() == ErrorKind::UnexpectedEOF { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | variant or associated item not found in `ErrorKind` [INFO] [stdout] | help: there is a variant with a similar name (notice the capitalization): `UnexpectedEof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `UnexpectedEOF` found for enum `ErrorKind` in the current scope [INFO] [stdout] --> src/decoder.rs:122:43 [INFO] [stdout] | [INFO] [stdout] 122 | if e.kind() == ErrorKind::UnexpectedEOF { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | variant or associated item not found in `ErrorKind` [INFO] [stdout] | help: there is a variant with a similar name (notice the capitalization): `UnexpectedEof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0532, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "9c9075a77a12690075591636064847428270b0fda7bbf8d39d154415a5428eb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c9075a77a12690075591636064847428270b0fda7bbf8d39d154415a5428eb3", kill_on_drop: false }` [INFO] [stdout] 9c9075a77a12690075591636064847428270b0fda7bbf8d39d154415a5428eb3