[INFO] fetching crate binfmt 0.1.1... [INFO] testing binfmt-0.1.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate binfmt 0.1.1 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate binfmt 0.1.1 [INFO] finished tweaking crates.io crate binfmt 0.1.1 [INFO] tweaked toml for crates.io crate binfmt 0.1.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate binfmt 0.1.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 11 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] de146ed35b65dec8686731c3d54fb9c0cb98caf4d7bb03a1e370244dc6b2dd17 [INFO] running `Command { std: "docker" "start" "-a" "de146ed35b65dec8686731c3d54fb9c0cb98caf4d7bb03a1e370244dc6b2dd17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "de146ed35b65dec8686731c3d54fb9c0cb98caf4d7bb03a1e370244dc6b2dd17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de146ed35b65dec8686731c3d54fb9c0cb98caf4d7bb03a1e370244dc6b2dd17", kill_on_drop: false }` [INFO] [stdout] de146ed35b65dec8686731c3d54fb9c0cb98caf4d7bb03a1e370244dc6b2dd17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] afe03c68b5cbb86a7904954f9c8764324600639712aa0c57312a1187d7bf7746 [INFO] running `Command { std: "docker" "start" "-a" "afe03c68b5cbb86a7904954f9c8764324600639712aa0c57312a1187d7bf7746", kill_on_drop: false }` [INFO] [stderr] Compiling target-tuples v0.5.13 [INFO] [stderr] Compiling fake-enum v0.1.4 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling arch-ops v0.1.1 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling bytemuck v1.24.0 [INFO] [stderr] Compiling binfmt v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 47 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:61:85 [INFO] [stdout] | [INFO] [stdout] 61 | static ref BINARY_FORMATS_BY_NAME: std::collections::HashMap> = { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | / define_formats![ [INFO] [stdout] 100 | | #[cfg(all(feature = "elf32", feature = "w65"))] [INFO] [stdout] 101 | | elf32-w65, [INFO] [stdout] 102 | | #[cfg(all(feature = "elf32", feature = "x86"))] [INFO] [stdout] ... | [INFO] [stdout] 116 | | binary [INFO] [stdout] 117 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(unused_parens)]` implied by `#[deny(warnings)]` [INFO] [stdout] = note: this error originates in the macro `define_formats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:62:70 [INFO] [stdout] | [INFO] [stdout] 62 | let mut map = std::collections::HashMap::>::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | / define_formats![ [INFO] [stdout] 100 | | #[cfg(all(feature = "elf32", feature = "w65"))] [INFO] [stdout] 101 | | elf32-w65, [INFO] [stdout] 102 | | #[cfg(all(feature = "elf32", feature = "x86"))] [INFO] [stdout] ... | [INFO] [stdout] 116 | | binary [INFO] [stdout] 117 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `define_formats` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:119:51 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn formats() -> impl Iterator { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 119 - pub fn formats() -> impl Iterator { [INFO] [stdout] 119 + pub fn formats() -> impl Iterator { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unnecessary parentheses around type [INFO] [stdout] --> src/lib.rs:126:54 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn format_by_name(name: &str) -> Option<&'static (dyn crate::fmt::Binfmt)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - pub fn format_by_name(name: &str) -> Option<&'static (dyn crate::fmt::Binfmt)> { [INFO] [stdout] 126 + pub fn format_by_name(name: &str) -> Option<&'static dyn crate::fmt::Binfmt> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/fmt.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | fn create_file(&self, ty: FileType) -> BinaryFile; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[deny(mismatched_lifetime_syntaxes)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 30 | fn create_file(&self, ty: FileType) -> BinaryFile<'_>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/fmt.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | fn read_file(&self, file: &mut (dyn ReadSeek + '_)) -> io::Result>; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 35 | fn read_file(&self, file: &mut (dyn ReadSeek + '_)) -> io::Result>>; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/fmt.rs:215:20 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn symbols(&self) -> Symbols { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 215 | pub fn symbols(&self) -> Symbols<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/fmt.rs:237:19 [INFO] [stdout] | [INFO] [stdout] 237 | pub fn relocs(&self) -> Relocs { [INFO] [stdout] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 237 | pub fn relocs(&self) -> Relocs<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/binary.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | fn create_file(&self, ty: FileType) -> crate::fmt::BinaryFile { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 25 | fn create_file(&self, ty: FileType) -> crate::fmt::BinaryFile<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/binary.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] 31 | file: &mut (dyn ReadSeek + '_), [INFO] [stdout] 32 | ) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 32 | ) -> std::io::Result>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `binfmt` (lib) due to 11 previous errors [INFO] running `Command { std: "docker" "inspect" "afe03c68b5cbb86a7904954f9c8764324600639712aa0c57312a1187d7bf7746", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afe03c68b5cbb86a7904954f9c8764324600639712aa0c57312a1187d7bf7746", kill_on_drop: false }` [INFO] [stdout] afe03c68b5cbb86a7904954f9c8764324600639712aa0c57312a1187d7bf7746