[INFO] cloning repository https://github.com/taigi100/AoC23 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/taigi100/AoC23" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftaigi100%2FAoC23", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftaigi100%2FAoC23'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f3910b96d436d874689633d24385d62da8d1cf74 [INFO] checking taigi100/AoC23 against master#c3def263a44e07e09ae6d57abfc8650227fb4972 for pr-118833 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftaigi100%2FAoC23" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/taigi100/AoC23 on toolchain c3def263a44e07e09ae6d57abfc8650227fb4972 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c3def263a44e07e09ae6d57abfc8650227fb4972" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/taigi100/AoC23 [INFO] finished tweaking git repo https://github.com/taigi100/AoC23 [INFO] tweaked toml for git repo https://github.com/taigi100/AoC23 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/taigi100/AoC23 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" "+c3def263a44e07e09ae6d57abfc8650227fb4972" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking taigi100/AoC23 against try#29596578cb5035fa2b7ac7fbdfea23fab38836e7 for pr-118833 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftaigi100%2FAoC23" "/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/taigi100/AoC23 on toolchain 29596578cb5035fa2b7ac7fbdfea23fab38836e7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+29596578cb5035fa2b7ac7fbdfea23fab38836e7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/taigi100/AoC23 [INFO] finished tweaking git repo https://github.com/taigi100/AoC23 [INFO] tweaked toml for git repo https://github.com/taigi100/AoC23 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/taigi100/AoC23 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" "+29596578cb5035fa2b7ac7fbdfea23fab38836e7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+29596578cb5035fa2b7ac7fbdfea23fab38836e7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b58c4c4608e6c86c0e590bce5f58733b4c3e061e82dffecc01b9001cc47454a [INFO] running `Command { std: "docker" "start" "-a" "7b58c4c4608e6c86c0e590bce5f58733b4c3e061e82dffecc01b9001cc47454a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b58c4c4608e6c86c0e590bce5f58733b4c3e061e82dffecc01b9001cc47454a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b58c4c4608e6c86c0e590bce5f58733b4c3e061e82dffecc01b9001cc47454a", kill_on_drop: false }` [INFO] [stdout] 7b58c4c4608e6c86c0e590bce5f58733b4c3e061e82dffecc01b9001cc47454a [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+29596578cb5035fa2b7ac7fbdfea23fab38836e7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 475938233d9e49fbbf4a689b81ca4dbb75dd57f7b0cee6f29949fcd4891f77bc [INFO] running `Command { std: "docker" "start" "-a" "475938233d9e49fbbf4a689b81ca4dbb75dd57f7b0cee6f29949fcd4891f77bc", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking strength_reduce v0.2.4 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking transpose v0.2.2 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking AoC23 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | if (i == 0 && grid[&(i, j)] == '.') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - if (i == 0 && grid[&(i, j)] == '.') { [INFO] [stdout] 18 + if i == 0 && grid[&(i, j)] == '.' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | if (i == data.lines().count() - 1 && grid[&(i, j)] == '.') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - if (i == data.lines().count() - 1 && grid[&(i, j)] == '.') { [INFO] [stdout] 21 + if i == data.lines().count() - 1 && grid[&(i, j)] == '.' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | let dx = (i as isize + di); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - let dx = (i as isize + di); [INFO] [stdout] 39 + let dx = i as isize + di; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | let dy = (j as isize + dj); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - let dy = (j as isize + dj); [INFO] [stdout] 40 + let dy = j as isize + dj; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | if (distance > 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - if (distance > 1) { [INFO] [stdout] 92 + if distance > 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:238:22 [INFO] [stdout] | [INFO] [stdout] 238 | for x in (b.0 .0..=b.1 .0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - for x in (b.0 .0..=b.1 .0) { [INFO] [stdout] 238 + for x in b.0 .0..=b.1 .0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:239:26 [INFO] [stdout] | [INFO] [stdout] 239 | for y in (b.0 .1..=b.1 .1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - for y in (b.0 .1..=b.1 .1) { [INFO] [stdout] 239 + for y in b.0 .1..=b.1 .1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:716:40 [INFO] [stdout] | [INFO] [stdout] 716 | let mut valid_dirs = match (dir) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 716 - let mut valid_dirs = match (dir) { [INFO] [stdout] 716 + let mut valid_dirs = match dir { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:790:62 [INFO] [stdout] | [INFO] [stdout] 790 | seen: &mut HashMap<((usize, usize), (isize, isize)), (u32)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 790 - seen: &mut HashMap<((usize, usize), (isize, isize)), (u32)>, [INFO] [stdout] 790 + seen: &mut HashMap<((usize, usize), (isize, isize)), u32>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | if (i == 0 && grid[&(i, j)] == '.') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - if (i == 0 && grid[&(i, j)] == '.') { [INFO] [stdout] 18 + if i == 0 && grid[&(i, j)] == '.' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | if (i == data.lines().count() - 1 && grid[&(i, j)] == '.') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - if (i == data.lines().count() - 1 && grid[&(i, j)] == '.') { [INFO] [stdout] 21 + if i == data.lines().count() - 1 && grid[&(i, j)] == '.' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | let dx = (i as isize + di); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - let dx = (i as isize + di); [INFO] [stdout] 39 + let dx = i as isize + di; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:40:22 [INFO] [stdout] | [INFO] [stdout] 40 | let dy = (j as isize + dj); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 40 - let dy = (j as isize + dj); [INFO] [stdout] 40 + let dy = j as isize + dj; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:92:16 [INFO] [stdout] | [INFO] [stdout] 92 | if (distance > 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - if (distance > 1) { [INFO] [stdout] 92 + if distance > 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:238:22 [INFO] [stdout] | [INFO] [stdout] 238 | for x in (b.0 .0..=b.1 .0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - for x in (b.0 .0..=b.1 .0) { [INFO] [stdout] 238 + for x in b.0 .0..=b.1 .0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:239:26 [INFO] [stdout] | [INFO] [stdout] 239 | for y in (b.0 .1..=b.1 .1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - for y in (b.0 .1..=b.1 .1) { [INFO] [stdout] 239 + for y in b.0 .1..=b.1 .1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:716:40 [INFO] [stdout] | [INFO] [stdout] 716 | let mut valid_dirs = match (dir) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 716 - let mut valid_dirs = match (dir) { [INFO] [stdout] 716 + let mut valid_dirs = match dir { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:790:62 [INFO] [stdout] | [INFO] [stdout] 790 | seen: &mut HashMap<((usize, usize), (isize, isize)), (u32)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 790 - seen: &mut HashMap<((usize, usize), (isize, isize)), (u32)>, [INFO] [stdout] 790 + seen: &mut HashMap<((usize, usize), (isize, isize)), u32>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:617:21 [INFO] [stdout] | [INFO] [stdout] 616 | return ans; [INFO] [stdout] | ---------- any code following this expression is unreachable [INFO] [stdout] 617 | continue; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:617:21 [INFO] [stdout] | [INFO] [stdout] 616 | return ans; [INFO] [stdout] | ---------- any code following this expression is unreachable [INFO] [stdout] 617 | continue; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | let (mut p1, mut p2) = (0, 0); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | let (mut p1, mut p2) = (0, 0); [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let mut path = vec![start]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:251:14 [INFO] [stdout] | [INFO] [stdout] 251 | let (mut falls, _) = drop(removed); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p1` is never read [INFO] [stdout] --> src/main.rs:263:14 [INFO] [stdout] | [INFO] [stdout] 263 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gradens_counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | let mut gradens_counter = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_gradens_counter` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `N` [INFO] [stdout] --> src/main.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | let N = grid.len() as i64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_N` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:263:18 [INFO] [stdout] | [INFO] [stdout] 263 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:367:10 [INFO] [stdout] | [INFO] [stdout] 367 | for (n, v) in &graph { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/main.rs:391:10 [INFO] [stdout] | [INFO] [stdout] 391 | for (node, conj) in &mut conjunctions { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:485:24 [INFO] [stdout] | [INFO] [stdout] 485 | .map(|(s, v)| *v as u64) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:336:10 [INFO] [stdout] | [INFO] [stdout] 336 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:435:53 [INFO] [stdout] | [INFO] [stdout] 435 | if conjunction.iter().any(|(v, s)| *s == -1) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:497:22 [INFO] [stdout] | [INFO] [stdout] 497 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:591:25 [INFO] [stdout] | [INFO] [stdout] 591 | let (l, op, mut v) = ( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:653:14 [INFO] [stdout] | [INFO] [stdout] 653 | let (mut n, mut m) = (0, 0); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:653:21 [INFO] [stdout] | [INFO] [stdout] 653 | let (mut n, mut m) = (0, 0); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/main.rs:661:13 [INFO] [stdout] | [INFO] [stdout] 661 | let dir = line.split_whitespace().nth(0).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cnt` is never read [INFO] [stdout] --> src/main.rs:662:17 [INFO] [stdout] | [INFO] [stdout] 662 | let mut cnt = line [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:650:10 [INFO] [stdout] | [INFO] [stdout] 650 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:650:18 [INFO] [stdout] | [INFO] [stdout] 650 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:653:10 [INFO] [stdout] | [INFO] [stdout] 653 | let (mut n, mut m) = (0, 0); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:653:17 [INFO] [stdout] | [INFO] [stdout] 653 | let (mut n, mut m) = (0, 0); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:675:13 [INFO] [stdout] | [INFO] [stdout] 675 | let mut direction = match color.as_bytes()[color.len() - 1] { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p1` is never read [INFO] [stdout] --> src/main.rs:698:14 [INFO] [stdout] | [INFO] [stdout] 698 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:698:22 [INFO] [stdout] | [INFO] [stdout] 698 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dirs` [INFO] [stdout] --> src/main.rs:699:9 [INFO] [stdout] | [INFO] [stdout] 699 | let dirs = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dirs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/main.rs:710:17 [INFO] [stdout] | [INFO] [stdout] 710 | let mut location = (0, 0); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cost` [INFO] [stdout] --> src/main.rs:715:18 [INFO] [stdout] | [INFO] [stdout] 715 | let (cost, steps, node, dir) = item; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:710:13 [INFO] [stdout] | [INFO] [stdout] 710 | let mut location = (0, 0); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p1` is never read [INFO] [stdout] --> src/main.rs:780:14 [INFO] [stdout] | [INFO] [stdout] 780 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:780:22 [INFO] [stdout] | [INFO] [stdout] 780 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:1005:22 [INFO] [stdout] | [INFO] [stdout] 1005 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1005:10 [INFO] [stdout] | [INFO] [stdout] 1005 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1105:18 [INFO] [stdout] | [INFO] [stdout] 1105 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parity` is never read [INFO] [stdout] --> src/main.rs:1453:13 [INFO] [stdout] | [INFO] [stdout] 1453 | let mut parity = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | let (mut p1, mut p2) = (0, 0); [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 `p2` is never read [INFO] [stdout] --> src/main.rs:1519:22 [INFO] [stdout] | [INFO] [stdout] 1519 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1569:10 [INFO] [stdout] | [INFO] [stdout] 1569 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p1` is never read [INFO] [stdout] --> src/main.rs:1641:14 [INFO] [stdout] | [INFO] [stdout] 1641 | let (mut p1, mut p2) = (0, 0.0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:1641:22 [INFO] [stdout] | [INFO] [stdout] 1641 | let (mut p1, mut p2) = (0, 0.0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | let (mut p1, mut p2) = (0, 0); [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let mut path = vec![start]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p1` is never read [INFO] [stdout] --> src/main.rs:1693:14 [INFO] [stdout] | [INFO] [stdout] 1693 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:1693:22 [INFO] [stdout] | [INFO] [stdout] 1693 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1706:13 [INFO] [stdout] | [INFO] [stdout] 1706 | let mut counter = -1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_counter` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/main.rs:1742:5 [INFO] [stdout] | [INFO] [stdout] 1742 | i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:251:14 [INFO] [stdout] | [INFO] [stdout] 251 | let (mut falls, _) = drop(removed); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p1` is never read [INFO] [stdout] --> src/main.rs:263:14 [INFO] [stdout] | [INFO] [stdout] 263 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gradens_counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | let mut gradens_counter = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_gradens_counter` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `N` [INFO] [stdout] --> src/main.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | let N = grid.len() as i64; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_N` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:263:18 [INFO] [stdout] | [INFO] [stdout] 263 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> src/main.rs:1872:17 [INFO] [stdout] | [INFO] [stdout] 1872 | let mut r = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `g` is never read [INFO] [stdout] --> src/main.rs:1873:17 [INFO] [stdout] | [INFO] [stdout] 1873 | let mut g = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `b` is never read [INFO] [stdout] --> src/main.rs:1874:17 [INFO] [stdout] | [INFO] [stdout] 1874 | let mut b = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:367:10 [INFO] [stdout] | [INFO] [stdout] 367 | for (n, v) in &graph { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/main.rs:391:10 [INFO] [stdout] | [INFO] [stdout] 391 | for (node, conj) in &mut conjunctions { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/main.rs:1942:26 [INFO] [stdout] | [INFO] [stdout] 1942 | let get_digit = |l: String| -> (i32, i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/main.rs:485:24 [INFO] [stdout] | [INFO] [stdout] 485 | .map(|(s, v)| *v as u64) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1926:17 [INFO] [stdout] | [INFO] [stdout] 1926 | let mut aux = result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1919:9 [INFO] [stdout] | [INFO] [stdout] 1919 | let mut lines = data.lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AoC23` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ao_c23` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut S = VecDeque::new(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `DFS` should have a snake case name [INFO] [stdout] --> src/main.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn DFS( [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `dfs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> src/main.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | let mut S = VecDeque::new(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | let N = grid.len() as i64; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:342:32 [INFO] [stdout] | [INFO] [stdout] 342 | let mut new_line = line.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `DFS` should have a snake case name [INFO] [stdout] --> src/main.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 398 | fn DFS<'a>( [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `dfs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:1427:16 [INFO] [stdout] | [INFO] [stdout] 1427 | if x < 0 || x >= lines || y < 0 || y >= cols { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:1427:39 [INFO] [stdout] | [INFO] [stdout] 1427 | if x < 0 || x >= lines || y < 0 || y >= cols { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:336:10 [INFO] [stdout] | [INFO] [stdout] 336 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:435:53 [INFO] [stdout] | [INFO] [stdout] 435 | if conjunction.iter().any(|(v, s)| *s == -1) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:497:22 [INFO] [stdout] | [INFO] [stdout] 497 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 69 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:591:25 [INFO] [stdout] | [INFO] [stdout] 591 | let (l, op, mut v) = ( [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:653:14 [INFO] [stdout] | [INFO] [stdout] 653 | let (mut n, mut m) = (0, 0); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:653:21 [INFO] [stdout] | [INFO] [stdout] 653 | let (mut n, mut m) = (0, 0); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/main.rs:661:13 [INFO] [stdout] | [INFO] [stdout] 661 | let dir = line.split_whitespace().nth(0).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cnt` is never read [INFO] [stdout] --> src/main.rs:662:17 [INFO] [stdout] | [INFO] [stdout] 662 | let mut cnt = line [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:650:10 [INFO] [stdout] | [INFO] [stdout] 650 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:650:18 [INFO] [stdout] | [INFO] [stdout] 650 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:653:10 [INFO] [stdout] | [INFO] [stdout] 653 | let (mut n, mut m) = (0, 0); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:653:17 [INFO] [stdout] | [INFO] [stdout] 653 | let (mut n, mut m) = (0, 0); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:675:13 [INFO] [stdout] | [INFO] [stdout] 675 | let mut direction = match color.as_bytes()[color.len() - 1] { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p1` is never read [INFO] [stdout] --> src/main.rs:698:14 [INFO] [stdout] | [INFO] [stdout] 698 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:698:22 [INFO] [stdout] | [INFO] [stdout] 698 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dirs` [INFO] [stdout] --> src/main.rs:699:9 [INFO] [stdout] | [INFO] [stdout] 699 | let dirs = [(1, 0), (0, 1), (-1, 0), (0, -1)]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dirs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/main.rs:710:17 [INFO] [stdout] | [INFO] [stdout] 710 | let mut location = (0, 0); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cost` [INFO] [stdout] --> src/main.rs:715:18 [INFO] [stdout] | [INFO] [stdout] 715 | let (cost, steps, node, dir) = item; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:710:13 [INFO] [stdout] | [INFO] [stdout] 710 | let mut location = (0, 0); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p1` is never read [INFO] [stdout] --> src/main.rs:780:14 [INFO] [stdout] | [INFO] [stdout] 780 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:780:22 [INFO] [stdout] | [INFO] [stdout] 780 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:1005:22 [INFO] [stdout] | [INFO] [stdout] 1005 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1005:10 [INFO] [stdout] | [INFO] [stdout] 1005 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1105:18 [INFO] [stdout] | [INFO] [stdout] 1105 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parity` is never read [INFO] [stdout] --> src/main.rs:1453:13 [INFO] [stdout] | [INFO] [stdout] 1453 | let mut parity = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:1519:22 [INFO] [stdout] | [INFO] [stdout] 1519 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1569:10 [INFO] [stdout] | [INFO] [stdout] 1569 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p1` is never read [INFO] [stdout] --> src/main.rs:1641:14 [INFO] [stdout] | [INFO] [stdout] 1641 | let (mut p1, mut p2) = (0, 0.0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:1641:22 [INFO] [stdout] | [INFO] [stdout] 1641 | let (mut p1, mut p2) = (0, 0.0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p1` is never read [INFO] [stdout] --> src/main.rs:1693:14 [INFO] [stdout] | [INFO] [stdout] 1693 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `p2` is never read [INFO] [stdout] --> src/main.rs:1693:22 [INFO] [stdout] | [INFO] [stdout] 1693 | let (mut p1, mut p2) = (0, 0); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1706:13 [INFO] [stdout] | [INFO] [stdout] 1706 | let mut counter = -1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_counter` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/main.rs:1742:5 [INFO] [stdout] | [INFO] [stdout] 1742 | i = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> src/main.rs:1872:17 [INFO] [stdout] | [INFO] [stdout] 1872 | let mut r = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `g` is never read [INFO] [stdout] --> src/main.rs:1873:17 [INFO] [stdout] | [INFO] [stdout] 1873 | let mut g = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `b` is never read [INFO] [stdout] --> src/main.rs:1874:17 [INFO] [stdout] | [INFO] [stdout] 1874 | let mut b = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l` [INFO] [stdout] --> src/main.rs:1942:26 [INFO] [stdout] | [INFO] [stdout] 1942 | let get_digit = |l: String| -> (i32, i32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1926:17 [INFO] [stdout] | [INFO] [stdout] 1926 | let mut aux = result; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1919:9 [INFO] [stdout] | [INFO] [stdout] 1919 | let mut lines = data.lines(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AoC23` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `ao_c23` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> src/main.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut S = VecDeque::new(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `DFS` should have a snake case name [INFO] [stdout] --> src/main.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn DFS( [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `dfs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> src/main.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | let mut S = VecDeque::new(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | let N = grid.len() as i64; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:342:32 [INFO] [stdout] | [INFO] [stdout] 342 | let mut new_line = line.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `DFS` should have a snake case name [INFO] [stdout] --> src/main.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 398 | fn DFS<'a>( [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `dfs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:1427:16 [INFO] [stdout] | [INFO] [stdout] 1427 | if x < 0 || x >= lines || y < 0 || y >= cols { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/main.rs:1427:39 [INFO] [stdout] | [INFO] [stdout] 1427 | if x < 0 || x >= lines || y < 0 || y >= cols { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 69 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.50s [INFO] running `Command { std: "docker" "inspect" "475938233d9e49fbbf4a689b81ca4dbb75dd57f7b0cee6f29949fcd4891f77bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "475938233d9e49fbbf4a689b81ca4dbb75dd57f7b0cee6f29949fcd4891f77bc", kill_on_drop: false }` [INFO] [stdout] 475938233d9e49fbbf4a689b81ca4dbb75dd57f7b0cee6f29949fcd4891f77bc