[INFO] cloning repository https://github.com/ByJacob/advent-of-code-rust-2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ByJacob/advent-of-code-rust-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FByJacob%2Fadvent-of-code-rust-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FByJacob%2Fadvent-of-code-rust-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b551120d3d7478df30e1244166844b350acfda43 [INFO] checking ByJacob/advent-of-code-rust-2023/b551120d3d7478df30e1244166844b350acfda43 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FByJacob%2Fadvent-of-code-rust-2023" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ByJacob/advent-of-code-rust-2023 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/ByJacob/advent-of-code-rust-2023 [INFO] finished tweaking git repo https://github.com/ByJacob/advent-of-code-rust-2023 [INFO] tweaked toml for git repo https://github.com/ByJacob/advent-of-code-rust-2023 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ByJacob/advent-of-code-rust-2023 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mintex v0.1.2 [INFO] [stderr] Downloaded tinyjson v2.5.1 [INFO] [stderr] Downloaded wide v0.7.13 [INFO] [stderr] Downloaded dhat v0.3.2 [INFO] [stderr] Downloaded nalgebra v0.32.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f42b514f3fe99be8aa58c265cf6158e15623a7356c849d26da2ceeab873684a1 [INFO] running `Command { std: "docker" "start" "-a" "f42b514f3fe99be8aa58c265cf6158e15623a7356c849d26da2ceeab873684a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f42b514f3fe99be8aa58c265cf6158e15623a7356c849d26da2ceeab873684a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f42b514f3fe99be8aa58c265cf6158e15623a7356c849d26da2ceeab873684a1", kill_on_drop: false }` [INFO] [stdout] f42b514f3fe99be8aa58c265cf6158e15623a7356c849d26da2ceeab873684a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f75d1744cc094508f9be893759fbb3215833e438156e74e75d3b4e3ee25aa90f [INFO] running `Command { std: "docker" "start" "-a" "f75d1744cc094508f9be893759fbb3215833e438156e74e75d3b4e3ee25aa90f", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking bytemuck v1.14.0 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking tinyjson v2.5.1 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking wide v0.7.13 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking console v0.15.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking indicatif v0.17.7 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Compiling nalgebra-macros v0.2.1 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking nalgebra v0.32.3 [INFO] [stderr] Checking advent_of_code v0.10.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/readme_benchmarks.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | Parser(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 | Parser(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/readme_benchmarks.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 | IO(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/run_multi.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 52 | IO(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/readme_benchmarks.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | Parser(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 | Parser(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/readme_benchmarks.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 | IO(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/template/run_multi.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | IO(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 52 | IO(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::log` [INFO] [stdout] --> src/bin/20.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::log; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/bin/20.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unique_labels` [INFO] [stdout] --> src/bin/07.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let unique_labels: HashSet = self.cards.chars().collect(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unique_labels` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_joker` [INFO] [stdout] --> src/bin/07.rs:170:50 [INFO] [stdout] | [INFO] [stdout] 170 | fn determine_hand_type_with_joker(&mut self, is_joker: bool) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_joker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test123` [INFO] [stdout] --> src/bin/07.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let test123 = res.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test123` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SplitToVector` is never used [INFO] [stdout] --> src/bin/07.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait SplitToVector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/bin/21.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/21.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 318 | ... (curr_value + (diff.abs() as u128 * layer_to_finish)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 318 - (curr_value + (diff.abs() as u128 * layer_to_finish)); [INFO] [stdout] 318 + curr_value + (diff.abs() as u128 * layer_to_finish); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/bin/17.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/bin/17.rs:5:54 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::{BinaryHeap, HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/12.rs:192:26 [INFO] [stdout] | [INFO] [stdout] 192 | fn replace_char_at_index(mut input_str: String, index: usize, new_char: char) -> String { [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: `k` [INFO] [stdout] --> src/bin/03.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | .for_each(|(k, v)| sum += v.get(0).expect("Element1") * v.get(1).expect("Element2")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/10.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 137 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/12.rs:328:13 [INFO] [stdout] | [INFO] [stdout] 328 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_vector` [INFO] [stdout] --> src/bin/12.rs:335:17 [INFO] [stdout] | [INFO] [stdout] 335 | let mut current_vector: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_vector_len` [INFO] [stdout] --> src/bin/12.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | let mut current_vector_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_vector_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/bin/17.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/bin/17.rs:5:54 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::{BinaryHeap, HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/10.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | let mut possible_positions: Vec<(usize, usize)> = [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/12.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | let mut current_vector: 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/12.rs:336:13 [INFO] [stdout] | [INFO] [stdout] 336 | let mut current_vector_len = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_hashes` is never used [INFO] [stdout] --> src/bin/12.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn count_hashes(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_char_at_index` is never used [INFO] [stdout] --> src/bin/12.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn replace_char_at_index(mut input_str: String, index: usize, new_char: char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_positions` is never used [INFO] [stdout] --> src/bin/12.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn find_positions(input_string: &str, target_char: char) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/10.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | let mut file_content = String::from(input); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SpringPermutationCount` is never constructed [INFO] [stdout] --> src/bin/12.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | struct SpringPermutationCount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/10.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | let mut possible_positions: Vec<(usize, usize)> = [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/14.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | for i in 0..all_it { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/bin/02.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let id: i32 = id_str.parse().expect("Missing int"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/bin/02.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | let id: i32 = id_str.parse().expect("Missing int"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/bin/14.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | for j in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/14.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | for i in 0..start_repeat { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/bin/05.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | if let Some(value) = curr_value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/bin/05.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | if let Some(value) = curr_value { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/bin/05.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | .map(|(s1, s2)| String::from(s1)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/03.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | .for_each(|(k, v)| sum += v.get(0).expect("Element1") * v.get(1).expect("Element2")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/05.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut curr_map: &mut HashMap<(i64, i64), (i64, i64)> = [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: value assigned to `new_group_start` is never read [INFO] [stdout] --> src/bin/05.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let mut new_group_start = 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 `new_group_end` is never read [INFO] [stdout] --> src/bin/05.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let mut new_group_end = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/bin/05.rs:126:32 [INFO] [stdout] | [INFO] [stdout] 126 | .map(|(s1, s2)| String::from(s1)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/21.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/05.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | let mut curr_map: &mut HashMap<(i64, i64), (i64, i64)> = [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/21.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | for i in 0..target_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/bin/05.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | .map(|(s1, s2)| String::from(s1)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sum_all_positions_by_layer` is assigned to, but never used [INFO] [stdout] --> src/bin/21.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | let mut sum_all_positions_by_layer = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sum_all_positions_by_layer` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `all_full_layer_count` is assigned to, but never used [INFO] [stdout] --> src/bin/21.rs:291:21 [INFO] [stdout] | [INFO] [stdout] 291 | let mut all_full_layer_count = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_all_full_layer_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test123` [INFO] [stdout] --> src/bin/21.rs:364:17 [INFO] [stdout] | [INFO] [stdout] 364 | let test123 = position.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test123` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/bin/21.rs:369:10 [INFO] [stdout] | [INFO] [stdout] 369 | for (pos, (last_two_len, last_idx)) in &full_layers { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/05.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut curr_map: &mut HashMap<(i64, i64), (i64, i64)> = [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: value assigned to `new_group_start` is never read [INFO] [stdout] --> src/bin/05.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let mut new_group_start = 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 `new_group_end` is never read [INFO] [stdout] --> src/bin/05.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let mut new_group_end = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/bin/05.rs:126:32 [INFO] [stdout] | [INFO] [stdout] 126 | .map(|(s1, s2)| String::from(s1)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::log` [INFO] [stdout] --> src/bin/20.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::log; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::id` [INFO] [stdout] --> src/bin/20.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/05.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | let mut curr_map: &mut HashMap<(i64, i64), (i64, i64)> = [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/16.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `curr_len` [INFO] [stdout] --> src/bin/16.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | let curr_len = next_points2.len(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_curr_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_len` [INFO] [stdout] --> src/bin/16.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let after_len = next_points2.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/21.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut start_positions = find_chars_in_multiline_string(input, 'S').unwrap(); [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: `unique_labels` [INFO] [stdout] --> src/bin/07.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let unique_labels: HashSet = self.cards.chars().collect(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unique_labels` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_joker` [INFO] [stdout] --> src/bin/07.rs:170:50 [INFO] [stdout] | [INFO] [stdout] 170 | fn determine_hand_type_with_joker(&mut self, is_joker: bool) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_joker` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/21.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let mut all_positions: &mut Vec> = [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/21.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | let mut full_cells2 = parzyste * full_count2 + nieparzyste * full_count1; [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/16.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | let mut start_points = if i == 0 && j == 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: `test123` [INFO] [stdout] --> src/bin/07.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let test123 = res.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test123` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `row_mirror_id` is never read [INFO] [stdout] --> src/bin/13.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let mut row_mirror_id = 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: trait `SplitToVector` is never used [INFO] [stdout] --> src/bin/07.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait SplitToVector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `row_mirror_id` is never read [INFO] [stdout] --> src/bin/13.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | let mut row_mirror_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_mirror` [INFO] [stdout] --> src/bin/13.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | let mut is_mirror = true; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_mirror` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/13.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | let mut is_mirror = true; [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: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/22.rs:121:28 [INFO] [stdout] | [INFO] [stdout] 121 | .filter(|(&k, &ref v)| v.contains(brick_name)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/bin/18.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let color = parts [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card_id` [INFO] [stdout] --> src/bin/04.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let card_id: i32 = card_id.trim().parse().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_card_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/04.rs:33:46 [INFO] [stdout] | [INFO] [stdout] 33 | (0..common_elements.len()).for_each(|i| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | for (px, py, nx, ny) in &curr_vectors { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:186:22 [INFO] [stdout] | [INFO] [stdout] 186 | for (px, py, nx, ny) in &curr_vectors { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/bin/18.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 112 | .map(|(px, py, nx, ny)| px.min(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ny` [INFO] [stdout] --> src/bin/18.rs:112:28 [INFO] [stdout] | [INFO] [stdout] 112 | .map(|(px, py, nx, ny)| px.min(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | .map(|(px, py, nx, ny)| py.min(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 118 | .map(|(px, py, nx, ny)| py.min(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/bin/18.rs:125:20 [INFO] [stdout] | [INFO] [stdout] 125 | .map(|(px, py, nx, ny)| px.max(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ny` [INFO] [stdout] --> src/bin/18.rs:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | .map(|(px, py, nx, ny)| px.max(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:131:16 [INFO] [stdout] | [INFO] [stdout] 131 | .map(|(px, py, nx, ny)| py.max(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:131:24 [INFO] [stdout] | [INFO] [stdout] 131 | .map(|(px, py, nx, ny)| py.max(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l1` [INFO] [stdout] --> src/bin/18.rs:226:37 [INFO] [stdout] | [INFO] [stdout] 226 | .flat_map(|(l0, l1, l2, l3)| [*l0, *l2]) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l3` [INFO] [stdout] --> src/bin/18.rs:226:45 [INFO] [stdout] | [INFO] [stdout] 226 | .flat_map(|(l0, l1, l2, l3)| [*l0, *l2]) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/bin/21.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/21.rs:318:29 [INFO] [stdout] | [INFO] [stdout] 318 | ... (curr_value + (diff.abs() as u128 * layer_to_finish)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 318 - (curr_value + (diff.abs() as u128 * layer_to_finish)); [INFO] [stdout] 318 + curr_value + (diff.abs() as u128 * layer_to_finish); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/10.rs:137:10 [INFO] [stdout] | [INFO] [stdout] 137 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/22.rs:242:24 [INFO] [stdout] | [INFO] [stdout] 242 | .filter(|(&k, &ref v)| v.contains(&brick.name)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/18.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut new_point = match direct { [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/10.rs:163:17 [INFO] [stdout] | [INFO] [stdout] 163 | let mut possible_positions: Vec<(usize, usize)> = [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: `direct` [INFO] [stdout] --> src/bin/18.rs:272:13 [INFO] [stdout] | [INFO] [stdout] 272 | let direct = parts.get(0).unwrap().clone(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_direct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/bin/18.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | let distance = parts.get(1).unwrap().clone().parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_col` [INFO] [stdout] --> src/bin/18.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | let min_col = vectors [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_col` [INFO] [stdout] --> src/bin/18.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | let max_col = vectors [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:371:14 [INFO] [stdout] | [INFO] [stdout] 371 | for (px, py, nx, ny) in &curr_vectors { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:371:22 [INFO] [stdout] | [INFO] [stdout] 371 | for (px, py, nx, ny) in &curr_vectors { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/bin/18.rs:312:20 [INFO] [stdout] | [INFO] [stdout] 312 | .map(|(px, py, nx, ny)| px.min(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ny` [INFO] [stdout] --> src/bin/18.rs:312:28 [INFO] [stdout] | [INFO] [stdout] 312 | .map(|(px, py, nx, ny)| px.min(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:318:16 [INFO] [stdout] | [INFO] [stdout] 318 | .map(|(px, py, nx, ny)| py.min(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:318:24 [INFO] [stdout] | [INFO] [stdout] 318 | .map(|(px, py, nx, ny)| py.min(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/bin/18.rs:325:20 [INFO] [stdout] | [INFO] [stdout] 325 | .map(|(px, py, nx, ny)| px.max(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ny` [INFO] [stdout] --> src/bin/18.rs:325:28 [INFO] [stdout] | [INFO] [stdout] 325 | .map(|(px, py, nx, ny)| px.max(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:331:16 [INFO] [stdout] | [INFO] [stdout] 331 | .map(|(px, py, nx, ny)| py.max(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:331:24 [INFO] [stdout] | [INFO] [stdout] 331 | .map(|(px, py, nx, ny)| py.max(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l1` [INFO] [stdout] --> src/bin/18.rs:393:37 [INFO] [stdout] | [INFO] [stdout] 393 | .flat_map(|(l0, l1, l2, l3)| [*l0, *l2]) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l3` [INFO] [stdout] --> src/bin/18.rs:393:45 [INFO] [stdout] | [INFO] [stdout] 393 | .flat_map(|(l0, l1, l2, l3)| [*l0, *l2]) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card_id` [INFO] [stdout] --> src/bin/04.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let card_id: i32 = card_id.trim().parse().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_card_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/04.rs:33:46 [INFO] [stdout] | [INFO] [stdout] 33 | (0..common_elements.len()).for_each(|i| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/10.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | let mut file_content = String::from(input); [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/10.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | let mut possible_positions: Vec<(usize, usize)> = [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/bin/22.rs:121:28 [INFO] [stdout] | [INFO] [stdout] 121 | .filter(|(&k, &ref v)| v.contains(brick_name)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/21.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/18.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | let mut new_point = match direct { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/21.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | for i in 0..target_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_point` is never used [INFO] [stdout] --> src/bin/18.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn add_point(grid: &mut Vec>, row: &mut i128, col: &mut i128, value: T, default_value: T) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_neighbors` is never used [INFO] [stdout] --> src/bin/18.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_neighbors(grid: &Vec>, pos: &(usize, usize)) -> Vec<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/bin/18.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vector` is never constructed [INFO] [stdout] --> src/bin/18.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct Vector { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/bin/18.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let color = parts [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:82:43 [INFO] [stdout] | [INFO] [stdout] 82 | let direct = parts.get(0).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:83:45 [INFO] [stdout] | [INFO] [stdout] 83 | let distance = parts.get(1).unwrap().clone().parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | .unwrap() [INFO] [stdout] | ______________________^ [INFO] [stdout] 87 | | .clone() [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:272:43 [INFO] [stdout] | [INFO] [stdout] 272 | let direct = parts.get(0).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:273:45 [INFO] [stdout] | [INFO] [stdout] 273 | let distance = parts.get(1).unwrap().clone().parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:276:22 [INFO] [stdout] | [INFO] [stdout] 276 | .unwrap() [INFO] [stdout] | ______________________^ [INFO] [stdout] 277 | | .clone() [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `sum_all_positions_by_layer` is assigned to, but never used [INFO] [stdout] --> src/bin/21.rs:265:21 [INFO] [stdout] | [INFO] [stdout] 265 | let mut sum_all_positions_by_layer = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_sum_all_positions_by_layer` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `all_full_layer_count` is assigned to, but never used [INFO] [stdout] --> src/bin/21.rs:291:21 [INFO] [stdout] | [INFO] [stdout] 291 | let mut all_full_layer_count = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_all_full_layer_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test123` [INFO] [stdout] --> src/bin/21.rs:364:17 [INFO] [stdout] | [INFO] [stdout] 364 | let test123 = position.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_test123` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/bin/21.rs:369:10 [INFO] [stdout] | [INFO] [stdout] 369 | for (pos, (last_two_len, last_idx)) in &full_layers { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | for (px, py, nx, ny) in &curr_vectors { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:186:22 [INFO] [stdout] | [INFO] [stdout] 186 | for (px, py, nx, ny) in &curr_vectors { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/bin/18.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 112 | .map(|(px, py, nx, ny)| px.min(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ny` [INFO] [stdout] --> src/bin/18.rs:112:28 [INFO] [stdout] | [INFO] [stdout] 112 | .map(|(px, py, nx, ny)| px.min(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | .map(|(px, py, nx, ny)| py.min(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 118 | .map(|(px, py, nx, ny)| py.min(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/bin/18.rs:125:20 [INFO] [stdout] | [INFO] [stdout] 125 | .map(|(px, py, nx, ny)| px.max(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ny` [INFO] [stdout] --> src/bin/18.rs:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | .map(|(px, py, nx, ny)| px.max(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:131:16 [INFO] [stdout] | [INFO] [stdout] 131 | .map(|(px, py, nx, ny)| py.max(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:131:24 [INFO] [stdout] | [INFO] [stdout] 131 | .map(|(px, py, nx, ny)| py.max(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l1` [INFO] [stdout] --> src/bin/18.rs:226:37 [INFO] [stdout] | [INFO] [stdout] 226 | .flat_map(|(l0, l1, l2, l3)| [*l0, *l2]) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l3` [INFO] [stdout] --> src/bin/18.rs:226:45 [INFO] [stdout] | [INFO] [stdout] 226 | .flat_map(|(l0, l1, l2, l3)| [*l0, *l2]) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/18.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut new_point = match direct { [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: `k` [INFO] [stdout] --> src/bin/22.rs:242:24 [INFO] [stdout] | [INFO] [stdout] 242 | .filter(|(&k, &ref v)| v.contains(&brick.name)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direct` [INFO] [stdout] --> src/bin/18.rs:272:13 [INFO] [stdout] | [INFO] [stdout] 272 | let direct = parts.get(0).unwrap().clone(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_direct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distance` [INFO] [stdout] --> src/bin/18.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | let distance = parts.get(1).unwrap().clone().parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_col` [INFO] [stdout] --> src/bin/18.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | let min_col = vectors [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_col` [INFO] [stdout] --> src/bin/18.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | let max_col = vectors [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:371:14 [INFO] [stdout] | [INFO] [stdout] 371 | for (px, py, nx, ny) in &curr_vectors { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:371:22 [INFO] [stdout] | [INFO] [stdout] 371 | for (px, py, nx, ny) in &curr_vectors { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/bin/18.rs:312:20 [INFO] [stdout] | [INFO] [stdout] 312 | .map(|(px, py, nx, ny)| px.min(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ny` [INFO] [stdout] --> src/bin/18.rs:312:28 [INFO] [stdout] | [INFO] [stdout] 312 | .map(|(px, py, nx, ny)| px.min(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:318:16 [INFO] [stdout] | [INFO] [stdout] 318 | .map(|(px, py, nx, ny)| py.min(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:318:24 [INFO] [stdout] | [INFO] [stdout] 318 | .map(|(px, py, nx, ny)| py.min(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `py` [INFO] [stdout] --> src/bin/18.rs:325:20 [INFO] [stdout] | [INFO] [stdout] 325 | .map(|(px, py, nx, ny)| px.max(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_py` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ny` [INFO] [stdout] --> src/bin/18.rs:325:28 [INFO] [stdout] | [INFO] [stdout] 325 | .map(|(px, py, nx, ny)| px.max(nx)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ny` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `px` [INFO] [stdout] --> src/bin/18.rs:331:16 [INFO] [stdout] | [INFO] [stdout] 331 | .map(|(px, py, nx, ny)| py.max(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_px` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nx` [INFO] [stdout] --> src/bin/18.rs:331:24 [INFO] [stdout] | [INFO] [stdout] 331 | .map(|(px, py, nx, ny)| py.max(ny)) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_nx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l1` [INFO] [stdout] --> src/bin/18.rs:393:37 [INFO] [stdout] | [INFO] [stdout] 393 | .flat_map(|(l0, l1, l2, l3)| [*l0, *l2]) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l3` [INFO] [stdout] --> src/bin/18.rs:393:45 [INFO] [stdout] | [INFO] [stdout] 393 | .flat_map(|(l0, l1, l2, l3)| [*l0, *l2]) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_l3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/18.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | let mut new_point = match direct { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_point` is never used [INFO] [stdout] --> src/bin/18.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn add_point(grid: &mut Vec>, row: &mut i128, col: &mut i128, value: T, default_value: T) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_neighbors` is never used [INFO] [stdout] --> src/bin/18.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_neighbors(grid: &Vec>, pos: &(usize, usize)) -> Vec<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/bin/18.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vector` is never constructed [INFO] [stdout] --> src/bin/18.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct Vector { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:82:43 [INFO] [stdout] | [INFO] [stdout] 82 | let direct = parts.get(0).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:83:45 [INFO] [stdout] | [INFO] [stdout] 83 | let distance = parts.get(1).unwrap().clone().parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:86:22 [INFO] [stdout] | [INFO] [stdout] 86 | .unwrap() [INFO] [stdout] | ______________________^ [INFO] [stdout] 87 | | .clone() [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:272:43 [INFO] [stdout] | [INFO] [stdout] 272 | let direct = parts.get(0).unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:273:45 [INFO] [stdout] | [INFO] [stdout] 273 | let distance = parts.get(1).unwrap().clone().parse::().unwrap(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/bin/18.rs:276:22 [INFO] [stdout] | [INFO] [stdout] 276 | .unwrap() [INFO] [stdout] | ______________________^ [INFO] [stdout] 277 | | .clone() [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/21.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut start_positions = find_chars_in_multiline_string(input, 'S').unwrap(); [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/21.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | let mut all_positions: &mut Vec> = [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/21.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | let mut full_cells2 = parzyste * full_count2 + nieparzyste * full_count1; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `permutations_list` is never read [INFO] [stdout] --> src/bin/19.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut permutations_list: Vec<( [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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SplitToVector` is never used [INFO] [stdout] --> src/bin/06.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait SplitToVector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/11.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result2` [INFO] [stdout] --> src/bin/11.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let result2 = (end.0 - start.0).abs() + (end.1 - start.1).abs(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/19.rs:316:41 [INFO] [stdout] | [INFO] [stdout] 316 | permutations_list.retain(|(key, v)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/14.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | for i in 0..all_it { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/bin/14.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | for j in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/14.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | for i in 0..start_repeat { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_idx` [INFO] [stdout] --> src/bin/11.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result2` [INFO] [stdout] --> src/bin/11.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | let result2 = (end.0 - start.0).abs() + (end.1 - start.1).abs(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result2` [INFO] [stdout] --> src/bin/11.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | let result2 = (end.0 - start.0).abs() + (end.1 - start.1).abs(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result2` [INFO] [stdout] --> src/bin/11.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | let result2 = (end.0 - start.0).abs() + (end.1 - start.1).abs(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/19.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut part_value = match condition.left.as_str() { [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: function `calc_new_permutation` is never used [INFO] [stdout] --> src/bin/19.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn calc_new_permutation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Directions` is never constructed [INFO] [stdout] --> src/bin/11.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Directions { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `successors` is never used [INFO] [stdout] --> src/bin/11.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl Pos { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 96 | fn successors(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Directions` is never constructed [INFO] [stdout] --> src/bin/11.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Directions { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `successors` is never used [INFO] [stdout] --> src/bin/11.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl Pos { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 96 | fn successors(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `row_mirror_id` is never read [INFO] [stdout] --> src/bin/13.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | let mut row_mirror_id = 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: unused variable: `line_idx` [INFO] [stdout] --> src/bin/16.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | for (line_idx, line) in grid.lines().enumerate() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `permutations_list` is never read [INFO] [stdout] --> src/bin/19.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut permutations_list: Vec<( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/bin/19.rs:316:41 [INFO] [stdout] | [INFO] [stdout] 316 | permutations_list.retain(|(key, v)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `row_mirror_id` is never read [INFO] [stdout] --> src/bin/13.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | let mut row_mirror_id = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_mirror` [INFO] [stdout] --> src/bin/13.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | let mut is_mirror = true; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_mirror` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/19.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 195 | let mut part_value = match condition.left.as_str() { [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: function `calc_new_permutation` is never used [INFO] [stdout] --> src/bin/19.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn calc_new_permutation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `curr_len` [INFO] [stdout] --> src/bin/16.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | let curr_len = next_points2.len(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_curr_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_len` [INFO] [stdout] --> src/bin/16.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let after_len = next_points2.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SplitToVector` is never used [INFO] [stdout] --> src/bin/06.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait SplitToVector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/13.rs:94:21 [INFO] [stdout] | [INFO] [stdout] 94 | let mut is_mirror = true; [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/16.rs:362:17 [INFO] [stdout] | [INFO] [stdout] 362 | let mut start_points = if i == 0 && j == 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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/12.rs:192:26 [INFO] [stdout] | [INFO] [stdout] 192 | fn replace_char_at_index(mut input_str: String, index: usize, new_char: char) -> String { [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: `i` [INFO] [stdout] --> src/bin/12.rs:328:13 [INFO] [stdout] | [INFO] [stdout] 328 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_vector` [INFO] [stdout] --> src/bin/12.rs:335:17 [INFO] [stdout] | [INFO] [stdout] 335 | let mut current_vector: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_vector_len` [INFO] [stdout] --> src/bin/12.rs:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | let mut current_vector_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_vector_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/12.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | let mut current_vector: 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/12.rs:336:13 [INFO] [stdout] | [INFO] [stdout] 336 | let mut current_vector_len = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_hashes` is never used [INFO] [stdout] --> src/bin/12.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn count_hashes(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_char_at_index` is never used [INFO] [stdout] --> src/bin/12.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn replace_char_at_index(mut input_str: String, index: usize, new_char: char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_positions` is never used [INFO] [stdout] --> src/bin/12.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn find_positions(input_string: &str, target_char: char) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SpringPermutationCount` is never constructed [INFO] [stdout] --> src/bin/12.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | struct SpringPermutationCount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.62s [INFO] running `Command { std: "docker" "inspect" "f75d1744cc094508f9be893759fbb3215833e438156e74e75d3b4e3ee25aa90f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f75d1744cc094508f9be893759fbb3215833e438156e74e75d3b4e3ee25aa90f", kill_on_drop: false }` [INFO] [stdout] f75d1744cc094508f9be893759fbb3215833e438156e74e75d3b4e3ee25aa90f