[INFO] cloning repository https://github.com/claireplusplus/advent-of-code-2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/claireplusplus/advent-of-code-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclaireplusplus%2Fadvent-of-code-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclaireplusplus%2Fadvent-of-code-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 585b20bf9c738460ed5dc1c00311c9b632b481fd [INFO] checking claireplusplus/advent-of-code-2020 against try#9cfe725f0995b018340c519db1b2f3cf8a7e0631 for pr-81174 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclaireplusplus%2Fadvent-of-code-2020" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/claireplusplus/advent-of-code-2020 on toolchain 9cfe725f0995b018340c519db1b2f3cf8a7e0631 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/claireplusplus/advent-of-code-2020 [INFO] finished tweaking git repo https://github.com/claireplusplus/advent-of-code-2020 [INFO] tweaked toml for git repo https://github.com/claireplusplus/advent-of-code-2020 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/claireplusplus/advent-of-code-2020 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 768182f82619fc26080053de3e0f1fd1bb29883a3f0d2056a8e87cfb708a45a0 [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" "768182f82619fc26080053de3e0f1fd1bb29883a3f0d2056a8e87cfb708a45a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "768182f82619fc26080053de3e0f1fd1bb29883a3f0d2056a8e87cfb708a45a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "768182f82619fc26080053de3e0f1fd1bb29883a3f0d2056a8e87cfb708a45a0", kill_on_drop: false }` [INFO] [stdout] 768182f82619fc26080053de3e0f1fd1bb29883a3f0d2056a8e87cfb708a45a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+9cfe725f0995b018340c519db1b2f3cf8a7e0631" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 017cc69844b73db42561ca27fd44f92a1434d4ac20c89535c51acde6c2528b02 [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" "017cc69844b73db42561ca27fd44f92a1434d4ac20c89535c51acde6c2528b02", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Checking yaml-rust v0.3.5 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling nom v6.0.1 [INFO] [stderr] Checking lexical-core v0.7.4 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking petgraph v0.5.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking advent-of-code2020 v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handheld_halting.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut modified_instructions = instructions.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `instructions` [INFO] [stdout] --> src/handheld_halting.rs:185:41 [INFO] [stdout] | [INFO] [stdout] 181 | let instructions: Vec = parse_input(input).unwrap(); [INFO] [stdout] | ------------ move occurs because `instructions` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 185 | let mut modified_instructions = instructions.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] ... [INFO] [stdout] 194 | let accumulator = run_machine(instructions); [INFO] [stdout] | ------------ value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 210 | let accumulator = run_machine(instructions); [INFO] [stdout] | ------------ value moved here, in previous iteration of loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `instr.opcode`, as `instr` is not declared as mutable [INFO] [stdout] --> src/handheld_halting.rs:193:21 [INFO] [stdout] | [INFO] [stdout] 186 | for instr in modified_instructions { [INFO] [stdout] | ----- help: consider changing this to be mutable: `mut instr` [INFO] [stdout] ... [INFO] [stdout] 193 | instr.opcode = Operation::Nop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `instr.opcode`, as `instr` is not declared as mutable [INFO] [stdout] --> src/handheld_halting.rs:202:29 [INFO] [stdout] | [INFO] [stdout] 186 | for instr in modified_instructions { [INFO] [stdout] | ----- help: consider changing this to be mutable: `mut instr` [INFO] [stdout] ... [INFO] [stdout] 202 | instr.opcode = Operation::Jmp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `instr.opcode`, as `instr` is not declared as mutable [INFO] [stdout] --> src/handheld_halting.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 186 | for instr in modified_instructions { [INFO] [stdout] | ----- help: consider changing this to be mutable: `mut instr` [INFO] [stdout] ... [INFO] [stdout] 209 | instr.opcode = Operation::Jmp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `instr.opcode`, as `instr` is not declared as mutable [INFO] [stdout] --> src/handheld_halting.rs:218:29 [INFO] [stdout] | [INFO] [stdout] 186 | for instr in modified_instructions { [INFO] [stdout] | ----- help: consider changing this to be mutable: `mut instr` [INFO] [stdout] ... [INFO] [stdout] 218 | instr.opcode = Operation::Nop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0594. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code2020` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handheld_halting.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut modified_instructions = instructions.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `instructions` [INFO] [stdout] --> src/handheld_halting.rs:185:41 [INFO] [stdout] | [INFO] [stdout] 181 | let instructions: Vec = parse_input(input).unwrap(); [INFO] [stdout] | ------------ move occurs because `instructions` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 185 | let mut modified_instructions = instructions.clone(); [INFO] [stdout] | ^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] ... [INFO] [stdout] 194 | let accumulator = run_machine(instructions); [INFO] [stdout] | ------------ value moved here, in previous iteration of loop [INFO] [stdout] ... [INFO] [stdout] 210 | let accumulator = run_machine(instructions); [INFO] [stdout] | ------------ value moved here, in previous iteration of loop [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `instr.opcode`, as `instr` is not declared as mutable [INFO] [stdout] --> src/handheld_halting.rs:193:21 [INFO] [stdout] | [INFO] [stdout] 186 | for instr in modified_instructions { [INFO] [stdout] | ----- help: consider changing this to be mutable: `mut instr` [INFO] [stdout] ... [INFO] [stdout] 193 | instr.opcode = Operation::Nop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `instr.opcode`, as `instr` is not declared as mutable [INFO] [stdout] --> src/handheld_halting.rs:202:29 [INFO] [stdout] | [INFO] [stdout] 186 | for instr in modified_instructions { [INFO] [stdout] | ----- help: consider changing this to be mutable: `mut instr` [INFO] [stdout] ... [INFO] [stdout] 202 | instr.opcode = Operation::Jmp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `instr.opcode`, as `instr` is not declared as mutable [INFO] [stdout] --> src/handheld_halting.rs:209:21 [INFO] [stdout] | [INFO] [stdout] 186 | for instr in modified_instructions { [INFO] [stdout] | ----- help: consider changing this to be mutable: `mut instr` [INFO] [stdout] ... [INFO] [stdout] 209 | instr.opcode = Operation::Jmp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `instr.opcode`, as `instr` is not declared as mutable [INFO] [stdout] --> src/handheld_halting.rs:218:29 [INFO] [stdout] | [INFO] [stdout] 186 | for instr in modified_instructions { [INFO] [stdout] | ----- help: consider changing this to be mutable: `mut instr` [INFO] [stdout] ... [INFO] [stdout] 218 | instr.opcode = Operation::Nop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0594. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "017cc69844b73db42561ca27fd44f92a1434d4ac20c89535c51acde6c2528b02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "017cc69844b73db42561ca27fd44f92a1434d4ac20c89535c51acde6c2528b02", kill_on_drop: false }` [INFO] [stdout] 017cc69844b73db42561ca27fd44f92a1434d4ac20c89535c51acde6c2528b02