[INFO] cloning repository https://github.com/Meterius/2024-advent-of-code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Meterius/2024-advent-of-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMeterius%2F2024-advent-of-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMeterius%2F2024-advent-of-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2aac0a946c3a0c7dfc3dee048f98164dda033e4c [INFO] building Meterius/2024-advent-of-code against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMeterius%2F2024-advent-of-code" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Meterius/2024-advent-of-code on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Meterius/2024-advent-of-code [INFO] finished tweaking git repo https://github.com/Meterius/2024-advent-of-code [INFO] tweaked toml for git repo https://github.com/Meterius/2024-advent-of-code written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Meterius/2024-advent-of-code 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded utf8-read v0.4.0 [INFO] [stderr] Downloaded bimap v0.6.3 [INFO] [stderr] Downloaded priority-queue v2.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 167d97ad220153da27e224b0dea4004ca631826707af15b8d597c46db0e08ca3 [INFO] running `Command { std: "docker" "start" "-a" "167d97ad220153da27e224b0dea4004ca631826707af15b8d597c46db0e08ca3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "167d97ad220153da27e224b0dea4004ca631826707af15b8d597c46db0e08ca3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "167d97ad220153da27e224b0dea4004ca631826707af15b8d597c46db0e08ca3", kill_on_drop: false }` [INFO] [stdout] 167d97ad220153da27e224b0dea4004ca631826707af15b8d597c46db0e08ca3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fab14300ee71539850de1e3de27d12ab495f3c3c8e2a3546c5d43ceaef49dbce [INFO] running `Command { std: "docker" "start" "-a" "fab14300ee71539850de1e3de27d12ab495f3c3c8e2a3546c5d43ceaef49dbce", kill_on_drop: false }` [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling seq-macro v0.3.5 [INFO] [stderr] Compiling utf8-read v0.4.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling bimap v0.6.3 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling priority-queue v2.1.1 [INFO] [stderr] Compiling advent_of_code_2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `print_tiles` [INFO] [stdout] --> src/day_15.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 53 | macro_rules! print_tiles { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `print_tiles` [INFO] [stdout] --> src/day_15.rs:190:18 [INFO] [stdout] | [INFO] [stdout] 190 | macro_rules! print_tiles { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, and `VecDeque` [INFO] [stdout] --> src/day_22.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/day_22.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Graph` [INFO] [stdout] --> src/day_24.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use petgraph::{Direction, Graph}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bfs` and `Reversed` [INFO] [stdout] --> src/day_24.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use petgraph::visit::{Bfs, Reversed, Topo}; [INFO] [stdout] | ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/day_25.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_14.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 42 | return 7492; [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 52 | let lines = BufReader::new(data).lines().flatten().collect_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_24.rs:248:5 [INFO] [stdout] | [INFO] [stdout] 246 | return all_swaps.into_iter().join(","); [INFO] [stdout] | -------------------------------------- any code following this expression is unreachable [INFO] [stdout] 247 | [INFO] [stdout] 248 | let mut circuit = compile_circuit(data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/day_21.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Itertools` [INFO] [stdout] --> src/day_23.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use itertools::{Itertools}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/day_14.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn part_2(data: File) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [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/day_15.rs:248:33 [INFO] [stdout] | [INFO] [stdout] 248 | ... let mut p_box_next = (p_boxes[i].0 + dir.0, p_boxes[i].1 + dir.1); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | (x0..x1).for_each(|y| out.push(DirButton::Right)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | (x1..x0).for_each(|y| out.push(DirButton::Left)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:54:36 [INFO] [stdout] | [INFO] [stdout] 54 | (y0..y1).for_each(|y| out.push(DirButton::Down)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 56 | (y1..y0).for_each(|y| out.push(DirButton::Up)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:132:36 [INFO] [stdout] | [INFO] [stdout] 132 | (x0..x1).for_each(|y| out.push(DirButton::Right)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | (x1..x0).for_each(|y| out.push(DirButton::Left)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:140:36 [INFO] [stdout] | [INFO] [stdout] 140 | (y0..y1).for_each(|y| out.push(DirButton::Down)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:142:36 [INFO] [stdout] | [INFO] [stdout] 142 | (y1..y0).for_each(|y| out.push(DirButton::Up)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_22.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let mut next = evolve(curr); [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/day_22.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let mut next = evolve(curr); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/day_24.rs:233:15 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn part_2(data: File) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_25.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut is_key = first_line.chars().next().unwrap() == '#'; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/day_25.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn part_2(data: File) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `pop_last`, and `is_empty` are never used [INFO] [stdout] --> src/common.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl OrderedCounter { [INFO] [stdout] | ------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get(&self, key: &K) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn pop_last(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `display_string` and `boundary_manhattan` are never used [INFO] [stdout] --> src/common.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Matrix { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn display_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn boundary_manhattan(&self, pos: (isize, isize), dist: usize) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_2d_string` is never used [INFO] [stdout] --> src/day_6.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 87 | impl<'a> GuardWalk<'a> { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | fn to_2d_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `W_HALF` is never used [INFO] [stdout] --> src/day_14.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | const W_HALF: isize = W / 2; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `H_HALF` is never used [INFO] [stdout] --> src/day_14.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | const H_HALF: isize = H / 2; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_char`, `position`, `change_cost`, and `implementations` are never used [INFO] [stdout] --> src/day_21.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl DirButton { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | fn as_char(&self) -> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn position(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn change_cost(&self, other: &DirButton) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn implementations(&self, other: &DirButton) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/common.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | if i < 0 || i > self.buffer.len() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.00s [INFO] running `Command { std: "docker" "inspect" "fab14300ee71539850de1e3de27d12ab495f3c3c8e2a3546c5d43ceaef49dbce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fab14300ee71539850de1e3de27d12ab495f3c3c8e2a3546c5d43ceaef49dbce", kill_on_drop: false }` [INFO] [stdout] fab14300ee71539850de1e3de27d12ab495f3c3c8e2a3546c5d43ceaef49dbce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bdfd2906cd72ea19c932c5a726f8d61b1ad4ae08f12303c064e022aa30ae0129 [INFO] running `Command { std: "docker" "start" "-a" "bdfd2906cd72ea19c932c5a726f8d61b1ad4ae08f12303c064e022aa30ae0129", kill_on_drop: false }` [INFO] [stderr] Compiling advent_of_code_2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `print_tiles` [INFO] [stdout] --> src/day_15.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 53 | macro_rules! print_tiles { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `print_tiles` [INFO] [stdout] --> src/day_15.rs:190:18 [INFO] [stdout] | [INFO] [stdout] 190 | macro_rules! print_tiles { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet`, and `VecDeque` [INFO] [stdout] --> src/day_22.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/day_22.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Graph` [INFO] [stdout] --> src/day_24.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use petgraph::{Direction, Graph}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bfs` and `Reversed` [INFO] [stdout] --> src/day_24.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | use petgraph::visit::{Bfs, Reversed, Topo}; [INFO] [stdout] | ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/day_25.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_14.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 42 | return 7492; [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 52 | let lines = BufReader::new(data).lines().flatten().collect_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day_24.rs:248:5 [INFO] [stdout] | [INFO] [stdout] 246 | return all_swaps.into_iter().join(","); [INFO] [stdout] | -------------------------------------- any code following this expression is unreachable [INFO] [stdout] 247 | [INFO] [stdout] 248 | let mut circuit = compile_circuit(data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/day_21.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Itertools` [INFO] [stdout] --> src/day_23.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use itertools::{Itertools}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/day_14.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn part_2(data: File) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [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/day_15.rs:248:33 [INFO] [stdout] | [INFO] [stdout] 248 | ... let mut p_box_next = (p_boxes[i].0 + dir.0, p_boxes[i].1 + dir.1); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:46:36 [INFO] [stdout] | [INFO] [stdout] 46 | (x0..x1).for_each(|y| out.push(DirButton::Right)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:48:36 [INFO] [stdout] | [INFO] [stdout] 48 | (x1..x0).for_each(|y| out.push(DirButton::Left)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:54:36 [INFO] [stdout] | [INFO] [stdout] 54 | (y0..y1).for_each(|y| out.push(DirButton::Down)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 56 | (y1..y0).for_each(|y| out.push(DirButton::Up)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:132:36 [INFO] [stdout] | [INFO] [stdout] 132 | (x0..x1).for_each(|y| out.push(DirButton::Right)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | (x1..x0).for_each(|y| out.push(DirButton::Left)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:140:36 [INFO] [stdout] | [INFO] [stdout] 140 | (y0..y1).for_each(|y| out.push(DirButton::Down)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/day_21.rs:142:36 [INFO] [stdout] | [INFO] [stdout] 142 | (y1..y0).for_each(|y| out.push(DirButton::Up)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_22.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | let mut next = evolve(curr); [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/day_22.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | let mut next = evolve(curr); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/day_24.rs:233:15 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn part_2(data: File) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_25.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut is_key = first_line.chars().next().unwrap() == '#'; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/day_25.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn part_2(data: File) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `pop_last`, and `is_empty` are never used [INFO] [stdout] --> src/common.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl OrderedCounter { [INFO] [stdout] | ------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get(&self, key: &K) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn pop_last(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `display_string` and `boundary_manhattan` are never used [INFO] [stdout] --> src/common.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl Matrix { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn display_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn boundary_manhattan(&self, pos: (isize, isize), dist: usize) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_2d_string` is never used [INFO] [stdout] --> src/day_6.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 87 | impl<'a> GuardWalk<'a> { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | fn to_2d_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `W_HALF` is never used [INFO] [stdout] --> src/day_14.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | const W_HALF: isize = W / 2; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `H_HALF` is never used [INFO] [stdout] --> src/day_14.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | const H_HALF: isize = H / 2; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_char`, `position`, `change_cost`, and `implementations` are never used [INFO] [stdout] --> src/day_21.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl DirButton { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | fn as_char(&self) -> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn position(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn change_cost(&self, other: &DirButton) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn implementations(&self, other: &DirButton) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/common.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | if i < 0 || i > self.buffer.len() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "bdfd2906cd72ea19c932c5a726f8d61b1ad4ae08f12303c064e022aa30ae0129", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdfd2906cd72ea19c932c5a726f8d61b1ad4ae08f12303c064e022aa30ae0129", kill_on_drop: false }` [INFO] [stdout] bdfd2906cd72ea19c932c5a726f8d61b1ad4ae08f12303c064e022aa30ae0129