[INFO] cloning repository https://github.com/MMMaellon/AdventOfCode2023_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MMMaellon/AdventOfCode2023_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMMMaellon%2FAdventOfCode2023_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMMMaellon%2FAdventOfCode2023_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eae75b02bebb5af0eea760d663a768b566c019ea [INFO] checking MMMaellon/AdventOfCode2023_Rust against master#561b5dea1e7e5c21f0fb550ca579229ceb878297 for pr-124661 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMMMaellon%2FAdventOfCode2023_Rust" "/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/MMMaellon/AdventOfCode2023_Rust on toolchain 561b5dea1e7e5c21f0fb550ca579229ceb878297 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+561b5dea1e7e5c21f0fb550ca579229ceb878297" "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/MMMaellon/AdventOfCode2023_Rust [INFO] finished tweaking git repo https://github.com/MMMaellon/AdventOfCode2023_Rust [INFO] tweaked toml for git repo https://github.com/MMMaellon/AdventOfCode2023_Rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MMMaellon/AdventOfCode2023_Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+561b5dea1e7e5c21f0fb550ca579229ceb878297" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+561b5dea1e7e5c21f0fb550ca579229ceb878297" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b91a7a3d980de0cdeb14cbda8ec3b504afaa052721d67f974d1ad6cfcda131b [INFO] running `Command { std: "docker" "start" "-a" "7b91a7a3d980de0cdeb14cbda8ec3b504afaa052721d67f974d1ad6cfcda131b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b91a7a3d980de0cdeb14cbda8ec3b504afaa052721d67f974d1ad6cfcda131b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b91a7a3d980de0cdeb14cbda8ec3b504afaa052721d67f974d1ad6cfcda131b", kill_on_drop: false }` [INFO] [stdout] 7b91a7a3d980de0cdeb14cbda8ec3b504afaa052721d67f974d1ad6cfcda131b [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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+561b5dea1e7e5c21f0fb550ca579229ceb878297" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba8da0a4a4631705e78105a9d0c3b0c4b039576f70ad50548c37ed9fc80837e2 [INFO] running `Command { std: "docker" "start" "-a" "ba8da0a4a4631705e78105a9d0c3b0c4b039576f70ad50548c37ed9fc80837e2", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking advent_of_code v0.9.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `simulate_delete` is never used [INFO] [stdout] --> src/bin/22.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn simulate_delete( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_memo` is never used [INFO] [stdout] --> src/bin/22.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn print_memo(fallen: &Vec, memo: &Vec>>>, index: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::RangeInclusive` [INFO] [stdout] --> src/bin/18.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | ops::RangeInclusive, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/24.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | let mut lower: i128 = -10000; [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/24.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | let mut upper: i128 = 10000; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/bin/14.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | let mut i : usize = 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: `index` [INFO] [stdout] --> src/bin/14.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 295 | for index in 0..1000000000 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:267:21 [INFO] [stdout] | [INFO] [stdout] 267 | Rule::X => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] = note: `#[warn(pointer_structural_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:271:21 [INFO] [stdout] | [INFO] [stdout] 271 | Rule::M => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:275:21 [INFO] [stdout] | [INFO] [stdout] 275 | Rule::A => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:279:21 [INFO] [stdout] | [INFO] [stdout] 279 | Rule::S => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | Rule::X => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:335:21 [INFO] [stdout] | [INFO] [stdout] 335 | Rule::M => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:339:21 [INFO] [stdout] | [INFO] [stdout] 339 | Rule::A => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:343:21 [INFO] [stdout] | [INFO] [stdout] 343 | Rule::S => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/24.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | let mut x_den = find_commmon_denominator(&x_matches); [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/24.rs:339:9 [INFO] [stdout] | [INFO] [stdout] 339 | let mut y_den = find_commmon_denominator(&y_matches); [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/24.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | let mut z_den = find_commmon_denominator(&z_matches); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `xy`, `xyz`, and `calc_xyz_intersect_time` are never used [INFO] [stdout] --> src/bin/24.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Hail { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 16 | fn xy(&self) -> (f64, f64) { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn xyz(&self) -> (f64, f64, f64) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn calc_xyz_intersect_time(self, other: &Hail) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:441:17 [INFO] [stdout] | [INFO] [stdout] 441 | Rule::X => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:444:17 [INFO] [stdout] | [INFO] [stdout] 444 | Rule::M => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:447:17 [INFO] [stdout] | [INFO] [stdout] 447 | Rule::A => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | Rule::S => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/13.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `evaluate_part` is never used [INFO] [stdout] --> src/bin/19.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | fn evaluate_part( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_slices` is never used [INFO] [stdout] --> src/bin/19.rs:423:4 [INFO] [stdout] | [INFO] [stdout] 423 | fn find_slices(workflows: &Vec) -> (Vec, Vec, Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec_deque` [INFO] [stdout] --> src/bin/20.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{vec_deque, HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `negative_x` [INFO] [stdout] --> src/bin/18.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 90 | let (negative_x, positive_x, negative_y, positive_y) = get_bounding_box(&steps); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_negative_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `positive_x` [INFO] [stdout] --> src/bin/18.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | let (negative_x, positive_x, negative_y, positive_y) = get_bounding_box(&steps); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_positive_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `positive_y` [INFO] [stdout] --> src/bin/18.rs:90:46 [INFO] [stdout] | [INFO] [stdout] 90 | let (negative_x, positive_x, negative_y, positive_y) = get_bounding_box(&steps); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_positive_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_perimeter` is never used [INFO] [stdout] --> src/bin/18.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn calc_perimeter(steps: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender` [INFO] [stdout] --> src/bin/20.rs:145:45 [INFO] [stdout] | [INFO] [stdout] 145 | fn receive_pulse(&mut self, high: bool, sender: usize) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/bin/20.rs:153:29 [INFO] [stdout] | [INFO] [stdout] 153 | fn add_input(&mut self, other: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high` [INFO] [stdout] --> src/bin/20.rs:183:33 [INFO] [stdout] | [INFO] [stdout] 183 | fn receive_pulse(&mut self, high: bool, sender: usize) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_high` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender` [INFO] [stdout] --> src/bin/20.rs:183:45 [INFO] [stdout] | [INFO] [stdout] 183 | fn receive_pulse(&mut self, high: bool, sender: usize) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/bin/20.rs:187:30 [INFO] [stdout] | [INFO] [stdout] 187 | fn add_output(&mut self, other: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/bin/20.rs:191:29 [INFO] [stdout] | [INFO] [stdout] 191 | fn add_input(&mut self, other: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conjunction` [INFO] [stdout] --> src/bin/20.rs:255:21 [INFO] [stdout] | [INFO] [stdout] 255 | if let Some(conjunction) = module.as_any().downcast_mut::() { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conjunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_possible_centers` is never used [INFO] [stdout] --> src/bin/13.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn generate_possible_centers(input: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `low_pulses` is assigned to, but never used [INFO] [stdout] --> src/bin/20.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | let mut low_pulses : usize = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_low_pulses` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/24.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | let mut lower: i128 = -10000; [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 `high_pulses` is assigned to, but never used [INFO] [stdout] --> src/bin/20.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | let mut high_pulses : usize = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_high_pulses` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_smudge` is never used [INFO] [stdout] --> src/bin/13.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn fix_smudge(feature_set: &mut Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/24.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | let mut upper: i128 = 10000; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/20.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct FlipFlop { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 16 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/20.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | struct Conjunction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 67 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/20.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 126 | struct Broadcast { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 127 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/20.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 164 | struct Sink { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 165 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/24.rs:338:9 [INFO] [stdout] | [INFO] [stdout] 338 | let mut x_den = find_commmon_denominator(&x_matches); [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/24.rs:339:9 [INFO] [stdout] | [INFO] [stdout] 339 | let mut y_den = find_commmon_denominator(&y_matches); [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/24.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | let mut z_den = find_commmon_denominator(&z_matches); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/bin/24.rs:373:13 [INFO] [stdout] | [INFO] [stdout] 373 | let a = Hail { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/24.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | let b = Hail { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/bin/24.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | let result = part_one(&advent_of_code::template::read_file("examples", DAY)); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `xy`, `xyz`, and `calc_xyz_intersect_time` are never used [INFO] [stdout] --> src/bin/24.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Hail { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 16 | fn xy(&self) -> (f64, f64) { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn xyz(&self) -> (f64, f64, f64) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn calc_xyz_intersect_time(self, other: &Hail) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_highlighted` is never used [INFO] [stdout] --> src/bin/10.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn print_highlighted(tiles: &Vec>, highlighted: &Vec<(usize, usize)>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:267:21 [INFO] [stdout] | [INFO] [stdout] 267 | Rule::X => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] = note: `#[warn(pointer_structural_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:271:21 [INFO] [stdout] | [INFO] [stdout] 271 | Rule::M => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:275:21 [INFO] [stdout] | [INFO] [stdout] 275 | Rule::A => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:279:21 [INFO] [stdout] | [INFO] [stdout] 279 | Rule::S => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:331:21 [INFO] [stdout] | [INFO] [stdout] 331 | Rule::X => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:335:21 [INFO] [stdout] | [INFO] [stdout] 335 | Rule::M => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:339:21 [INFO] [stdout] | [INFO] [stdout] 339 | Rule::A => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:343:21 [INFO] [stdout] | [INFO] [stdout] 343 | Rule::S => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:441:17 [INFO] [stdout] | [INFO] [stdout] 441 | Rule::X => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:444:17 [INFO] [stdout] | [INFO] [stdout] 444 | Rule::M => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:447:17 [INFO] [stdout] | [INFO] [stdout] 447 | Rule::A => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointers and raw pointers not derived from integers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details. [INFO] [stdout] --> src/bin/19.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | Rule::S => { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #120362 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `evaluate_part` is never used [INFO] [stdout] --> src/bin/19.rs:208:4 [INFO] [stdout] | [INFO] [stdout] 208 | fn evaluate_part( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_slices` is never used [INFO] [stdout] --> src/bin/19.rs:423:4 [INFO] [stdout] | [INFO] [stdout] 423 | fn find_slices(workflows: &Vec) -> (Vec, Vec, Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `best` is never read [INFO] [stdout] --> src/bin/25.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let mut best = HashSet::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/25.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn part_two(input: &str) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_edges` is never used [INFO] [stdout] --> src/bin/25.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn count_edges(graph: &Graph, split: &HashSet) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_split` is never used [INFO] [stdout] --> src/bin/25.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn find_split( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/11.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | for (i, column) in input.into_iter().enumerate() { [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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_delete` is never used [INFO] [stdout] --> src/bin/22.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn simulate_delete( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_memo` is never used [INFO] [stdout] --> src/bin/22.rs:227:4 [INFO] [stdout] | [INFO] [stdout] 227 | fn print_memo(fallen: &Vec, memo: &Vec>>>, index: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_row` is never used [INFO] [stdout] --> src/bin/11.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn print_row(row: &Vec){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::RangeInclusive` [INFO] [stdout] --> src/bin/18.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | ops::RangeInclusive, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/bin/23.rs:504:13 [INFO] [stdout] | [INFO] [stdout] 504 | let mut memo = vec![0; graph.len()]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `longest_paths` [INFO] [stdout] --> src/bin/23.rs:506:13 [INFO] [stdout] | [INFO] [stdout] 506 | let mut longest_paths: Vec> = vec![None; graph.len()]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_longest_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/23.rs:504:9 [INFO] [stdout] | [INFO] [stdout] 504 | let mut memo = vec![0; graph.len()]; [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/23.rs:506:9 [INFO] [stdout] | [INFO] [stdout] 506 | let mut longest_paths: Vec> = vec![None; graph.len()]; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_graph_paths` is never used [INFO] [stdout] --> src/bin/23.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn longest_graph_paths( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/bin/23.rs:212:6 [INFO] [stdout] | [INFO] [stdout] 212 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_path_dry` is never used [INFO] [stdout] --> src/bin/23.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn longest_path_dry( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `negative_x` [INFO] [stdout] --> src/bin/18.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 90 | let (negative_x, positive_x, negative_y, positive_y) = get_bounding_box(&steps); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_negative_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `positive_x` [INFO] [stdout] --> src/bin/18.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | let (negative_x, positive_x, negative_y, positive_y) = get_bounding_box(&steps); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_positive_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `positive_y` [INFO] [stdout] --> src/bin/18.rs:90:46 [INFO] [stdout] | [INFO] [stdout] 90 | let (negative_x, positive_x, negative_y, positive_y) = get_bounding_box(&steps); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_positive_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_highlighted` is never used [INFO] [stdout] --> src/bin/10.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn print_highlighted(tiles: &Vec>, highlighted: &Vec<(usize, usize)>){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_perimeter` is never used [INFO] [stdout] --> src/bin/18.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn calc_perimeter(steps: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec_deque` [INFO] [stdout] --> src/bin/20.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{vec_deque, HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_energized` is never used [INFO] [stdout] --> src/bin/16.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn print_energized(width: usize, height: usize, energized: &HashSet<(usize, usize)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_energized` is never used [INFO] [stdout] --> src/bin/16.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn print_energized(width: usize, height: usize, energized: &HashSet<(usize, usize)>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/13.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row_len` [INFO] [stdout] --> src/bin/21.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | let row_len = garden[0].len(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_row_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col_len` [INFO] [stdout] --> src/bin/21.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | let col_len = garden.len(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_col_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/bin/21.rs:280:30 [INFO] [stdout] | [INFO] [stdout] 280 | for (j, c) in row.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/21.rs:280:33 [INFO] [stdout] | [INFO] [stdout] 280 | for (j, c) in row.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender` [INFO] [stdout] --> src/bin/20.rs:145:45 [INFO] [stdout] | [INFO] [stdout] 145 | fn receive_pulse(&mut self, high: bool, sender: usize) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/bin/20.rs:153:29 [INFO] [stdout] | [INFO] [stdout] 153 | fn add_input(&mut self, other: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `high` [INFO] [stdout] --> src/bin/20.rs:183:33 [INFO] [stdout] | [INFO] [stdout] 183 | fn receive_pulse(&mut self, high: bool, sender: usize) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_high` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender` [INFO] [stdout] --> src/bin/20.rs:183:45 [INFO] [stdout] | [INFO] [stdout] 183 | fn receive_pulse(&mut self, high: bool, sender: usize) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/bin/20.rs:187:30 [INFO] [stdout] | [INFO] [stdout] 187 | fn add_output(&mut self, other: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/bin/20.rs:191:29 [INFO] [stdout] | [INFO] [stdout] 191 | fn add_input(&mut self, other: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/17.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conjunction` [INFO] [stdout] --> src/bin/20.rs:255:21 [INFO] [stdout] | [INFO] [stdout] 255 | if let Some(conjunction) = module.as_any().downcast_mut::() { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conjunction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/bin/14.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | let mut i : usize = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `low_pulses` is assigned to, but never used [INFO] [stdout] --> src/bin/20.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | let mut low_pulses : usize = 0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_low_pulses` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `high_pulses` is assigned to, but never used [INFO] [stdout] --> src/bin/20.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | let mut high_pulses : usize = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_high_pulses` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/20.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct FlipFlop { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 16 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/20.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | struct Conjunction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 67 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/20.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 126 | struct Broadcast { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 127 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/20.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 164 | struct Sink { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 165 | id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/17.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_possible_centers` is never used [INFO] [stdout] --> src/bin/13.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn generate_possible_centers(input: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_smudge` is never used [INFO] [stdout] --> src/bin/13.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn fix_smudge(feature_set: &mut Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/bin/14.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 295 | for index in 0..1000000000 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_step_infinite` is never used [INFO] [stdout] --> src/bin/21.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn take_step_infinite( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepResult` is never constructed [INFO] [stdout] --> src/bin/21.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | struct StepResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/21.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 107 | impl StepResult { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 108 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_step_tiled` is never used [INFO] [stdout] --> src/bin/21.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn take_step_tiled( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_garden_tiles` is never used [INFO] [stdout] --> src/bin/21.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn process_garden_tiles( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pretty_print_tiles` is never used [INFO] [stdout] --> src/bin/21.rs:245:4 [INFO] [stdout] | [INFO] [stdout] 245 | fn pretty_print_tiles( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/bin/21.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 300 | impl StepRecord { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 366 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `even_odd_step` is never used [INFO] [stdout] --> src/bin/21.rs:504:4 [INFO] [stdout] | [INFO] [stdout] 504 | fn even_odd_step( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `memo` [INFO] [stdout] --> src/bin/23.rs:504:13 [INFO] [stdout] | [INFO] [stdout] 504 | let mut memo = vec![0; graph.len()]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `longest_paths` [INFO] [stdout] --> src/bin/23.rs:506:13 [INFO] [stdout] | [INFO] [stdout] 506 | let mut longest_paths: Vec> = vec![None; graph.len()]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_longest_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_max` is never used [INFO] [stdout] --> src/bin/21.rs:818:4 [INFO] [stdout] | [INFO] [stdout] 818 | fn find_max(distances: &Vec>) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/23.rs:504:9 [INFO] [stdout] | [INFO] [stdout] 504 | let mut memo = vec![0; graph.len()]; [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/23.rs:506:9 [INFO] [stdout] | [INFO] [stdout] 506 | let mut longest_paths: Vec> = vec![None; graph.len()]; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_graph_paths` is never used [INFO] [stdout] --> src/bin/23.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn longest_graph_paths( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/bin/23.rs:212:6 [INFO] [stdout] | [INFO] [stdout] 212 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_path_dry` is never used [INFO] [stdout] --> src/bin/23.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn longest_path_dry( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/11.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 18 | for (i, column) in input.into_iter().enumerate() { [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: function `print_row` is never used [INFO] [stdout] --> src/bin/11.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn print_row(row: &Vec){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `best` is never read [INFO] [stdout] --> src/bin/25.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let mut best = HashSet::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/25.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | pub fn part_two(input: &str) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_edges` is never used [INFO] [stdout] --> src/bin/25.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn count_edges(graph: &Graph, split: &HashSet) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_split` is never used [INFO] [stdout] --> src/bin/25.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn find_split( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [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: unused variable: `row_len` [INFO] [stdout] --> src/bin/21.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | let row_len = garden[0].len(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_row_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col_len` [INFO] [stdout] --> src/bin/21.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | let col_len = garden.len(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_col_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/bin/21.rs:280:30 [INFO] [stdout] | [INFO] [stdout] 280 | for (j, c) in row.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/21.rs:280:33 [INFO] [stdout] | [INFO] [stdout] 280 | for (j, c) in row.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_step_infinite` is never used [INFO] [stdout] --> src/bin/21.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn take_step_infinite( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StepResult` is never constructed [INFO] [stdout] --> src/bin/21.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | struct StepResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/21.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 107 | impl StepResult { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 108 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_step_tiled` is never used [INFO] [stdout] --> src/bin/21.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn take_step_tiled( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_garden_tiles` is never used [INFO] [stdout] --> src/bin/21.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn process_garden_tiles( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pretty_print_tiles` is never used [INFO] [stdout] --> src/bin/21.rs:245:4 [INFO] [stdout] | [INFO] [stdout] 245 | fn pretty_print_tiles( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/bin/21.rs:366:8 [INFO] [stdout] | [INFO] [stdout] 300 | impl StepRecord { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 366 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `even_odd_step` is never used [INFO] [stdout] --> src/bin/21.rs:504:4 [INFO] [stdout] | [INFO] [stdout] 504 | fn even_odd_step( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_max` is never used [INFO] [stdout] --> src/bin/21.rs:818:4 [INFO] [stdout] | [INFO] [stdout] 818 | fn find_max(distances: &Vec>) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.34s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: advent_of_code v0.9.3 (/opt/rustwide/workdir) [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "ba8da0a4a4631705e78105a9d0c3b0c4b039576f70ad50548c37ed9fc80837e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba8da0a4a4631705e78105a9d0c3b0c4b039576f70ad50548c37ed9fc80837e2", kill_on_drop: false }` [INFO] [stdout] ba8da0a4a4631705e78105a9d0c3b0c4b039576f70ad50548c37ed9fc80837e2