[INFO] fetching crate checksec 0.0.7... [INFO] testing checksec-0.0.7 against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] extracting crate checksec 0.0.7 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate checksec 0.0.7 on toolchain 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate checksec 0.0.7 [INFO] finished tweaking crates.io crate checksec 0.0.7 [INFO] tweaked toml for crates.io crate checksec 0.0.7 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate crates.io crate checksec 0.0.7 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 646ad1bff75669d912ae106127f27756b5b2c38ef08b079553388b2141902ccd [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" "646ad1bff75669d912ae106127f27756b5b2c38ef08b079553388b2141902ccd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "646ad1bff75669d912ae106127f27756b5b2c38ef08b079553388b2141902ccd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "646ad1bff75669d912ae106127f27756b5b2c38ef08b079553388b2141902ccd", kill_on_drop: false }` [INFO] [stdout] 646ad1bff75669d912ae106127f27756b5b2c38ef08b079553388b2141902ccd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5cd8dde6806efc755bf4e8d810e9890acd0fb74c904434ddaae2622fdd6ecf74 [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" "5cd8dde6806efc755bf4e8d810e9890acd0fb74c904434ddaae2622fdd6ecf74", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.75 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling rayon-core v1.7.1 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling sysinfo v0.15.1 [INFO] [stderr] Compiling either v1.6.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stderr] Compiling bstr v0.2.13 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [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.3 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling scroll_derive v0.10.2 [INFO] [stderr] Compiling globset v0.4.5 [INFO] [stderr] Compiling ignore v0.4.16 [INFO] [stderr] Compiling scroll v0.10.1 [INFO] [stderr] Compiling goblin v0.2.3 [INFO] [stderr] Compiling colored_json v2.1.0 [INFO] [stderr] Compiling checksec v0.0.7 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 16s [INFO] running `Command { std: "docker" "inspect" "5cd8dde6806efc755bf4e8d810e9890acd0fb74c904434ddaae2622fdd6ecf74", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cd8dde6806efc755bf4e8d810e9890acd0fb74c904434ddaae2622fdd6ecf74", kill_on_drop: false }` [INFO] [stdout] 5cd8dde6806efc755bf4e8d810e9890acd0fb74c904434ddaae2622fdd6ecf74 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen" "--no-run" "--message-format=json", 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] 08ac1bc5d46418464fe923edf2c64f902cce6b0e4b527171857fe72f7fd5c669 [INFO] running `Command { std: "docker" "start" "-a" "08ac1bc5d46418464fe923edf2c64f902cce6b0e4b527171857fe72f7fd5c669", kill_on_drop: false }` [INFO] [stderr] Compiling checksec v0.0.7 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.35s [INFO] running `Command { std: "docker" "inspect" "08ac1bc5d46418464fe923edf2c64f902cce6b0e4b527171857fe72f7fd5c669", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08ac1bc5d46418464fe923edf2c64f902cce6b0e4b527171857fe72f7fd5c669", kill_on_drop: false }` [INFO] [stdout] 08ac1bc5d46418464fe923edf2c64f902cce6b0e4b527171857fe72f7fd5c669 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] edb6d9066c910428cec7953d4e1e10f4729aefc0908542abc519280bb45040e6 [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" "edb6d9066c910428cec7953d4e1e10f4729aefc0908542abc519280bb45040e6", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/checksec-490056b902d45a77 [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/checksec-df2c70d2cb4f8e76 [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 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests checksec [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/pe.rs - pe::PECheckSecResults (line 239) ... FAILED [INFO] [stdout] test src/elf.rs - elf::ElfCheckSecResults (line 77) ... FAILED [INFO] [stdout] test src/macho.rs - macho::MachOProperties (line 130) ... FAILED [INFO] [stdout] test src/elf.rs - elf::ElfProperties (line 189) ... FAILED [INFO] [stdout] test src/macho.rs - macho::MachOCheckSecResults (line 21) ... FAILED [INFO] [stdout] test src/lib.rs - (line 18) ... ok [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/pe.rs - pe::PECheckSecResults (line 239) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object` [INFO] [stdout] --> src/pe.rs:250:21 [INFO] [stdout] | [INFO] [stdout] 14 | Object::PE(pe) => println!( [INFO] [stdout] | ^^^^^^ use of undeclared type `Object` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `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 `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/elf.rs - elf::ElfCheckSecResults (line 77) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `File: 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 `AsRef` is not implemented for `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::MachOProperties (line 130) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `File: 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 `AsRef` is not implemented for `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::ElfProperties (line 189) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `File: 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 `AsRef` is not implemented for `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 `File: 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 `AsRef` is not implemented for `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" "edb6d9066c910428cec7953d4e1e10f4729aefc0908542abc519280bb45040e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edb6d9066c910428cec7953d4e1e10f4729aefc0908542abc519280bb45040e6", kill_on_drop: false }` [INFO] [stdout] edb6d9066c910428cec7953d4e1e10f4729aefc0908542abc519280bb45040e6