[INFO] cloning repository https://github.com/dronda-t/advent-of-code-2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dronda-t/advent-of-code-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdronda-t%2Fadvent-of-code-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdronda-t%2Fadvent-of-code-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c0ebc11cf6b1f5e79cf9611bc5dfa1c01f07e571 [INFO] checking dronda-t/advent-of-code-2023/c0ebc11cf6b1f5e79cf9611bc5dfa1c01f07e571 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdronda-t%2Fadvent-of-code-2023" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dronda-t/advent-of-code-2023 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dronda-t/advent-of-code-2023 [INFO] finished tweaking git repo https://github.com/dronda-t/advent-of-code-2023 [INFO] tweaked toml for git repo https://github.com/dronda-t/advent-of-code-2023 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/dronda-t/advent-of-code-2023 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e1ad9c12bcc330deb39204ffe1c986eaceedf6450505bf9735dfad0ed5558e67 [INFO] running `Command { std: "docker" "start" "-a" "e1ad9c12bcc330deb39204ffe1c986eaceedf6450505bf9735dfad0ed5558e67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e1ad9c12bcc330deb39204ffe1c986eaceedf6450505bf9735dfad0ed5558e67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1ad9c12bcc330deb39204ffe1c986eaceedf6450505bf9735dfad0ed5558e67", kill_on_drop: false }` [INFO] [stdout] e1ad9c12bcc330deb39204ffe1c986eaceedf6450505bf9735dfad0ed5558e67 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7ad274805dbfa0656832f684239aef35a84e3ee9af9f2ab10f94c76e75e7a31c [INFO] running `Command { std: "docker" "start" "-a" "7ad274805dbfa0656832f684239aef35a84e3ee9af9f2ab10f94c76e75e7a31c", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking advent-of-code-2023 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/day4.rs (1 fix) [INFO] [stderr] Fixed src/day1.rs (3 fixes) [INFO] [stderr] Fixed src/day4.rs (3 fixes) [INFO] [stderr] Fixed src/day3.rs (3 fixes) [INFO] [stderr] Fixed src/day2.rs (3 fixes) [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/day2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_game` is never used [INFO] [stdout] --> src/day2.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn parse_game(line: &str) -> Game { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day2.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn part_1(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day2.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn part_2(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/day3.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/day3.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Grid(Vec>); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `xy_in_grid`, `create_valid_point`, and `point` are never used [INFO] [stdout] --> src/day3.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Grid { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 12 | fn xy_in_grid(&self, x: isize, y: isize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn create_valid_point(&self, x: isize, y: isize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn point(&self, point: &Point) -> Option<&char> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_whole_number_direction` is never used [INFO] [stdout] --> src/day3.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn find_whole_number_direction(grid: &Grid, point: &Point, visited: &mut HashSet, numbers: &mut Vec, update: F) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_whole_number` is never used [INFO] [stdout] --> src/day3.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn find_whole_number(grid: &Grid, visited: &mut HashSet, point: &Point) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_valid_neighbors` is never used [INFO] [stdout] --> src/day3.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn find_valid_neighbors(grid: &Grid, visited: &mut HashSet, point: &Point) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_grid` is never used [INFO] [stdout] --> src/day3.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn create_grid(input: Vec<&str>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `breadth_first_search` is never used [INFO] [stdout] --> src/day3.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | fn breadth_first_search(grid: Grid) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day3.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn part_1(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `breadth_first_search` is never used [INFO] [stdout] --> src/day3.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | fn breadth_first_search(grid: Grid) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day3.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn part_2(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_number_string` is never used [INFO] [stdout] --> src/day4.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_number_string(string: &str) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day4.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn part_1(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day4.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn part_2(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.71s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking advent-of-code-2023 v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0425]: cannot find function `read_file` in this scope [INFO] [stdout] --> src/day1.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 34 | let file = read_file("input", 1); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 32 + use crate::read_file; [INFO] [stdout] | [INFO] [stdout] 32 + use advent_of_code_2023::read_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day1.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | let beg = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 32 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `day1` [INFO] [stdout] --> src/day1.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 37 | let result = day1::pt_2(lines); [INFO] [stdout] | ^^^^ use of undeclared crate or module `day1` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 32 + use crate::day1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day1.rs:38:19 [INFO] [stdout] | [INFO] [stdout] 38 | let end = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 32 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_file` in this scope [INFO] [stdout] --> src/day2.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | let file = read_file("input", 2); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 69 + use crate::read_file; [INFO] [stdout] | [INFO] [stdout] 69 + use advent_of_code_2023::read_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day2.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | let beg = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 69 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `day2` [INFO] [stdout] --> src/day2.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | let result = day2::part_1(lines); [INFO] [stdout] | ^^^^ use of undeclared crate or module `day2` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 69 + use crate::day2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day2.rs:75:19 [INFO] [stdout] | [INFO] [stdout] 75 | let end = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 69 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_file` in this scope [INFO] [stdout] --> src/day2.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | let file = read_file("input", 2); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 69 + use crate::read_file; [INFO] [stdout] | [INFO] [stdout] 69 + use advent_of_code_2023::read_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day2.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 84 | let beg = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 69 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `day2` [INFO] [stdout] --> src/day2.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | let result = day2::part_2(lines); [INFO] [stdout] | ^^^^ use of undeclared crate or module `day2` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 69 + use crate::day2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day2.rs:86:19 [INFO] [stdout] | [INFO] [stdout] 86 | let end = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 69 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_file` in this scope [INFO] [stdout] --> src/day3.rs:165:20 [INFO] [stdout] | [INFO] [stdout] 165 | let file = read_file("input", 3); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 163 + use crate::read_file; [INFO] [stdout] | [INFO] [stdout] 163 + use advent_of_code_2023::read_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day3.rs:167:19 [INFO] [stdout] | [INFO] [stdout] 167 | let beg = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 163 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `day3` [INFO] [stdout] --> src/day3.rs:168:22 [INFO] [stdout] | [INFO] [stdout] 168 | let result = day3::part_1::part_1(lines); [INFO] [stdout] | ^^^^ use of undeclared crate or module `day3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 163 + use crate::day3::part_1; [INFO] [stdout] | [INFO] [stdout] help: if you import `part_1`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 168 - let result = day3::part_1::part_1(lines); [INFO] [stdout] 168 + let result = part_1::part_1(lines); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day3.rs:169:19 [INFO] [stdout] | [INFO] [stdout] 169 | let end = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 163 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_file` in this scope [INFO] [stdout] --> src/day3.rs:176:20 [INFO] [stdout] | [INFO] [stdout] 176 | let file = read_file("input", 3); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 163 + use crate::read_file; [INFO] [stdout] | [INFO] [stdout] 163 + use advent_of_code_2023::read_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day3.rs:178:19 [INFO] [stdout] | [INFO] [stdout] 178 | let beg = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 163 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `day3` [INFO] [stdout] --> src/day3.rs:179:22 [INFO] [stdout] | [INFO] [stdout] 179 | let result = day3::part_2::part_2(lines); [INFO] [stdout] | ^^^^ use of undeclared crate or module `day3` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 163 + use crate::day3::part_2; [INFO] [stdout] | [INFO] [stdout] help: if you import `part_2`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 179 - let result = day3::part_2::part_2(lines); [INFO] [stdout] 179 + let result = part_2::part_2(lines); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day3.rs:180:19 [INFO] [stdout] | [INFO] [stdout] 180 | let end = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 163 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_file` in this scope [INFO] [stdout] --> src/day4.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | let file = read_file("input", 4); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 47 + use crate::read_file; [INFO] [stdout] | [INFO] [stdout] 47 + use advent_of_code_2023::read_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day4.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 51 | let beg = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 47 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `day4` [INFO] [stdout] --> src/day4.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | let result = day4::part_1(lines); [INFO] [stdout] | ^^^^ use of undeclared crate or module `day4` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 47 + use crate::day4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day4.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | let end = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 47 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_file` in this scope [INFO] [stdout] --> src/day4.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | let file = read_file("input", 4); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 47 + use crate::read_file; [INFO] [stdout] | [INFO] [stdout] 47 + use advent_of_code_2023::read_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day4.rs:62:19 [INFO] [stdout] | [INFO] [stdout] 62 | let beg = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 47 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `day4` [INFO] [stdout] --> src/day4.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | let result = day4::part_2(lines); [INFO] [stdout] | ^^^^ use of undeclared crate or module `day4` [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 47 + use crate::day4; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/day4.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 64 | let end = Instant::now(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Instant` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 47 + use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/day2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_game` is never used [INFO] [stdout] --> src/day2.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn parse_game(line: &str) -> Game { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day2.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn part_1(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day2.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn part_2(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/day3.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/day3.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Grid(Vec>); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `xy_in_grid`, `create_valid_point`, and `point` are never used [INFO] [stdout] --> src/day3.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Grid { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 12 | fn xy_in_grid(&self, x: isize, y: isize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn create_valid_point(&self, x: isize, y: isize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn point(&self, point: &Point) -> Option<&char> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_whole_number_direction` is never used [INFO] [stdout] --> src/day3.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn find_whole_number_direction(grid: &Grid, point: &Point, visited: &mut HashSet, numbers: &mut Vec, update: F) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_whole_number` is never used [INFO] [stdout] --> src/day3.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn find_whole_number(grid: &Grid, visited: &mut HashSet, point: &Point) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_valid_neighbors` is never used [INFO] [stdout] --> src/day3.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn find_valid_neighbors(grid: &Grid, visited: &mut HashSet, point: &Point) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_grid` is never used [INFO] [stdout] --> src/day3.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn create_grid(input: Vec<&str>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `breadth_first_search` is never used [INFO] [stdout] --> src/day3.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | fn breadth_first_search(grid: Grid) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day3.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn part_1(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `breadth_first_search` is never used [INFO] [stdout] --> src/day3.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | fn breadth_first_search(grid: Grid) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day3.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 151 | pub fn part_2(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_number_string` is never used [INFO] [stdout] --> src/day4.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_number_string(string: &str) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day4.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn part_1(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/day4.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn part_2(input: Vec<&str>) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 28 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2023` (bin "advent-of-code-2023" test) due to 29 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" "7ad274805dbfa0656832f684239aef35a84e3ee9af9f2ab10f94c76e75e7a31c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ad274805dbfa0656832f684239aef35a84e3ee9af9f2ab10f94c76e75e7a31c", kill_on_drop: false }` [INFO] [stdout] 7ad274805dbfa0656832f684239aef35a84e3ee9af9f2ab10f94c76e75e7a31c