[INFO] cloning repository https://github.com/tomgagnier/2023-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/tomgagnier/2023-advent-of-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomgagnier%2F2023-advent-of-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomgagnier%2F2023-advent-of-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a70eac3b069cf49fbed2dcfb84a070fb10c767b9 [INFO] checking tomgagnier/2023-advent-of-code against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomgagnier%2F2023-advent-of-code" "/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/tomgagnier/2023-advent-of-code on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tomgagnier/2023-advent-of-code [INFO] finished tweaking git repo https://github.com/tomgagnier/2023-advent-of-code [INFO] tweaked toml for git repo https://github.com/tomgagnier/2023-advent-of-code written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tomgagnier/2023-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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2431a1d859b1ecd279f9b8d1adc7db326dacb1dee86182dc83fef4620d3ed9d3 [INFO] running `Command { std: "docker" "start" "-a" "2431a1d859b1ecd279f9b8d1adc7db326dacb1dee86182dc83fef4620d3ed9d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2431a1d859b1ecd279f9b8d1adc7db326dacb1dee86182dc83fef4620d3ed9d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2431a1d859b1ecd279f9b8d1adc7db326dacb1dee86182dc83fef4620d3ed9d3", kill_on_drop: false }` [INFO] [stdout] 2431a1d859b1ecd279f9b8d1adc7db326dacb1dee86182dc83fef4620d3ed9d3 [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4bd2599b5a339793f615e5fcadcfc1d032b688e16a80cec44e69913308aa022a [INFO] running `Command { std: "docker" "start" "-a" "4bd2599b5a339793f615e5fcadcfc1d032b688e16a80cec44e69913308aa022a", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking aoc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/day03/mod.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/day04/mod.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_number` is never used [INFO] [stdout] --> src/day01/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn first_number(numbers: &[(&str, u32)], input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_number` is never used [INFO] [stdout] --> src/day01/mod.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn last_number(numbers: &[(&str, u32)], input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_first_last` is never used [INFO] [stdout] --> src/day01/mod.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn sum_of_first_last(numbers: &[(&str, u32)], input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `holds` and `max` are never used [INFO] [stdout] --> src/day02/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Bag { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 29 | fn holds(&self, other: &Bag) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn max(&self, other: &Bag) -> Bag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_games` is never used [INFO] [stdout] --> src/day02/mod.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn parse_games(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score` is never used [INFO] [stdout] --> src/day02/mod.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn score(limit: &Bag, input: &&str) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `power` is never used [INFO] [stdout] --> src/day02/mod.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn power(input: &&str) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/day03/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `adjacent_to` is never used [INFO] [stdout] --> src/day03/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 11 | pub fn adjacent_to(&self, other: &Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Symbol` is never constructed [INFO] [stdout] --> src/day03/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Symbol { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symbols_in` is never used [INFO] [stdout] --> src/day03/mod.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn symbols_in(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Number` is never constructed [INFO] [stdout] --> src/day03/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Number { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `numbers_in` is never used [INFO] [stdout] --> src/day03/mod.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn numbers_in(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `adjacent_to` is never used [INFO] [stdout] --> src/day03/mod.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 59 | impl Number { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 60 | fn adjacent_to(&self, pos: &Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day03/mod.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn part_1(input: &str) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day03/mod.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn part_2(input: &str) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXAMPLE` is never used [INFO] [stdout] --> src/day03/mod.rs:93:11 [INFO] [stdout] | [INFO] [stdout] 93 | const EXAMPLE: &str = [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> src/day04/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from`, `matches`, and `points` are never used [INFO] [stdout] --> src/day04/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Card { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | fn from(input: &str) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn matches(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn points(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day04/mod.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn part_1(input: &str) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day04/mod.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn part_2(input: &str) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXAMPLE` is never used [INFO] [stdout] --> src/day04/mod.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | const EXAMPLE: &str = [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.32s [INFO] running `Command { std: "docker" "inspect" "4bd2599b5a339793f615e5fcadcfc1d032b688e16a80cec44e69913308aa022a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bd2599b5a339793f615e5fcadcfc1d032b688e16a80cec44e69913308aa022a", kill_on_drop: false }` [INFO] [stdout] 4bd2599b5a339793f615e5fcadcfc1d032b688e16a80cec44e69913308aa022a [INFO] checking tomgagnier/2023-advent-of-code against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomgagnier%2F2023-advent-of-code" "/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/tomgagnier/2023-advent-of-code on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tomgagnier/2023-advent-of-code [INFO] finished tweaking git repo https://github.com/tomgagnier/2023-advent-of-code [INFO] tweaked toml for git repo https://github.com/tomgagnier/2023-advent-of-code written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/tomgagnier/2023-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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 832b39b7a416af9fd5d70194b4cf9c3ab42dcb9e38db5b4075ee45734c5cff61 [INFO] running `Command { std: "docker" "start" "-a" "832b39b7a416af9fd5d70194b4cf9c3ab42dcb9e38db5b4075ee45734c5cff61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "832b39b7a416af9fd5d70194b4cf9c3ab42dcb9e38db5b4075ee45734c5cff61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "832b39b7a416af9fd5d70194b4cf9c3ab42dcb9e38db5b4075ee45734c5cff61", kill_on_drop: false }` [INFO] [stdout] 832b39b7a416af9fd5d70194b4cf9c3ab42dcb9e38db5b4075ee45734c5cff61 [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba8cce176cc7321ae1565a80a57c586650716ecea6bc05315be8796eaa51a87f [INFO] running `Command { std: "docker" "start" "-a" "ba8cce176cc7321ae1565a80a57c586650716ecea6bc05315be8796eaa51a87f", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking aoc v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/day03/mod.rs (1 fix) [INFO] [stderr] Fixed src/day04/mod.rs (1 fix) [INFO] [stdout] warning: function `first_number` is never used [INFO] [stdout] --> src/day01/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn first_number(numbers: &[(&str, u32)], input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_number` is never used [INFO] [stdout] --> src/day01/mod.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn last_number(numbers: &[(&str, u32)], input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_first_last` is never used [INFO] [stdout] --> src/day01/mod.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn sum_of_first_last(numbers: &[(&str, u32)], input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `holds` and `max` are never used [INFO] [stdout] --> src/day02/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Bag { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 29 | fn holds(&self, other: &Bag) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn max(&self, other: &Bag) -> Bag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_games` is never used [INFO] [stdout] --> src/day02/mod.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn parse_games(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score` is never used [INFO] [stdout] --> src/day02/mod.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn score(limit: &Bag, input: &&str) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `power` is never used [INFO] [stdout] --> src/day02/mod.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn power(input: &&str) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/day03/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `adjacent_to` is never used [INFO] [stdout] --> src/day03/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 11 | pub fn adjacent_to(&self, other: &Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Symbol` is never constructed [INFO] [stdout] --> src/day03/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Symbol { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symbols_in` is never used [INFO] [stdout] --> src/day03/mod.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn symbols_in(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Number` is never constructed [INFO] [stdout] --> src/day03/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Number { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `numbers_in` is never used [INFO] [stdout] --> src/day03/mod.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn numbers_in(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `adjacent_to` is never used [INFO] [stdout] --> src/day03/mod.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 59 | impl Number { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 60 | fn adjacent_to(&self, pos: &Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day03/mod.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn part_1(input: &str) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day03/mod.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn part_2(input: &str) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXAMPLE` is never used [INFO] [stdout] --> src/day03/mod.rs:93:11 [INFO] [stdout] | [INFO] [stdout] 93 | const EXAMPLE: &str = [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> src/day04/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from`, `matches`, and `points` are never used [INFO] [stdout] --> src/day04/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Card { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | fn from(input: &str) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn matches(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn points(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day04/mod.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn part_1(input: &str) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day04/mod.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn part_2(input: &str) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXAMPLE` is never used [INFO] [stdout] --> src/day04/mod.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | const EXAMPLE: &str = [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.45s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking aoc v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Symbol` in this scope [INFO] [stdout] --> src/day03/mod.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | Symbol { symbol: '$', pos: Position { i: 3, j: 1 } }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Symbol; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Position` in this scope [INFO] [stdout] --> src/day03/mod.rs:109:44 [INFO] [stdout] | [INFO] [stdout] 109 | Symbol { symbol: '$', pos: Position { i: 3, j: 1 } }, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Symbol` in this scope [INFO] [stdout] --> src/day03/mod.rs:110:17 [INFO] [stdout] | [INFO] [stdout] 110 | Symbol { symbol: '*', pos: Position { i: 5, j: 1 } }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Symbol; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Position` in this scope [INFO] [stdout] --> src/day03/mod.rs:110:44 [INFO] [stdout] | [INFO] [stdout] 110 | Symbol { symbol: '*', pos: Position { i: 5, j: 1 } }, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Symbol` in this scope [INFO] [stdout] --> src/day03/mod.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | Symbol { symbol: '+', pos: Position { i: 5, j: 4 } }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Symbol; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Position` in this scope [INFO] [stdout] --> src/day03/mod.rs:111:44 [INFO] [stdout] | [INFO] [stdout] 111 | Symbol { symbol: '+', pos: Position { i: 5, j: 4 } }, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Symbol` in this scope [INFO] [stdout] --> src/day03/mod.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | Symbol { symbol: '*', pos: Position { i: 3, j: 5 } }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Symbol; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Position` in this scope [INFO] [stdout] --> src/day03/mod.rs:112:44 [INFO] [stdout] | [INFO] [stdout] 112 | Symbol { symbol: '*', pos: Position { i: 3, j: 5 } }, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Symbol` in this scope [INFO] [stdout] --> src/day03/mod.rs:113:17 [INFO] [stdout] | [INFO] [stdout] 113 | Symbol { symbol: '#', pos: Position { i: 6, j: 6 } }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Symbol; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Position` in this scope [INFO] [stdout] --> src/day03/mod.rs:113:44 [INFO] [stdout] | [INFO] [stdout] 113 | Symbol { symbol: '#', pos: Position { i: 6, j: 6 } }, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Symbol` in this scope [INFO] [stdout] --> src/day03/mod.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | Symbol { symbol: '*', pos: Position { i: 3, j: 8 } }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Symbol; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Position` in this scope [INFO] [stdout] --> src/day03/mod.rs:114:44 [INFO] [stdout] | [INFO] [stdout] 114 | Symbol { symbol: '*', pos: Position { i: 3, j: 8 } }, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `symbols_in` in this scope [INFO] [stdout] --> src/day03/mod.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | symbols_in(EXAMPLE) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::symbols_in; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | Number { value: 467, i: 0..3, j: 0 }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | Number { value: 114, i: 5..8, j: 0 }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | Number { value: 35, i: 2..4, j: 2 }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | Number { value: 633, i: 6..9, j: 2 }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | Number { value: 617, i: 0..3, j: 4 }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | Number { value: 58, i: 7..9, j: 5 }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | Number { value: 592, i: 2..5, j: 6 }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:131:17 [INFO] [stdout] | [INFO] [stdout] 131 | Number { value: 755, i: 6..9, j: 7 }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:132:17 [INFO] [stdout] | [INFO] [stdout] 132 | Number { value: 664, i: 1..4, j: 9 }, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | Number { value: 598, i: 5..8, j: 9 } [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `numbers_in` in this scope [INFO] [stdout] --> src/day03/mod.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | numbers_in(EXAMPLE) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::numbers_in; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Number` in this scope [INFO] [stdout] --> src/day03/mod.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | let _467 = Number { i: 0..3, j: 0, value: 467 }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Number; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Position` in this scope [INFO] [stdout] --> src/day03/mod.rs:142:44 [INFO] [stdout] | [INFO] [stdout] 142 | assert_eq!(true, _467.adjacent_to(&Position{ i: 3, j: 1})); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `part_1` in this scope [INFO] [stdout] --> src/day03/mod.rs:147:26 [INFO] [stdout] | [INFO] [stdout] 147 | assert_eq!(4361, part_1(EXAMPLE)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::part_1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `part_1` in this scope [INFO] [stdout] --> src/day03/mod.rs:153:31 [INFO] [stdout] | [INFO] [stdout] 153 | print!("Part 1: {} ", part_1(&include_str!("input.txt"))) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::part_1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `part_2` in this scope [INFO] [stdout] --> src/day03/mod.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 158 | assert_eq!(467835, part_2(EXAMPLE)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::part_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `part_2` in this scope [INFO] [stdout] --> src/day03/mod.rs:163:31 [INFO] [stdout] | [INFO] [stdout] 163 | print!("Part 2: {} ", part_2(&include_str!("input.txt"))) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 93 + use crate::day03::part_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `part_1` in this scope [INFO] [stdout] --> src/day04/mod.rs:69:24 [INFO] [stdout] | [INFO] [stdout] 69 | assert_eq!(13, part_1(EXAMPLE)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 59 + use crate::day04::part_1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `part_1` in this scope [INFO] [stdout] --> src/day04/mod.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | assert_eq!(23235, part_1(&include_str!("input.txt"))) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 59 + use crate::day04::part_1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `part_2` in this scope [INFO] [stdout] --> src/day04/mod.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | assert_eq!(30, part_2(EXAMPLE)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 59 + use crate::day04::part_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `part_2` in this scope [INFO] [stdout] --> src/day04/mod.rs:84:29 [INFO] [stdout] | [INFO] [stdout] 84 | assert_eq!(5920640, part_2(&include_str!("input.txt"))) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 59 + use crate::day04::part_2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_number` is never used [INFO] [stdout] --> src/day01/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn first_number(numbers: &[(&str, u32)], input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `last_number` is never used [INFO] [stdout] --> src/day01/mod.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn last_number(numbers: &[(&str, u32)], input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_first_last` is never used [INFO] [stdout] --> src/day01/mod.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn sum_of_first_last(numbers: &[(&str, u32)], input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `holds` and `max` are never used [INFO] [stdout] --> src/day02/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Bag { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 29 | fn holds(&self, other: &Bag) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn max(&self, other: &Bag) -> Bag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_games` is never used [INFO] [stdout] --> src/day02/mod.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn parse_games(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score` is never used [INFO] [stdout] --> src/day02/mod.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn score(limit: &Bag, input: &&str) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `power` is never used [INFO] [stdout] --> src/day02/mod.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn power(input: &&str) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Position` is never constructed [INFO] [stdout] --> src/day03/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `adjacent_to` is never used [INFO] [stdout] --> src/day03/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Position { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 11 | pub fn adjacent_to(&self, other: &Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Symbol` is never constructed [INFO] [stdout] --> src/day03/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Symbol { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `symbols_in` is never used [INFO] [stdout] --> src/day03/mod.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn symbols_in(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Number` is never constructed [INFO] [stdout] --> src/day03/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Number { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `numbers_in` is never used [INFO] [stdout] --> src/day03/mod.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn numbers_in(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `adjacent_to` is never used [INFO] [stdout] --> src/day03/mod.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 59 | impl Number { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 60 | fn adjacent_to(&self, pos: &Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day03/mod.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn part_1(input: &str) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day03/mod.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn part_2(input: &str) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXAMPLE` is never used [INFO] [stdout] --> src/day03/mod.rs:93:11 [INFO] [stdout] | [INFO] [stdout] 93 | const EXAMPLE: &str = [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> src/day04/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from`, `matches`, and `points` are never used [INFO] [stdout] --> src/day04/mod.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Card { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 10 | fn from(input: &str) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn matches(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn points(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day04/mod.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn part_1(input: &str) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day04/mod.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn part_2(input: &str) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXAMPLE` is never used [INFO] [stdout] --> src/day04/mod.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | const EXAMPLE: &str = [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 34 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc` (lib test) due to 35 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "ba8cce176cc7321ae1565a80a57c586650716ecea6bc05315be8796eaa51a87f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba8cce176cc7321ae1565a80a57c586650716ecea6bc05315be8796eaa51a87f", kill_on_drop: false }` [INFO] [stdout] ba8cce176cc7321ae1565a80a57c586650716ecea6bc05315be8796eaa51a87f