[INFO] cloning repository https://github.com/othonrm/adventofcode2024 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/othonrm/adventofcode2024" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fothonrm%2Fadventofcode2024", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fothonrm%2Fadventofcode2024'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 351a8c5168f314e8315b995239007d0116b2b00c [INFO] checking othonrm/adventofcode2024 against try#8d46be77cd48fdbcced888d027457e2c9cf2aa16 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fothonrm%2Fadventofcode2024" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/othonrm/adventofcode2024 on toolchain 8d46be77cd48fdbcced888d027457e2c9cf2aa16 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/othonrm/adventofcode2024 [INFO] finished tweaking git repo https://github.com/othonrm/adventofcode2024 [INFO] tweaked toml for git repo https://github.com/othonrm/adventofcode2024 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/othonrm/adventofcode2024 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" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "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 [INFO] checking othonrm/adventofcode2024 against try#8d46be77cd48fdbcced888d027457e2c9cf2aa16 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fothonrm%2Fadventofcode2024" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/othonrm/adventofcode2024 on toolchain 8d46be77cd48fdbcced888d027457e2c9cf2aa16 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/othonrm/adventofcode2024 [INFO] finished tweaking git repo https://github.com/othonrm/adventofcode2024 [INFO] tweaked toml for git repo https://github.com/othonrm/adventofcode2024 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/othonrm/adventofcode2024 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" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 94a472f6375a71ec8a8c424463b14cc9c204cf8b14aa3efd70913755bff4efc0 [INFO] running `Command { std: "docker" "start" "-a" "94a472f6375a71ec8a8c424463b14cc9c204cf8b14aa3efd70913755bff4efc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "94a472f6375a71ec8a8c424463b14cc9c204cf8b14aa3efd70913755bff4efc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94a472f6375a71ec8a8c424463b14cc9c204cf8b14aa3efd70913755bff4efc0", kill_on_drop: false }` [INFO] [stdout] 94a472f6375a71ec8a8c424463b14cc9c204cf8b14aa3efd70913755bff4efc0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd5865b9c4ffe394c1db02de2e6cf4525036afbcab83285be976265afc570983 [INFO] running `Command { std: "docker" "start" "-a" "cd5865b9c4ffe394c1db02de2e6cf4525036afbcab83285be976265afc570983", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking regex-syntax v0.8.5 [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 hello v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/bin/day6-2.rs:135:6 [INFO] [stdout] | [INFO] [stdout] 135 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day6-2.rs:110:16 [INFO] [stdout] | [INFO] [stdout] 110 | if (nextCell == "#") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 110 - if (nextCell == "#") { [INFO] [stdout] 110 + if nextCell == "#" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day6-2.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 115 | if (direction.0 == 0 && direction.1 == -1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if (direction.0 == 0 && direction.1 == -1) { [INFO] [stdout] 115 + if direction.0 == 0 && direction.1 == -1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day6-2.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | } else if (direction.0 == 1 && direction.1 == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - } else if (direction.0 == 1 && direction.1 == 0) { [INFO] [stdout] 117 + } else if direction.0 == 1 && direction.1 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day6-2.rs:119:27 [INFO] [stdout] | [INFO] [stdout] 119 | } else if (direction.0 == 0 && direction.1 == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 119 - } else if (direction.0 == 0 && direction.1 == 1) { [INFO] [stdout] 119 + } else if direction.0 == 0 && direction.1 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day6-2.rs:121:27 [INFO] [stdout] | [INFO] [stdout] 121 | } else if (direction.0 == -1 && direction.1 == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 121 - } else if (direction.0 == -1 && direction.1 == 0) { [INFO] [stdout] 121 + } else if direction.0 == -1 && direction.1 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/bin/day6-2.rs:135:6 [INFO] [stdout] | [INFO] [stdout] 135 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day6-2.rs:110:16 [INFO] [stdout] | [INFO] [stdout] 110 | if (nextCell == "#") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 110 - if (nextCell == "#") { [INFO] [stdout] 110 + if nextCell == "#" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day6-2.rs:115:20 [INFO] [stdout] | [INFO] [stdout] 115 | if (direction.0 == 0 && direction.1 == -1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - if (direction.0 == 0 && direction.1 == -1) { [INFO] [stdout] 115 + if direction.0 == 0 && direction.1 == -1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day6-2.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | } else if (direction.0 == 1 && direction.1 == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - } else if (direction.0 == 1 && direction.1 == 0) { [INFO] [stdout] 117 + } else if direction.0 == 1 && direction.1 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day6-2.rs:119:27 [INFO] [stdout] | [INFO] [stdout] 119 | } else if (direction.0 == 0 && direction.1 == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 119 - } else if (direction.0 == 0 && direction.1 == 1) { [INFO] [stdout] 119 + } else if direction.0 == 0 && direction.1 == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/day6-2.rs:121:27 [INFO] [stdout] | [INFO] [stdout] 121 | } else if (direction.0 == -1 && direction.1 == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 121 - } else if (direction.0 == -1 && direction.1 == 0) { [INFO] [stdout] 121 + } else if direction.0 == -1 && direction.1 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/day6-2.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 54 | / loop { [INFO] [stdout] 55 | | // println!("current iteration: {currentIteration}"); [INFO] [stdout] 56 | | currentX += direction.0; [INFO] [stdout] 57 | | currentY += direction.1; [INFO] [stdout] ... | [INFO] [stdout] 132 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 133 | [INFO] [stdout] 134 | return false; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day6-2.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let mut loop_possibilities: i32 = 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: unused variable: `turn_spots` [INFO] [stdout] --> src/bin/day6-2.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let mut turn_spots: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_turn_spots` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_iteration` [INFO] [stdout] --> src/bin/day6-2.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let max_iteration = targetMap.len() * targetMap[0].len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lowestCount` [INFO] [stdout] --> src/bin/day6-2.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let lowestCount = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lowestCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `highestCount` [INFO] [stdout] --> src/bin/day6-2.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let highestCount = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_highestCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lastIterationWithNewSpot` [INFO] [stdout] --> src/bin/day6-2.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let lastIterationWithNewSpot = currentIteration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastIterationWithNewSpot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `countOfSamePositionLength` [INFO] [stdout] --> src/bin/day6-2.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let countOfSamePositionLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_countOfSamePositionLength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lastArrayLength` [INFO] [stdout] --> src/bin/day6-2.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let lastArrayLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastArrayLength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/day6-2.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 54 | / loop { [INFO] [stdout] 55 | | // println!("current iteration: {currentIteration}"); [INFO] [stdout] 56 | | currentX += direction.0; [INFO] [stdout] 57 | | currentY += direction.1; [INFO] [stdout] ... | [INFO] [stdout] 132 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 133 | [INFO] [stdout] 134 | return false; [INFO] [stdout] | ^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day6-2.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut turn_spots: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sampleResult` [INFO] [stdout] --> src/bin/day6-2.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let sampleResult = run(SAMPLE_FILE); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sampleResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_console` is never used [INFO] [stdout] --> src/bin/day6-2.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn clear_console() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `targetMap` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | fn is_stuck_in_loop(targetMap: &mut Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `target_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIteration` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut currentIteration = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentX` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | let mut currentX: i32 = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `current_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentY` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let mut currentY: i32 = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `current_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lowestCount` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let lowestCount = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `lowest_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `highestCount` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let highestCount = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `highest_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastIterationWithNewSpot` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let lastIterationWithNewSpot = currentIteration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_iteration_with_new_spot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `countOfSamePositionLength` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let countOfSamePositionLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `count_of_same_position_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastArrayLength` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let lastArrayLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_array_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCellY` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let nextCellY = currentY + direction.1; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_cell_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCellX` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | let nextCellX = currentX + direction.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_cell_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCell` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let nextCell = targetMap[nextCellY as usize][nextCellX as usize]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `next_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sampleResult` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let sampleResult = run(SAMPLE_FILE); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sample_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day6-2.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let mut loop_possibilities: i32 = 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: unused variable: `turn_spots` [INFO] [stdout] --> src/bin/day6-2.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let mut turn_spots: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_turn_spots` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_iteration` [INFO] [stdout] --> src/bin/day6-2.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let max_iteration = targetMap.len() * targetMap[0].len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lowestCount` [INFO] [stdout] --> src/bin/day6-2.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let lowestCount = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lowestCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `highestCount` [INFO] [stdout] --> src/bin/day6-2.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let highestCount = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_highestCount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lastIterationWithNewSpot` [INFO] [stdout] --> src/bin/day6-2.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let lastIterationWithNewSpot = currentIteration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastIterationWithNewSpot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `countOfSamePositionLength` [INFO] [stdout] --> src/bin/day6-2.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let countOfSamePositionLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_countOfSamePositionLength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lastArrayLength` [INFO] [stdout] --> src/bin/day6-2.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let lastArrayLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lastArrayLength` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_iteration` [INFO] [stdout] --> src/bin/day6.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let max_iteration = targetMap.len() * targetMap[0].len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_iteration` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `currentIteration` [INFO] [stdout] --> src/bin/day6.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let mut currentIteration = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_currentIteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day6.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut visited_positions: HashSet<[i32; 2]> = HashSet::new(); [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/bin/day6-2.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut turn_spots: Vec = Vec::new(); [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/bin/day6.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut currentIteration = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_console` is never used [INFO] [stdout] --> src/bin/day6.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn clear_console() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `targetMap` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | fn is_stuck_in_loop(targetMap: &mut Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `target_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIteration` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let mut currentIteration = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentX` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut currentX: i32 = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `current_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentY` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut currentY: i32 = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `current_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCellY` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let nextCellY = currentY + direction.1; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_cell_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCellX` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let nextCellX = currentX + direction.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_cell_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCell` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let nextCell = targetMap[nextCellY as usize][nextCellX as usize]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `next_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_iteration` [INFO] [stdout] --> src/bin/day6.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let max_iteration = targetMap.len() * targetMap[0].len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_iteration` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `currentIteration` [INFO] [stdout] --> src/bin/day6.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let mut currentIteration = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_currentIteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sampleResult` [INFO] [stdout] --> src/bin/day6-2.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let sampleResult = run(SAMPLE_FILE); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sampleResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_console` is never used [INFO] [stdout] --> src/bin/day6-2.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn clear_console() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `targetMap` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | fn is_stuck_in_loop(targetMap: &mut Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `target_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIteration` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut currentIteration = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentX` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | let mut currentX: i32 = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `current_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentY` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | let mut currentY: i32 = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `current_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lowestCount` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let lowestCount = 0; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `lowest_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `highestCount` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let highestCount = 0; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `highest_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastIterationWithNewSpot` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let lastIterationWithNewSpot = currentIteration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_iteration_with_new_spot` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `countOfSamePositionLength` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let countOfSamePositionLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `count_of_same_position_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastArrayLength` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let lastArrayLength = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_array_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCellY` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let nextCellY = currentY + direction.1; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_cell_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCellX` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | let nextCellX = currentX + direction.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_cell_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCell` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:98:17 [INFO] [stdout] | [INFO] [stdout] 98 | let nextCell = targetMap[nextCellY as usize][nextCellX as usize]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `next_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sampleResult` should have a snake case name [INFO] [stdout] --> src/bin/day6-2.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let sampleResult = run(SAMPLE_FILE); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sample_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day6.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut visited_positions: HashSet<[i32; 2]> = HashSet::new(); [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/bin/day6.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut currentIteration = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_console` is never used [INFO] [stdout] --> src/bin/day6.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn clear_console() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `targetMap` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | fn is_stuck_in_loop(targetMap: &mut Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `target_map` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentIteration` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | let mut currentIteration = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `current_iteration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentX` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut currentX: i32 = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `current_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentY` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut currentY: i32 = 0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `current_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCellY` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let nextCellY = currentY + direction.1; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_cell_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCellX` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let nextCellX = currentX + direction.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `next_cell_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nextCell` should have a snake case name [INFO] [stdout] --> src/bin/day6.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let nextCell = targetMap[nextCellY as usize][nextCellX as usize]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `next_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.20s [INFO] running `Command { std: "docker" "inspect" "cd5865b9c4ffe394c1db02de2e6cf4525036afbcab83285be976265afc570983", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd5865b9c4ffe394c1db02de2e6cf4525036afbcab83285be976265afc570983", kill_on_drop: false }` [INFO] [stdout] cd5865b9c4ffe394c1db02de2e6cf4525036afbcab83285be976265afc570983