[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 master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclaireplusplus%2Fadvent-of-code-2020" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/claireplusplus/advent-of-code-2020 on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-9/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b28f578473dac9c21a5372ff6709c00d2daebd91d507bde01ac69075f711b29d [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" "b28f578473dac9c21a5372ff6709c00d2daebd91d507bde01ac69075f711b29d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b28f578473dac9c21a5372ff6709c00d2daebd91d507bde01ac69075f711b29d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b28f578473dac9c21a5372ff6709c00d2daebd91d507bde01ac69075f711b29d", kill_on_drop: false }` [INFO] [stdout] b28f578473dac9c21a5372ff6709c00d2daebd91d507bde01ac69075f711b29d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19cd076a6378c0c2cdd1c60aedb0802f795444c6cb4965dca57eea69ad2a6ac1 [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" "19cd076a6378c0c2cdd1c60aedb0802f795444c6cb4965dca57eea69ad2a6ac1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Checking tap v1.0.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking funty v1.0.1 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling nom v6.0.1 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking lexical-core v0.7.4 [INFO] [stderr] Checking bitvec v0.19.4 [INFO] [stderr] Checking petgraph v0.5.1 [INFO] [stderr] Checking atty v0.2.14 [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] 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] 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" "19cd076a6378c0c2cdd1c60aedb0802f795444c6cb4965dca57eea69ad2a6ac1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19cd076a6378c0c2cdd1c60aedb0802f795444c6cb4965dca57eea69ad2a6ac1", kill_on_drop: false }` [INFO] [stdout] 19cd076a6378c0c2cdd1c60aedb0802f795444c6cb4965dca57eea69ad2a6ac1