[INFO] cloning repository https://github.com/jchristy3/RustAdventOfCode2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jchristy3/RustAdventOfCode2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjchristy3%2FRustAdventOfCode2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjchristy3%2FRustAdventOfCode2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0fb03a7b4da431799cd3a18d5d69b5e6134317c3 [INFO] checking jchristy3/RustAdventOfCode2023 against try#86f78589b09557f70c9db3f56ad1921e0a9f76ef for pr-138438 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjchristy3%2FRustAdventOfCode2023" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jchristy3/RustAdventOfCode2023 on toolchain 86f78589b09557f70c9db3f56ad1921e0a9f76ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+86f78589b09557f70c9db3f56ad1921e0a9f76ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jchristy3/RustAdventOfCode2023 [INFO] finished tweaking git repo https://github.com/jchristy3/RustAdventOfCode2023 [INFO] tweaked toml for git repo https://github.com/jchristy3/RustAdventOfCode2023 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jchristy3/RustAdventOfCode2023 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" "+86f78589b09557f70c9db3f56ad1921e0a9f76ef" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+86f78589b09557f70c9db3f56ad1921e0a9f76ef" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f5b7030a4162aab2c17633a32109a4a84e0aa7ad0770f594f4a81187586527ef [INFO] running `Command { std: "docker" "start" "-a" "f5b7030a4162aab2c17633a32109a4a84e0aa7ad0770f594f4a81187586527ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f5b7030a4162aab2c17633a32109a4a84e0aa7ad0770f594f4a81187586527ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5b7030a4162aab2c17633a32109a4a84e0aa7ad0770f594f4a81187586527ef", kill_on_drop: false }` [INFO] [stdout] f5b7030a4162aab2c17633a32109a4a84e0aa7ad0770f594f4a81187586527ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+86f78589b09557f70c9db3f56ad1921e0a9f76ef" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe3b33c881b646f330edc9d728eae4f0891d0f1385e0b050dba647c11d04cacb [INFO] running `Command { std: "docker" "start" "-a" "fe3b33c881b646f330edc9d728eae4f0891d0f1385e0b050dba647c11d04cacb", kill_on_drop: false }` [INFO] [stderr] Checking AdventOfCode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `calibration_string` is never read [INFO] [stdout] --> src/main.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let mut calibration_string = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `calibration_string` is never read [INFO] [stdout] --> src/main.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | let mut calibration_string = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `part_num` [INFO] [stdout] --> src/main.rs:56:39 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_possible_game_sum(input: &str, part_num: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_part_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `part_num` [INFO] [stdout] --> src/main.rs:56:39 [INFO] [stdout] | [INFO] [stdout] 56 | fn get_possible_game_sum(input: &str, part_num: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_part_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `expected_sum` [INFO] [stdout] --> src/main.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 58 | let mut expected_sum: HashMap<&str, &i32> = HashMap::new(); [INFO] [stdout] | ---------------- move occurs because `expected_sum` has type `HashMap<&str, &i32>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 64 | for line in input.lines() { [INFO] [stdout] | ------------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 86 | for (key, value) in expected_sum { [INFO] [stdout] | ^^^^^^^^^^^^ `expected_sum` moved due to this implicit call to `.into_iter()`, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `expected_sum` [INFO] [stdout] --> /rustc/86f78589b09557f70c9db3f56ad1921e0a9f76ef/library/core/src/iter/traits/collect.rs:313:18 [INFO] [stdout] help: consider iterating over a slice of the `HashMap<&str, &i32>`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 86 | for (key, value) in &expected_sum { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `expected_sum` [INFO] [stdout] --> src/main.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 58 | let mut expected_sum: HashMap<&str, &i32> = HashMap::new(); [INFO] [stdout] | ---------------- move occurs because `expected_sum` has type `HashMap<&str, &i32>`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 64 | for line in input.lines() { [INFO] [stdout] | ------------------------- inside of this loop [INFO] [stdout] ... [INFO] [stdout] 86 | for (key, value) in expected_sum { [INFO] [stdout] | ^^^^^^^^^^^^ `expected_sum` moved due to this implicit call to `.into_iter()`, in previous iteration of loop [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `expected_sum` [INFO] [stdout] --> /rustc/86f78589b09557f70c9db3f56ad1921e0a9f76ef/library/core/src/iter/traits/collect.rs:313:18 [INFO] [stdout] help: consider iterating over a slice of the `HashMap<&str, &i32>`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 86 | for (key, value) in &expected_sum { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `AdventOfCode` (bin "AdventOfCode") due to 1 previous error; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `AdventOfCode` (bin "AdventOfCode" test) due to 1 previous error; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fe3b33c881b646f330edc9d728eae4f0891d0f1385e0b050dba647c11d04cacb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe3b33c881b646f330edc9d728eae4f0891d0f1385e0b050dba647c11d04cacb", kill_on_drop: false }` [INFO] [stdout] fe3b33c881b646f330edc9d728eae4f0891d0f1385e0b050dba647c11d04cacb