[INFO] crate checksec 0.0.6 is already in cache [INFO] testing checksec-0.0.6 against try#03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 for pr-74409 [INFO] extracting crate checksec 0.0.6 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate checksec 0.0.6 on toolchain 03a1ea71b075ab964b5278bc6e74cd6c52c36ee0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate checksec 0.0.6 [INFO] finished tweaking crates.io crate checksec 0.0.6 [INFO] tweaked toml for crates.io crate checksec 0.0.6 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate crates.io crate checksec 0.0.6 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a4af9a10f2d7bc7e6e6130b816f5c464160ab6a290a6db3106faef1267098ea2 [INFO] running `Command { std: "docker" "start" "-a" "a4af9a10f2d7bc7e6e6130b816f5c464160ab6a290a6db3106faef1267098ea2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4af9a10f2d7bc7e6e6130b816f5c464160ab6a290a6db3106faef1267098ea2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4af9a10f2d7bc7e6e6130b816f5c464160ab6a290a6db3106faef1267098ea2", kill_on_drop: false }` [INFO] [stdout] a4af9a10f2d7bc7e6e6130b816f5c464160ab6a290a6db3106faef1267098ea2 [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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d58a1e352f06ed4c479868735f348f325d8aebd3e127ee52a2ea5e95c1fe576f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d58a1e352f06ed4c479868735f348f325d8aebd3e127ee52a2ea5e95c1fe576f", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling regex-syntax v0.6.17 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling sysinfo v0.14.5 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling plain v0.2.3 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Compiling bstr v0.2.12 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling crossbeam-queue v0.2.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling colored v1.9.3 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling rayon v1.3.0 [INFO] [stderr] Compiling regex v1.3.6 [INFO] [stderr] Compiling globset v0.4.5 [INFO] [stderr] Compiling scroll_derive v0.10.2 [INFO] [stderr] Compiling serde_derive v1.0.111 [INFO] [stderr] Compiling ignore v0.4.16 [INFO] [stderr] Compiling scroll v0.10.1 [INFO] [stderr] Compiling goblin v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.55 [INFO] [stderr] Compiling checksec v0.0.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 45s [INFO] running `Command { std: "docker" "inspect" "d58a1e352f06ed4c479868735f348f325d8aebd3e127ee52a2ea5e95c1fe576f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d58a1e352f06ed4c479868735f348f325d8aebd3e127ee52a2ea5e95c1fe576f", kill_on_drop: false }` [INFO] [stdout] d58a1e352f06ed4c479868735f348f325d8aebd3e127ee52a2ea5e95c1fe576f [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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5ef5f6746b10863b1b6a4c9c3eaf39a93379a28538c3b2c8a5abeda02662e54 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d5ef5f6746b10863b1b6a4c9c3eaf39a93379a28538c3b2c8a5abeda02662e54", kill_on_drop: false }` [INFO] [stderr] Compiling checksec v0.0.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.58s [INFO] running `Command { std: "docker" "inspect" "d5ef5f6746b10863b1b6a4c9c3eaf39a93379a28538c3b2c8a5abeda02662e54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5ef5f6746b10863b1b6a4c9c3eaf39a93379a28538c3b2c8a5abeda02662e54", kill_on_drop: false }` [INFO] [stdout] d5ef5f6746b10863b1b6a4c9c3eaf39a93379a28538c3b2c8a5abeda02662e54 [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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+03a1ea71b075ab964b5278bc6e74cd6c52c36ee0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 58a1cab8daffb98e90e23cd7bf42f93b2d49eb4353a3ba5fdf9fe5ed0e8e18dd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "58a1cab8daffb98e90e23cd7bf42f93b2d49eb4353a3ba5fdf9fe5ed0e8e18dd", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/checksec-3cc13b2cf36e2786 [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/checksec-6ab09fd3e0c11c0f [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests checksec [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [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 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/elf.rs - elf::ElfProperties (line 189) ... FAILED [INFO] [stdout] test src/pe.rs - pe::PECheckSecResults (line 239) ... FAILED [INFO] [stdout] test src/macho.rs - macho::MachOProperties (line 130) ... FAILED [INFO] [stdout] test src/elf.rs - elf::ElfCheckSecResults (line 77) ... FAILED [INFO] [stdout] test src/lib.rs - (line 18) ... ok [INFO] [stdout] test src/macho.rs - macho::MachOCheckSecResults (line 21) ... FAILED [INFO] [stdout] test src/lib.rs - (line 34) ... ok [INFO] [stdout] test src/pe.rs - pe::PEProperties (line 381) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/elf.rs - elf::ElfProperties (line 189) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `std::fs::File: std::convert::AsRef` is not satisfied [INFO] [stdout] --> src/elf.rs:196:35 [INFO] [stdout] | [INFO] [stdout] 10 | if let Ok(buf) = fs::read(fp) { [INFO] [stdout] | ^^ the trait `std::convert::AsRef` is not implemented for `std::fs::File` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/pe.rs - pe::PECheckSecResults (line 239) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Object` [INFO] [stdout] --> src/pe.rs:250:21 [INFO] [stdout] | [INFO] [stdout] 14 | Object::PE(pe) => println!( [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Object` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Object` [INFO] [stdout] --> src/pe.rs:248:30 [INFO] [stdout] | [INFO] [stdout] 12 | if let Ok(obj) = Object::parse(&buf) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 | use goblin::Object; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `PECheckSecResults` [INFO] [stdout] --> src/pe.rs:252:25 [INFO] [stdout] | [INFO] [stdout] 16 | PECheckSecResults::parse(&pe, &buf) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use checksec::pe::PECheckSecResults; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macho.rs - macho::MachOProperties (line 130) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `std::fs::File: std::convert::AsRef` is not satisfied [INFO] [stdout] --> src/macho.rs:137:35 [INFO] [stdout] | [INFO] [stdout] 10 | if let Ok(buf) = fs::read(fp) { [INFO] [stdout] | ^^ the trait `std::convert::AsRef` is not implemented for `std::fs::File` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/macho.rs:138:32 [INFO] [stdout] | [INFO] [stdout] 11 | if let Ok(macho) = MachO::parse(&buf) { [INFO] [stdout] | ^^^^^^^^^^^^ ---- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/elf.rs - elf::ElfCheckSecResults (line 77) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `std::fs::File: std::convert::AsRef` is not satisfied [INFO] [stdout] --> src/elf.rs:84:35 [INFO] [stdout] | [INFO] [stdout] 10 | if let Ok(buf) = fs::read(fp) { [INFO] [stdout] | ^^ the trait `std::convert::AsRef` is not implemented for `std::fs::File` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macho.rs - macho::MachOCheckSecResults (line 21) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `std::fs::File: std::convert::AsRef` is not satisfied [INFO] [stdout] --> src/macho.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 10 | if let Ok(buf) = fs::read(fp) { [INFO] [stdout] | ^^ the trait `std::convert::AsRef` is not implemented for `std::fs::File` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/macho.rs:29:32 [INFO] [stdout] | [INFO] [stdout] 11 | if let Ok(macho) = MachO::parse(&buf) { [INFO] [stdout] | ^^^^^^^^^^^^ ---- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/elf.rs - elf::ElfCheckSecResults (line 77) [INFO] [stdout] src/elf.rs - elf::ElfProperties (line 189) [INFO] [stdout] src/macho.rs - macho::MachOCheckSecResults (line 21) [INFO] [stdout] src/macho.rs - macho::MachOProperties (line 130) [INFO] [stdout] src/pe.rs - pe::PECheckSecResults (line 239) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "58a1cab8daffb98e90e23cd7bf42f93b2d49eb4353a3ba5fdf9fe5ed0e8e18dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58a1cab8daffb98e90e23cd7bf42f93b2d49eb4353a3ba5fdf9fe5ed0e8e18dd", kill_on_drop: false }` [INFO] [stdout] 58a1cab8daffb98e90e23cd7bf42f93b2d49eb4353a3ba5fdf9fe5ed0e8e18dd