[INFO] cloning repository https://github.com/its-popplewell/AntiVirus [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/its-popplewell/AntiVirus" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fits-popplewell%2FAntiVirus", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fits-popplewell%2FAntiVirus'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] efdad77ca4f28bf8a733acebea40ce55e70e2641 [INFO] checking its-popplewell/AntiVirus against master#01706e1a34c87656fcbfce198608f4cd2ac6461a for pr-135272 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fits-popplewell%2FAntiVirus" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/its-popplewell/AntiVirus on toolchain 01706e1a34c87656fcbfce198608f4cd2ac6461a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+01706e1a34c87656fcbfce198608f4cd2ac6461a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/its-popplewell/AntiVirus [INFO] finished tweaking git repo https://github.com/its-popplewell/AntiVirus [INFO] tweaked toml for git repo https://github.com/its-popplewell/AntiVirus written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/its-popplewell/AntiVirus already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+01706e1a34c87656fcbfce198608f4cd2ac6461a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde v1.0.187 [INFO] [stderr] Downloaded serde_derive v1.0.187 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+01706e1a34c87656fcbfce198608f4cd2ac6461a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 19237eb8c1ac82a339d4cf9cd8bda3a07da75608b6f4173d7f70499eafe490df [INFO] running `Command { std: "docker" "start" "-a" "19237eb8c1ac82a339d4cf9cd8bda3a07da75608b6f4173d7f70499eafe490df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "19237eb8c1ac82a339d4cf9cd8bda3a07da75608b6f4173d7f70499eafe490df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19237eb8c1ac82a339d4cf9cd8bda3a07da75608b6f4173d7f70499eafe490df", kill_on_drop: false }` [INFO] [stdout] 19237eb8c1ac82a339d4cf9cd8bda3a07da75608b6f4173d7f70499eafe490df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+01706e1a34c87656fcbfce198608f4cd2ac6461a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e05c7fd3b23913d36561a2905adabd68af2263d5e2d1a7df5678eefc2db455b7 [INFO] running `Command { std: "docker" "start" "-a" "e05c7fd3b23913d36561a2905adabd68af2263d5e2d1a7df5678eefc2db455b7", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.187 [INFO] [stderr] Checking anti_virus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | file.read_to_end(&mut output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = file.read_to_end(&mut output); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::to_string` in constants [INFO] [stdout] --> src/main.rs:62:26 [INFO] [stdout] | [INFO] [stdout] 62 | filename: "boop".to_string(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::to_string` in constants [INFO] [stdout] --> src/main.rs:63:30 [INFO] [stdout] | [INFO] [stdout] 63 | fileextension: "txt".to_string(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0015]: cannot call non-const method `::to_string` in constants [INFO] [stdout] --> src/main.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | path: "resources".to_string(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: calls in constants are limited to constant functions, tuple structs and tuple variants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0015`. [INFO] [stdout] [INFO] [stderr] error: could not compile `anti_virus` (bin "anti_virus" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "e05c7fd3b23913d36561a2905adabd68af2263d5e2d1a7df5678eefc2db455b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e05c7fd3b23913d36561a2905adabd68af2263d5e2d1a7df5678eefc2db455b7", kill_on_drop: false }` [INFO] [stdout] e05c7fd3b23913d36561a2905adabd68af2263d5e2d1a7df5678eefc2db455b7