[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] testing MMMaellon/AdventOfCode2023_Rust against 1.79.0 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMMMaellon%2FAdventOfCode2023_Rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MMMaellon/AdventOfCode2023_Rust on toolchain 1.79.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.79.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4-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-4-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" "+1.79.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bd7be85a7e31b987c3274e2d693e4793b60c802f4dc0b225a2c8681c73a987b1 [INFO] running `Command { std: "docker" "start" "-a" "bd7be85a7e31b987c3274e2d693e4793b60c802f4dc0b225a2c8681c73a987b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd7be85a7e31b987c3274e2d693e4793b60c802f4dc0b225a2c8681c73a987b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd7be85a7e31b987c3274e2d693e4793b60c802f4dc0b225a2c8681c73a987b1", kill_on_drop: false }` [INFO] [stdout] bd7be85a7e31b987c3274e2d693e4793b60c802f4dc0b225a2c8681c73a987b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d923a8efa70f0acc84e3f26d66206b65695243db7fedd5089f3646bae2e9ecc [INFO] running `Command { std: "docker" "start" "-a" "6d923a8efa70f0acc84e3f26d66206b65695243db7fedd5089f3646bae2e9ecc", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling advent_of_code v0.9.3 (/opt/rustwide/workdir) [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: 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 `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 `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 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: 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 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: 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: 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: 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: 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 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: `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: 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 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: 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: 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: 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: `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: 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: 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: 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: 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: 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: 14 warnings emitted [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: 2 warnings emitted [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: 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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.67s [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" "6d923a8efa70f0acc84e3f26d66206b65695243db7fedd5089f3646bae2e9ecc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d923a8efa70f0acc84e3f26d66206b65695243db7fedd5089f3646bae2e9ecc", kill_on_drop: false }` [INFO] [stdout] 6d923a8efa70f0acc84e3f26d66206b65695243db7fedd5089f3646bae2e9ecc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a270def450ab990fc26553f7025242018bdd3595279df5eacbb490e873e2d5a [INFO] running `Command { std: "docker" "start" "-a" "7a270def450ab990fc26553f7025242018bdd3595279df5eacbb490e873e2d5a", kill_on_drop: false }` [INFO] [stderr] Compiling advent_of_code v0.9.3 (/opt/rustwide/workdir) [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: 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 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: `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: 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: `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 `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: 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 `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_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: 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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings 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: 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 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: 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: 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: 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: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 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: 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: 2 warnings emitted [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [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: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.04s [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" "7a270def450ab990fc26553f7025242018bdd3595279df5eacbb490e873e2d5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a270def450ab990fc26553f7025242018bdd3595279df5eacbb490e873e2d5a", kill_on_drop: false }` [INFO] [stdout] 7a270def450ab990fc26553f7025242018bdd3595279df5eacbb490e873e2d5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a32a49a200cf33191474e243b2c34a8d39431cc4982bfe02a28276dbc1b83d35 [INFO] running `Command { std: "docker" "start" "-a" "a32a49a200cf33191474e243b2c34a8d39431cc4982bfe02a28276dbc1b83d35", kill_on_drop: false }` [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] warning: unused import: `ops::RangeInclusive` [INFO] [stderr] --> src/bin/18.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | ops::RangeInclusive, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `negative_x` [INFO] [stderr] --> src/bin/18.rs:90:10 [INFO] [stderr] | [INFO] [stderr] 90 | let (negative_x, positive_x, negative_y, positive_y) = get_bounding_box(&steps); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_negative_x` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `positive_x` [INFO] [stderr] --> src/bin/18.rs:90:22 [INFO] [stderr] | [INFO] [stderr] 90 | let (negative_x, positive_x, negative_y, positive_y) = get_bounding_box(&steps); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_positive_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `positive_y` [INFO] [stderr] --> src/bin/18.rs:90:46 [INFO] [stderr] | [INFO] [stderr] 90 | let (negative_x, positive_x, negative_y, positive_y) = get_bounding_box(&steps); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_positive_y` [INFO] [stderr] [INFO] [stderr] warning: function `calc_perimeter` is never used [INFO] [stderr] --> src/bin/18.rs:119:4 [INFO] [stderr] | [INFO] [stderr] 119 | fn calc_perimeter(steps: &Vec) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `simulate_delete` is never used [INFO] [stderr] --> src/bin/22.rs:133:4 [INFO] [stderr] | [INFO] [stderr] 133 | fn simulate_delete( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `print_memo` is never used [INFO] [stderr] --> src/bin/22.rs:227:4 [INFO] [stderr] | [INFO] [stderr] 227 | fn print_memo(fallen: &Vec, memo: &Vec>>>, index: usize) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `advent_of_code` (bin "18" test) generated 5 warnings (run `cargo fix --bin "18" --tests` to apply 1 suggestion) [INFO] [stderr] warning: `advent_of_code` (bin "22" test) generated 2 warnings [INFO] [stderr] warning: unused variable: `row_len` [INFO] [stderr] --> src/bin/21.rs:259:9 [INFO] [stderr] | [INFO] [stderr] 259 | let row_len = garden[0].len(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_row_len` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `col_len` [INFO] [stderr] --> src/bin/21.rs:260:9 [INFO] [stderr] | [INFO] [stderr] 260 | let col_len = garden.len(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_col_len` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `j` [INFO] [stderr] --> src/bin/21.rs:280:30 [INFO] [stderr] | [INFO] [stderr] 280 | for (j, c) in row.iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `c` [INFO] [stderr] --> src/bin/21.rs:280:33 [INFO] [stderr] | [INFO] [stderr] 280 | for (j, c) in row.iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stderr] [INFO] [stderr] warning: function `take_step_infinite` is never used [INFO] [stderr] --> src/bin/21.rs:50:4 [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 50 | fn take_step_infinite( [INFO] [stdout] running 2 tests [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `StepResult` is never constructed [INFO] [stderr] --> src/bin/21.rs:99:8 [INFO] [stderr] | [INFO] [stderr] 99 | struct StepResult { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/bin/21.rs:108:8 [INFO] [stderr] | [INFO] [stderr] 107 | impl StepResult { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 108 | fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `take_step_tiled` is never used [INFO] [stderr] --> src/bin/21.rs:119:4 [INFO] [stderr] | [INFO] [stderr] 119 | fn take_step_tiled( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `process_garden_tiles` is never used [INFO] [stderr] --> src/bin/21.rs:171:4 [INFO] [stderr] | [INFO] [stderr] 171 | fn process_garden_tiles( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `pretty_print_tiles` is never used [INFO] [stderr] --> src/bin/21.rs:245:4 [INFO] [stderr] | [INFO] [stderr] 245 | fn pretty_print_tiles( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `len` is never used [INFO] [stderr] --> src/bin/21.rs:366:8 [INFO] [stderr] | [INFO] [stderr] 300 | impl StepRecord { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 366 | fn len(&self) -> usize { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `even_odd_step` is never used [INFO] [stderr] --> src/bin/21.rs:504:4 [INFO] [stderr] | [INFO] [stderr] 504 | fn even_odd_step( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `find_max` is never used [INFO] [stderr] --> src/bin/21.rs:818:4 [INFO] [stderr] | [INFO] [stderr] 818 | fn find_max(distances: &Vec>) -> usize { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `print_highlighted` is never used [INFO] [stderr] --> src/bin/10.rs:58:4 [INFO] [stderr] | [INFO] [stderr] 58 | fn print_highlighted(tiles: &Vec>, highlighted: &Vec<(usize, usize)>){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `memo` [INFO] [stderr] --> src/bin/23.rs:504:13 [INFO] [stderr] | [INFO] [stderr] 504 | let mut memo = vec![0; graph.len()]; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_memo` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `longest_paths` [INFO] [stderr] --> src/bin/23.rs:506:13 [INFO] [stderr] | [INFO] [stderr] 506 | let mut longest_paths: Vec> = vec![None; graph.len()]; [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_longest_paths` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/23.rs:504:9 [INFO] [stderr] | [INFO] [stderr] 504 | let mut memo = vec![0; graph.len()]; [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/23.rs:506:9 [INFO] [stderr] | [INFO] [stderr] 506 | let mut longest_paths: Vec> = vec![None; graph.len()]; [INFO] [stderr] | ----^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: function `longest_graph_paths` is never used [INFO] [stderr] --> src/bin/23.rs:135:4 [INFO] [stderr] | [INFO] [stderr] 135 | fn longest_graph_paths( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: enum `Direction` is never used [INFO] [stderr] --> src/bin/23.rs:212:6 [INFO] [stderr] | [INFO] [stderr] 212 | enum Direction { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `longest_path_dry` is never used [INFO] [stderr] --> src/bin/23.rs:219:4 [INFO] [stderr] | [INFO] [stderr] 219 | fn longest_path_dry( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/24.rs:235:9 [INFO] [stderr] | [INFO] [stderr] 235 | let mut lower: i128 = -10000; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/24.rs:236:9 [INFO] [stderr] | [INFO] [stderr] 236 | let mut upper: i128 = 10000; [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/24.rs:338:9 [INFO] [stderr] | [INFO] [stderr] 338 | let mut x_den = find_commmon_denominator(&x_matches); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stdout] test tests::test_part_two ... ok [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/24.rs:339:9 [INFO] [stderr] | [INFO] [stderr] 339 | let mut y_den = find_commmon_denominator(&y_matches); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/24.rs:340:9 [INFO] [stderr] | [INFO] [stderr] 340 | let mut z_den = find_commmon_denominator(&z_matches); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `a` [INFO] [stderr] --> src/bin/24.rs:373:13 [INFO] [stderr] | [INFO] [stderr] 373 | let a = Hail { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> src/bin/24.rs:381:13 [INFO] [stderr] | [INFO] [stderr] 381 | let b = Hail { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/bin/24.rs:393:13 [INFO] [stderr] | [INFO] [stderr] 393 | let result = part_one(&advent_of_code::template::read_file("examples", DAY)); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: methods `xy`, `xyz`, and `calc_xyz_intersect_time` are never used [INFO] [stderr] --> src/bin/24.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 15 | impl Hail { [INFO] [stderr] | --------- methods in this implementation [INFO] [stderr] 16 | fn xy(&self) -> (f64, f64) { [INFO] [stderr] | ^^ [INFO] [stderr] ... [INFO] [stderr] 22 | fn xyz(&self) -> (f64, f64, f64) { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 116 | fn calc_xyz_intersect_time(self, other: &Hail) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `vec_deque` [INFO] [stderr] --> src/bin/20.rs:2:24 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::{vec_deque, HashMap, VecDeque}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sender` [INFO] [stderr] --> src/bin/20.rs:145:45 [INFO] [stderr] | [INFO] [stderr] 145 | fn receive_pulse(&mut self, high: bool, sender: usize) -> Option { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `other` [INFO] [stderr] --> src/bin/20.rs:153:29 [INFO] [stderr] | [INFO] [stderr] 153 | fn add_input(&mut self, other: usize) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `high` [INFO] [stderr] --> src/bin/20.rs:183:33 [INFO] [stderr] | [INFO] [stderr] 183 | fn receive_pulse(&mut self, high: bool, sender: usize) -> Option { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_high` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sender` [INFO] [stderr] --> src/bin/20.rs:183:45 [INFO] [stderr] | [INFO] [stderr] 183 | fn receive_pulse(&mut self, high: bool, sender: usize) -> Option { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `other` [INFO] [stderr] --> src/bin/20.rs:187:30 [INFO] [stderr] | [INFO] [stderr] 187 | fn add_output(&mut self, other: usize) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `other` [INFO] [stderr] --> src/bin/20.rs:191:29 [INFO] [stderr] | [INFO] [stderr] 191 | fn add_input(&mut self, other: usize) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `conjunction` [INFO] [stderr] --> src/bin/20.rs:255:21 [INFO] [stderr] | [INFO] [stderr] 255 | if let Some(conjunction) = module.as_any().downcast_mut::() { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conjunction` [INFO] [stderr] [INFO] [stderr] warning: variable `low_pulses` is assigned to, but never used [INFO] [stderr] --> src/bin/20.rs:302:13 [INFO] [stderr] | [INFO] [stderr] 302 | let mut low_pulses : usize = 0; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_low_pulses` instead [INFO] [stderr] [INFO] [stderr] warning: variable `high_pulses` is assigned to, but never used [INFO] [stderr] --> src/bin/20.rs:303:13 [INFO] [stderr] | [INFO] [stderr] 303 | let mut high_pulses : usize = 0; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_high_pulses` instead [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/bin/20.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 15 | struct FlipFlop { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 16 | id: usize, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/bin/20.rs:67:5 [INFO] [stderr] | [INFO] [stderr] 66 | struct Conjunction { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 67 | id: usize, [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/bin/20.rs:127:5 [INFO] [stderr] | [INFO] [stderr] 126 | struct Broadcast { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 127 | id: usize, [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/bin/20.rs:165:5 [INFO] [stderr] | [INFO] [stderr] 164 | struct Sink { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] 165 | id: usize, [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/bin/11.rs:18:10 [INFO] [stderr] | [INFO] [stderr] 18 | for (i, column) in input.into_iter().enumerate() { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `print_row` is never used [INFO] [stderr] --> src/bin/11.rs:94:4 [INFO] [stderr] | [INFO] [stderr] 94 | fn print_row(row: &Vec){ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:267:21 [INFO] [stderr] | [INFO] [stderr] 267 | Rule::X => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] = note: `#[warn(pointer_structural_match)]` on by default [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:271:21 [INFO] [stderr] | [INFO] [stderr] 271 | Rule::M => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:275:21 [INFO] [stderr] | [INFO] [stderr] 275 | Rule::A => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:279:21 [INFO] [stderr] | [INFO] [stderr] 279 | Rule::S => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:331:21 [INFO] [stderr] | [INFO] [stderr] 331 | Rule::X => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:335:21 [INFO] [stderr] | [INFO] [stderr] 335 | Rule::M => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:339:21 [INFO] [stderr] | [INFO] [stderr] 339 | Rule::A => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:343:21 [INFO] [stderr] | [INFO] [stderr] 343 | Rule::S => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:441:17 [INFO] [stderr] | [INFO] [stderr] 441 | Rule::X => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:444:17 [INFO] [stderr] | [INFO] [stderr] 444 | Rule::M => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:447:17 [INFO] [stderr] | [INFO] [stderr] 447 | Rule::A => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/bin/19.rs:450:17 [INFO] [stderr] | [INFO] [stderr] 450 | Rule::S => { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #120362 [INFO] [stderr] [INFO] [stderr] warning: function `evaluate_part` is never used [INFO] [stderr] --> src/bin/19.rs:208:4 [INFO] [stderr] | [INFO] [stderr] 208 | fn evaluate_part( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `find_slices` is never used [INFO] [stderr] --> src/bin/19.rs:423:4 [INFO] [stderr] | [INFO] [stderr] 423 | fn find_slices(workflows: &Vec) -> (Vec, Vec, Vec, Vec) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: value assigned to `i` is never read [INFO] [stderr] --> src/bin/14.rs:294:13 [INFO] [stderr] | [INFO] [stderr] 294 | let mut i : usize = 0; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/bin/14.rs:295:9 [INFO] [stderr] | [INFO] [stderr] 295 | for index in 0..1000000000 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HashMap`, `HashSet` [INFO] [stderr] --> src/bin/13.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `generate_possible_centers` is never used [INFO] [stderr] --> src/bin/13.rs:43:4 [INFO] [stderr] | [INFO] [stderr] 43 | fn generate_possible_centers(input: &Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `fix_smudge` is never used [INFO] [stderr] --> src/bin/13.rs:129:4 [INFO] [stderr] | [INFO] [stderr] 129 | fn fix_smudge(feature_set: &mut Vec>) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `HashMap` [INFO] [stderr] --> src/bin/17.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `advent_of_code` (bin "21" test) generated 13 warnings [INFO] [stderr] warning: `advent_of_code` (bin "10" test) generated 1 warning [INFO] [stderr] warning: `advent_of_code` (bin "23" test) generated 7 warnings (run `cargo fix --bin "23" --tests` to apply 2 suggestions) [INFO] [stderr] warning: `advent_of_code` (bin "24" test) generated 9 warnings (run `cargo fix --bin "24" --tests` to apply 5 suggestions) [INFO] [stderr] warning: `advent_of_code` (bin "20" test) generated 14 warnings (run `cargo fix --bin "20" --tests` to apply 1 suggestion) [INFO] [stderr] warning: `advent_of_code` (bin "11" test) generated 2 warnings [INFO] [stderr] warning: `advent_of_code` (bin "19" test) generated 14 warnings [INFO] [stderr] warning: `advent_of_code` (bin "14" test) generated 2 warnings [INFO] [stderr] warning: `advent_of_code` (bin "13" test) generated 3 warnings (run `cargo fix --bin "13" --tests` to apply 1 suggestion) [INFO] [stderr] warning: `advent_of_code` (bin "17" test) generated 1 warning (run `cargo fix --bin "17" --tests` to apply 1 suggestion) [INFO] [stderr] warning: function `print_energized` is never used [INFO] [stderr] --> src/bin/16.rs:284:4 [INFO] [stderr] | [INFO] [stderr] 284 | fn print_energized(width: usize, height: usize, energized: &HashSet<(usize, usize)>) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `best` is never read [INFO] [stderr] --> src/bin/25.rs:164:13 [INFO] [stderr] | [INFO] [stderr] 164 | let mut best = HashSet::new(); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `input` [INFO] [stderr] --> src/bin/25.rs:190:17 [INFO] [stderr] | [INFO] [stderr] 190 | pub fn part_two(input: &str) -> Option { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `count_edges` is never used [INFO] [stderr] --> src/bin/25.rs:75:4 [INFO] [stderr] | [INFO] [stderr] 75 | fn count_edges(graph: &Graph, split: &HashSet) -> usize { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `find_split` is never used [INFO] [stderr] --> src/bin/25.rs:88:4 [INFO] [stderr] | [INFO] [stderr] 88 | fn find_split( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `advent_of_code` (bin "16" test) generated 1 warning [INFO] [stderr] warning: `advent_of_code` (bin "25" test) generated 4 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [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] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/advent_of_code-1c049566ce76330d) [INFO] [stderr] Running unittests src/bin/01.rs (/opt/rustwide/target/debug/deps/01-871a43c68eb9945c) [INFO] [stdout] test tests::test_part_one ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- tests::test_part_one stdout ---- [INFO] [stdout] thread 'tests::test_part_one' panicked at src/bin/01.rs:109:9: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: Some(209) [INFO] [stdout] right: Some(142) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x564169800a35 - std::backtrace_rs::backtrace::libunwind::trace::h1a07e5dba0da0cd2 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/libunwind.rs:105:5 [INFO] [stdout] 1: 0x564169800a35 - std::backtrace_rs::backtrace::trace_unsynchronized::h61b9b8394328c0bc [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x564169800a35 - std::sys_common::backtrace::_print_fmt::h1c5e18b460934cff [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stdout] 3: 0x564169800a35 - ::fmt::h1e1a1972118942ad [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x5641698272eb - core::fmt::rt::Argument::fmt::h07af2b4071d536cd [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/rt.rs:165:63 [INFO] [stdout] 5: 0x5641698272eb - core::fmt::write::hc090a2ffd6b28c4a [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/fmt/mod.rs:1157:21 [INFO] [stdout] 6: 0x5641697fe28f - std::io::Write::write_fmt::h9443d787e8277bd2 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/io/mod.rs:1832:15 [INFO] [stdout] 7: 0x56416980080e - std::sys_common::backtrace::_print::h4e80c5803d4ee35b [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 8: 0x56416980080e - std::sys_common::backtrace::print::ha96650907276675e [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 9: 0x564169802189 - std::panicking::default_hook::{{closure}}::h215c2a0a8346e0e0 [INFO] [stdout] 10: 0x564169801e4e - std::panicking::default_hook::h207342be97478370 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:295:9 [INFO] [stdout] 11: 0x5641697cb0ca - as core::ops::function::Fn>::call::haebd875eeb75949f [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2036:9 [INFO] [stdout] 12: 0x5641697cb0ca - test::test_main::{{closure}}::h9108cb0ebacdb458 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:137:21 [INFO] [stdout] 13: 0x564169802756 - as core::ops::function::Fn>::call::ha9c3bc81d312fd83 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2036:9 [INFO] [stdout] 14: 0x564169802756 - std::panicking::rust_panic_with_hook::hac8bdceee1e4fe2c [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:799:13 [INFO] [stdout] 15: 0x564169802504 - std::panicking::begin_panic_handler::{{closure}}::h00d785e82757ce3c [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:664:13 [INFO] [stdout] 16: 0x564169800ef9 - std::sys_common::backtrace::__rust_end_short_backtrace::h1628d957bcd06996 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:171:18 [INFO] [stdout] 17: 0x564169802237 - rust_begin_unwind [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:652:5 [INFO] [stdout] 18: 0x564169793853 - core::panicking::panic_fmt::hdc63834ffaaefae5 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:72:14 [INFO] [stdout] 19: 0x564169793b5e - core::panicking::assert_failed_inner::hda4754f94c1c1cb1 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:409:17 [INFO] [stdout] 20: 0x5641697950fe - core::panicking::assert_failed::h8b246997d2d3dcec [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:364:5 [INFO] [stdout] 21: 0x5641697977dd - _01::tests::test_part_one::ha2ab41d620350b01 [INFO] [stdout] at /opt/rustwide/workdir/src/bin/01.rs:109:9 [INFO] [stdout] 22: 0x5641697976b7 - _01::tests::test_part_one::{{closure}}::h2acff306cfb039bc [INFO] [stdout] at /opt/rustwide/workdir/src/bin/01.rs:107:23 [INFO] [stdout] 23: 0x564169794496 - core::ops::function::FnOnce::call_once::h89b814e0aa576349 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x5641697cfaab - core::ops::function::FnOnce::call_once::hb194ee8411fb46c7 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5641697cfaab - test::__rust_begin_short_backtrace::h871a93aaa56c76c5 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:623:18 [INFO] [stdout] 26: 0x5641697cf1b1 - test::run_test_in_process::{{closure}}::h6d9e6b0161cb50c6 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:646:60 [INFO] [stdout] 27: 0x5641697cf1b1 - as core::ops::function::FnOnce<()>>::call_once::hb9f3c63b5d0e0baa [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x5641697cf1b1 - std::panicking::try::do_call::h83eb4c9b7c70ebcc [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:559:40 [INFO] [stdout] 29: 0x5641697cf1b1 - std::panicking::try::h5ffd56bf671a89b3 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:523:19 [INFO] [stdout] 30: 0x5641697cf1b1 - std::panic::catch_unwind::h044e758d6cbf65b7 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panic.rs:149:14 [INFO] [stdout] 31: 0x5641697cf1b1 - test::run_test_in_process::hf7ca2db08c9223b8 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:646:27 [INFO] [stdout] 32: 0x5641697cf1b1 - test::run_test::{{closure}}::h9657c20462181b87 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:569:43 [INFO] [stdout] 33: 0x564169797c34 - test::run_test::{{closure}}::h80c3aef427ce62cc [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/test/src/lib.rs:597:41 [INFO] [stdout] 34: 0x564169797c34 - std::sys_common::backtrace::__rust_begin_short_backtrace::h43274eec75e29097 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys_common/backtrace.rs:155:18 [INFO] [stdout] 35: 0x56416979c6a2 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hea1335728d2a7953 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/thread/mod.rs:542:17 [INFO] [stdout] 36: 0x56416979c6a2 - as core::ops::function::FnOnce<()>>::call_once::hb16d5d5fd985753c [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x56416979c6a2 - std::panicking::try::do_call::h65de05e16c44e167 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:559:40 [INFO] [stdout] 38: 0x56416979c6a2 - std::panicking::try::h187f01afe14eb3bf [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:523:19 [INFO] [stdout] 39: 0x56416979c6a2 - std::panic::catch_unwind::h1b55347b2c8efb63 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panic.rs:149:14 [INFO] [stdout] 40: 0x56416979c6a2 - std::thread::Builder::spawn_unchecked_::{{closure}}::hea39e0adaff5b52d [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/thread/mod.rs:541:30 [INFO] [stdout] 41: 0x56416979c6a2 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h9b61aba01c3c1f32 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x56416980691b - as core::ops::function::FnOnce>::call_once::h09e5a4c541afa800 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2022:9 [INFO] [stdout] 43: 0x56416980691b - as core::ops::function::FnOnce>::call_once::h9c8b03c22f4e7026 [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/boxed.rs:2022:9 [INFO] [stdout] 44: 0x56416980691b - std::sys::pal::unix::thread::Thread::new::thread_start::h522bc89a54da820a [INFO] [stdout] at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/sys/pal/unix/thread.rs:108:17 [INFO] [stdout] 45: 0x7f6402287ac3 - [INFO] [stdout] 46: 0x7f6402318a04 - __clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] tests::test_part_one [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin 01` [INFO] running `Command { std: "docker" "inspect" "a32a49a200cf33191474e243b2c34a8d39431cc4982bfe02a28276dbc1b83d35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a32a49a200cf33191474e243b2c34a8d39431cc4982bfe02a28276dbc1b83d35", kill_on_drop: false }` [INFO] [stdout] a32a49a200cf33191474e243b2c34a8d39431cc4982bfe02a28276dbc1b83d35 [INFO] testing MMMaellon/AdventOfCode2023_Rust against beta-2024-06-22 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMMMaellon%2FAdventOfCode2023_Rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MMMaellon/AdventOfCode2023_Rust on toolchain beta-2024-06-22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-06-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4-tc2/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-4-tc2/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" "+beta-2024-06-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-06-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e10934de1f01c42548df61c5461bfd45bcab1a8f76de94fa127c7011247d6d95 [INFO] running `Command { std: "docker" "start" "-a" "e10934de1f01c42548df61c5461bfd45bcab1a8f76de94fa127c7011247d6d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e10934de1f01c42548df61c5461bfd45bcab1a8f76de94fa127c7011247d6d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e10934de1f01c42548df61c5461bfd45bcab1a8f76de94fa127c7011247d6d95", kill_on_drop: false }` [INFO] [stdout] e10934de1f01c42548df61c5461bfd45bcab1a8f76de94fa127c7011247d6d95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-06-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 77213844792cc491fadea3d8ba9723973ba832cf5a4d963df5fdb99345dedd01 [INFO] running `Command { std: "docker" "start" "-a" "77213844792cc491fadea3d8ba9723973ba832cf5a4d963df5fdb99345dedd01", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling advent_of_code v0.9.3 (/opt/rustwide/workdir) [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 imports: `HashMap` and `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 `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: `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: 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 `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: 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: 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: 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: 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: 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] error: 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] [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] error: 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] [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] error: 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] [INFO] [stdout] error: 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] [INFO] [stdout] error: 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] [INFO] [stdout] error: 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] [INFO] [stdout] error: 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] [INFO] [stdout] error: 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] [INFO] [stdout] error: 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] [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] error: 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] [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] error: 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] [INFO] [stdout] error: 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] [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] error: aborting due to 12 previous errors [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] [stderr] error: could not compile `advent_of_code` (bin "19") due to 13 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: 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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "77213844792cc491fadea3d8ba9723973ba832cf5a4d963df5fdb99345dedd01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77213844792cc491fadea3d8ba9723973ba832cf5a4d963df5fdb99345dedd01", kill_on_drop: false }` [INFO] [stdout] 77213844792cc491fadea3d8ba9723973ba832cf5a4d963df5fdb99345dedd01