[INFO] cloning repository https://github.com/soerenreichardt/aoc2024 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/soerenreichardt/aoc2024" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoerenreichardt%2Faoc2024", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoerenreichardt%2Faoc2024'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 95a9126c45b3a050460a49d36ffd98c93f05c5e5 [INFO] building soerenreichardt/aoc2024 against try#9b5e8b16bd1c4acf4cf8e6880368314cf021a987+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoerenreichardt%2Faoc2024" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/soerenreichardt/aoc2024 on toolchain 9b5e8b16bd1c4acf4cf8e6880368314cf021a987 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/soerenreichardt/aoc2024 [INFO] finished tweaking git repo https://github.com/soerenreichardt/aoc2024 [INFO] tweaked toml for git repo https://github.com/soerenreichardt/aoc2024 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/soerenreichardt/aoc2024 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" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4089329510d93c6fe3983539fdf34a91f0d49fe9b3bbfb184a197a847bd8e1b9 [INFO] running `Command { std: "docker" "start" "-a" "4089329510d93c6fe3983539fdf34a91f0d49fe9b3bbfb184a197a847bd8e1b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4089329510d93c6fe3983539fdf34a91f0d49fe9b3bbfb184a197a847bd8e1b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4089329510d93c6fe3983539fdf34a91f0d49fe9b3bbfb184a197a847bd8e1b9", kill_on_drop: false }` [INFO] [stdout] 4089329510d93c6fe3983539fdf34a91f0d49fe9b3bbfb184a197a847bd8e1b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 65dfcbc93e1dba9622f81eb9c04a661a9dd66c6b9b34b9244a1cec70997ba409 [INFO] running `Command { std: "docker" "start" "-a" "65dfcbc93e1dba9622f81eb9c04a661a9dd66c6b9b34b9244a1cec70997ba409", kill_on_drop: false }` [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling aoc2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/day1/mod.rs:9:86 [INFO] [stdout] | [INFO] [stdout] 9 | let input = std::str::from_utf8(include_bytes!("../../res/day1/part1")).unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/day2/mod.rs:4:86 [INFO] [stdout] | [INFO] [stdout] 4 | let input = std::str::from_utf8(include_bytes!("../../res/day2/part1")).unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/day2/mod.rs:9:86 [INFO] [stdout] | [INFO] [stdout] 9 | let input = std::str::from_utf8(include_bytes!("../../res/day2/part1")).unwrap();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/day13/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winnow::Parser` [INFO] [stdout] --> src/day4/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winnow::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `winnow::Parser` [INFO] [stdout] --> src/day7/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use winnow::Parser; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/day10/mod.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | .filter(|(col, height)| **height == 0) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: a temporary value will be dropped here before the execution exits the block in Edition 2024, which will raise borrow checking error [INFO] [stdout] --> src/day13/mod.rs:103:102 [INFO] [stdout] | [INFO] [stdout] 101 | preceded(format!("Button {}: ", button_name).as_str(), separated_pair(preceded("X+", digit1), ", ", preceded("Y+", digit1))) [INFO] [stdout] | ----------------------------------- consider using a `let` binding to create a longer lived value; or replacing the `{ .. }` block with curly brackets `( .. )`; or folding the rest of the expression into the surrounding `unsafe { .. }` [INFO] [stdout] 102 | .parse_next(input) [INFO] [stdout] 103 | .map(|(x, y)| Position { x: x.parse::().unwrap(), y: y.parse::().unwrap() }) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day1/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day1/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pair_distances` is never used [INFO] [stdout] --> src/day1/historian_hysteria.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn pair_distances(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `similarity_score` is never used [INFO] [stdout] --> src/day1/historian_hysteria.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn similarity_score(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day2/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day2/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_reports` is never used [INFO] [stdout] --> src/day2/red_nodes_reports.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn safe_reports(input: &str, with_tolerance: bool) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_report` is never used [INFO] [stdout] --> src/day2/red_nodes_reports.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn check_report(report: &[i32]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_report_with_tolerance` is never used [INFO] [stdout] --> src/day2/red_nodes_reports.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn check_report_with_tolerance(report: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day3/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Instruction` is never used [INFO] [stdout] --> src/day3/mull_it_over.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_multiplications` is never used [INFO] [stdout] --> src/day3/mull_it_over.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn compute_multiplications(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_instruction` is never used [INFO] [stdout] --> src/day3/mull_it_over.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn parse_instruction(input: &mut &str) -> PResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_mul_tuple` is never used [INFO] [stdout] --> src/day3/mull_it_over.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn parse_mul_tuple(input: &mut &str) -> PResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_do` is never used [INFO] [stdout] --> src/day3/mull_it_over.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn parse_do(input: &mut &str) -> PResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_dont` is never used [INFO] [stdout] --> src/day3/mull_it_over.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn parse_dont(input: &mut &str) -> PResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day4/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day4/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Board` is never constructed [INFO] [stdout] --> src/day4/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Board<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `XmasKernel` is never constructed [INFO] [stdout] --> src/day4/mod.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct XmasKernel { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `XKernel` is never constructed [INFO] [stdout] --> src/day4/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct XKernel { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `search` is never used [INFO] [stdout] --> src/day4/mod.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 28 | impl XKernel { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 29 | pub(crate) fn search(&self, board: &[Vec<&str>], x: usize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/day4/mod.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 43 | impl XmasKernel { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 44 | fn new (target: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `word_search` is never used [INFO] [stdout] --> src/day4/mod.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn word_search(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `x_search` is never used [INFO] [stdout] --> src/day4/mod.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn x_search(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse`, `accept2`, and `accept` are never used [INFO] [stdout] --> src/day4/mod.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 62 | impl<'a> Board<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 63 | fn parse(input: &'a str) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn accept2(&self, kernel: XKernel) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn accept(&self, kernel: XmasKernel) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/day4/mod.rs:121:8 [INFO] [stdout] | [INFO] [stdout] 120 | impl XmasKernel { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 121 | fn search_row(&self, board: &[Vec<&str>], x_offset: usize, y_offset: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn row_slice<'a>(&self, board: &'a [Vec<&'a str>], x_offset: usize, y_offset: usize) -> &'a [&'a str] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | fn search_column(&self, board: &[Vec<&str>], x_offset: usize, y_offset: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 141 | fn column_slice<'a>(&self, board: &'a [Vec<&'a str>], x_offset: usize, y_offset: usize) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | fn search_diagonal_right(&self, board: &[Vec<&str>], x_offset: usize, y_offset: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | fn diagonal_slice_right<'a>(&self, board: &'a [Vec<&'a str>], x_offset: usize, y_offset: usize) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | fn search_diagonal_left(&self, board: &[Vec<&str>], x_offset: usize, y_offset: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn diagonal_slice_left<'a>(&self, board: &'a [Vec<&'a str>], x_offset: usize, y_offset: usize) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | fn check_slice(&self, slice: &[&str]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day5/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day5/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ordered_pages` is never used [INFO] [stdout] --> src/day5/mod.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn ordered_pages(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reordered_pages` is never used [INFO] [stdout] --> src/day5/mod.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn reordered_pages(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `orderings` is never read [INFO] [stdout] --> src/day5/mod.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct PageOrderings { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 34 | orderings: HashMap>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pages` is never read [INFO] [stdout] --> src/day5/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 53 | struct PageUpdates { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 54 | pages: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `values` is never read [INFO] [stdout] --> src/day5/mod.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 58 | struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 59 | values: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `filter_pages` and `broken_pages` are never used [INFO] [stdout] --> src/day5/mod.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 82 | impl PageUpdates { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 83 | fn filter_pages(&self, orderings: &PageOrderings) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn broken_pages(&mut self, ordering: &PageOrderings) -> Vec<&mut Page> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `validate_page`, `middle_item`, and `fix_page` are never used [INFO] [stdout] --> src/day5/mod.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 92 | impl Page { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 93 | fn validate_page(&self, orderings: &PageOrderings) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn middle_item(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | fn fix_page(&mut self, orderings: &PageOrderings) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_item` is never used [INFO] [stdout] --> src/day5/mod.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 122 | impl PageOrderings { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 123 | fn check_item(&self, item: u32, index: usize, values: &[u32]) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day6/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day6/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guard_path` is never used [INFO] [stdout] --> src/day6/mod.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn guard_path(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obstruction_loops` is never used [INFO] [stdout] --> src/day6/mod.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn obstruction_loops(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day6/mod.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | Guard(Direction) [INFO] [stdout] | ----- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Tile` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 | Guard(()) [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Left`, `Right`, and `Down` are never constructed [INFO] [stdout] --> src/day6/mod.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 35 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 36 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | Up, [INFO] [stdout] 38 | Down [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `turn_right` and `move_position` are never used [INFO] [stdout] --> src/day6/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl Direction { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 42 | fn turn_right(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn move_position(&self, (x, y): (usize, usize)) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tiles`, `width`, and `height` are never read [INFO] [stdout] --> src/day6/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | struct Board { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 63 | tiles: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 64 | width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 65 | height: usize [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Board` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `predict_guard_movement`, `find_loops`, `move_guard`, `find_guard`, `is_outside`, and `is_occupied` are never used [INFO] [stdout] --> src/day6/mod.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 87 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 88 | fn predict_guard_movement(&mut self) -> HashSet<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn find_loops(&mut self, seen_positions: &HashSet<(usize, usize)>, initial_position: (usize, usize)) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | fn move_guard(&mut self, (x, y): (usize, usize), direction: &mut Direction) -> Option<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn find_guard(&self) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | fn is_outside(&self, (x, y): (usize, usize), direction: &Direction) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn is_occupied(&self, (x, y): (usize, usize)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day7/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day7/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `evaluate` is never used [INFO] [stdout] --> src/day7/mod.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl Operation { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 22 | fn evaluate(&self, lhs: usize, rhs: usize) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_calibrations` is never used [INFO] [stdout] --> src/day7/mod.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn compute_calibrations(input: &str, num_operators: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_equation` is never used [INFO] [stdout] --> src/day7/mod.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn solve_equation((expected_result, operands): (usize, Vec), num_operators: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day8/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day8/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Distance` is never used [INFO] [stdout] --> src/day8/mod.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | enum Distance { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `anti_node_count` is never used [INFO] [stdout] --> src/day8/mod.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn anti_node_count(input: &str, distance: Distance) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `anti_nodes_for_frequency` is never used [INFO] [stdout] --> src/day8/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn anti_nodes_for_frequency(positions: Vec, width: usize, height: usize, distance: Distance) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_bounds` is never used [INFO] [stdout] --> src/day8/mod.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn check_bounds(pos: Position, width: usize, height: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day9/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day9/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cursor` is never constructed [INFO] [stdout] --> src/day9/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Cursor<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fragment_disk` is never used [INFO] [stdout] --> src/day9/mod.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn fragment_disk(input: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/day9/mod.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_files` is never used [INFO] [stdout] --> src/day9/mod.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn move_files(input: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `forward`, `backward`, `next`, `next_safe`, `index`, and `advance` are never used [INFO] [stdout] --> src/day9/mod.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 124 | impl<'a> Cursor<'a> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 125 | fn forward(disk_map: &'a [u32]) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn backward(disk_map: &'a [u32]) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn next_safe(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn index(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | fn advance(&mut self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day10/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day10/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Map` is never constructed [INFO] [stdout] --> src/day10/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Map { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trail_scores` is never used [INFO] [stdout] --> src/day10/mod.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn trail_scores(input: &str) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `find_trail_scores`, `scores_for_trail_head`, and `progress_trail` are never used [INFO] [stdout] --> src/day10/mod.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Map { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 32 | fn new(topology: Vec>) -> Map { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn find_trail_scores(&self) -> Vec<(u32, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn scores_for_trail_head(&self, trail_head: (usize, usize)) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn progress_trail(&self, row: usize, col: usize, target_height: u8) -> (HashSet<(usize, usize)>, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day11/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day11/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stone_count` is never used [INFO] [stdout] --> src/day11/mod.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn stone_count(input: &str, num_blinks: u8) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_blink` is never used [INFO] [stdout] --> src/day11/mod.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn simulate_blink(stones: Vec, limit: u8, memory: &mut HashMap<(u8, usize), usize>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_one_stone` is never used [INFO] [stdout] --> src/day11/mod.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn simulate_one_stone(stone: usize, step: u8, limit: u8, memory: &mut HashMap<(u8, usize), usize>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2024` (bin "aoc2024") due to 1 previous error; 92 warnings emitted [INFO] [stdout] warning: function `split_number` is never used [INFO] [stdout] --> src/day11/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn split_number(s: String, len: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day12/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/day12/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Component` is never constructed [INFO] [stdout] --> src/day12/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Component { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `area`, `perimeter`, `edge_positions`, and `edge_segments` are never used [INFO] [stdout] --> src/day12/mod.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl Component { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 34 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn perimeter(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn edge_positions(&self) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn edge_segments(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `neighborhood` is never used [INFO] [stdout] --> src/day12/mod.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 127 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 128 | fn neighborhood(&self) -> [Position;4] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fence_price` is never used [INFO] [stdout] --> src/day12/mod.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn fence_price(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fence_price_discount` is never used [INFO] [stdout] --> src/day12/mod.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn fence_price_discount(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `components` is never used [INFO] [stdout] --> src/day12/mod.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn components(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `component` is never used [INFO] [stdout] --> src/day12/mod.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn component(name: char, (x, y): (usize, usize), board: &[Vec], visited: &mut HashSet<(usize, usize)>) -> Component { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/day13/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "65dfcbc93e1dba9622f81eb9c04a661a9dd66c6b9b34b9244a1cec70997ba409", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65dfcbc93e1dba9622f81eb9c04a661a9dd66c6b9b34b9244a1cec70997ba409", kill_on_drop: false }` [INFO] [stdout] 65dfcbc93e1dba9622f81eb9c04a661a9dd66c6b9b34b9244a1cec70997ba409