[INFO] cloning repository https://github.com/Svansig/aoc-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Svansig/aoc-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSvansig%2Faoc-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSvansig%2Faoc-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1c7697228373f2cfa0e2c5b5fc76b4aa3404d7f1 [INFO] checking Svansig/aoc-rust against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSvansig%2Faoc-rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/Svansig/aoc-rust [INFO] finished tweaking git repo https://github.com/Svansig/aoc-rust [INFO] tweaked toml for git repo https://github.com/Svansig/aoc-rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Svansig/aoc-rust on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Svansig/aoc-rust 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a718300dd78a2cea2799f2ff349701b649bc4e9a9f0ff5d33287b01cd270f1a0 [INFO] running `Command { std: "docker" "start" "-a" "a718300dd78a2cea2799f2ff349701b649bc4e9a9f0ff5d33287b01cd270f1a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a718300dd78a2cea2799f2ff349701b649bc4e9a9f0ff5d33287b01cd270f1a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a718300dd78a2cea2799f2ff349701b649bc4e9a9f0ff5d33287b01cd270f1a0", kill_on_drop: false }` [INFO] [stdout] a718300dd78a2cea2799f2ff349701b649bc4e9a9f0ff5d33287b01cd270f1a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cbdd5a71616d86c9703c4a3c05c01f0194b50cc2ab2d91ed6be055506dbf62ed [INFO] running `Command { std: "docker" "start" "-a" "cbdd5a71616d86c9703c4a3c05c01f0194b50cc2ab2d91ed6be055506dbf62ed", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking tinyjson v2.5.1 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking advent_of_code v0.11.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `visited_index` [INFO] [stdout] --> src/bin/13.rs:159:25 [INFO] [stdout] | [INFO] [stdout] 159 | if let Some(visited_index) = visited_list.iter().position(|v| v.is_coincident(&visited)) [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visited_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `iterations` is assigned to, but never used [INFO] [stdout] --> src/bin/13.rs:420:9 [INFO] [stdout] | [INFO] [stdout] 420 | let mut iterations = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_iterations` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_time` [INFO] [stdout] --> src/bin/13.rs:422:13 [INFO] [stdout] | [INFO] [stdout] 422 | let start_time = std::time::Instant::now(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `iterations` is never read [INFO] [stdout] --> src/bin/13.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | iterations += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Button` is never constructed [INFO] [stdout] --> src/bin/13.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Button { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Prize` is never constructed [INFO] [stdout] --> src/bin/13.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Prize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_y_for_slope`, `get_distance`, `is_runnable`, `overshoot`, and `caught` are never used [INFO] [stdout] --> src/bin/13.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Prize { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 19 | fn get_y_for_slope(&self, x: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn get_distance(&self, x: usize, y: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn is_runnable(&self, visit: &Visited, button: &Button) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn overshoot(&self, visit: &Visited) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn caught(&self, visit: &Visited) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Visited` is never constructed [INFO] [stdout] --> src/bin/13.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct Visited { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_coincident`, `get_hash`, and `get_next_visited` are never used [INFO] [stdout] --> src/bin/13.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Visited { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 84 | fn new(x: usize, y: usize, cost: usize, prize: &Prize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn is_coincident(&self, other: &Visited) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn get_hash(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | fn get_next_visited(&self, button: &Button, prize: &Prize) -> Visited { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MinHeap` is never constructed [INFO] [stdout] --> src/bin/13.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | struct MinHeap<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `get_min_distance`, and `get_next` are never used [INFO] [stdout] --> src/bin/13.rs:142:8 [INFO] [stdout] | [INFO] [stdout] 141 | impl<'a> MinHeap<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 142 | fn new(target: &'a Prize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | fn insert(&mut self, visited: Visited) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | fn get_min_distance(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn get_next(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClawMachine` is never constructed [INFO] [stdout] --> src/bin/13.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | struct ClawMachine { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/bin/13.rs:224:8 [INFO] [stdout] | [INFO] [stdout] 223 | impl ClawMachine { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 224 | fn new(button_a: Button, button_b: Button) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | fn has_seen(&self, visit: &Visited) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn get_min_cost(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | fn should_visit(&self, visit: &Visited) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | fn set_min_cost(&mut self, visit: &Visited) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | fn try_runnable(&mut self, visit: &Visited, prize: &Prize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | fn run_button(&mut self, prize: &Prize, visit: Visited, button: &Button) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | fn find_min_cost_to_prize(&mut self, prize: &Prize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_button_line` is never used [INFO] [stdout] --> src/bin/13.rs:352:4 [INFO] [stdout] | [INFO] [stdout] 352 | fn parse_button_line(input: &str) -> Button { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_prize_line` is never used [INFO] [stdout] --> src/bin/13.rs:366:4 [INFO] [stdout] | [INFO] [stdout] 366 | fn parse_prize_line(input: &str) -> Prize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_input` is never used [INFO] [stdout] --> src/bin/13.rs:377:4 [INFO] [stdout] | [INFO] [stdout] 377 | fn parse_input(input: &str, offset: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_input_math` is never used [INFO] [stdout] --> src/bin/13.rs:411:4 [INFO] [stdout] | [INFO] [stdout] 411 | fn parse_input_math(input: &str, offset: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/13.rs:357:31 [INFO] [stdout] | [INFO] [stdout] 357 | let button_name: String = nums[1].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code` (bin "13" test) due to 1 previous error; 17 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `steps` [INFO] [stdout] --> src/bin/18.rs:40:36 [INFO] [stdout] | [INFO] [stdout] 40 | if let Cell::Empty(steps) = self.cells[y][x] { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_steps` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cost` [INFO] [stdout] --> src/bin/16.rs:224:25 [INFO] [stdout] | [INFO] [stdout] 224 | Cell::Empty(cost) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cost` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cost` [INFO] [stdout] --> src/bin/16.rs:233:23 [INFO] [stdout] | [INFO] [stdout] 233 | Cell::End(cost) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cost` [INFO] [stdout] --> src/bin/16.rs:242:28 [INFO] [stdout] | [INFO] [stdout] 242 | Cell::Reindeer(cost) => {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/17.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 299 | / loop { [INFO] [stdout] 300 | | let test = a_value << 3 | i; [INFO] [stdout] 301 | | let mut computer = self.clone(); [INFO] [stdout] 302 | | computer.state.register_a.value = test; [INFO] [stdout] ... | [INFO] [stdout] 343 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 344 | [INFO] [stdout] 345 | None [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `skip_line` [INFO] [stdout] --> src/bin/17.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | let skip_line = lines.next().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_skip_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_operand_value` is never used [INFO] [stdout] --> src/bin/17.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 75 | impl Instruction { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | fn get_operand_value(&self, state: &ComputerState) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_output` is never used [INFO] [stdout] --> src/bin/17.rs:287:8 [INFO] [stdout] | [INFO] [stdout] 205 | impl Computer { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 287 | fn print_output(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/bin/15.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl Cell { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "cbdd5a71616d86c9703c4a3c05c01f0194b50cc2ab2d91ed6be055506dbf62ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbdd5a71616d86c9703c4a3c05c01f0194b50cc2ab2d91ed6be055506dbf62ed", kill_on_drop: false }` [INFO] [stdout] cbdd5a71616d86c9703c4a3c05c01f0194b50cc2ab2d91ed6be055506dbf62ed