[INFO] cloning repository https://github.com/Tyler-Sch/advent-of-code-23 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tyler-Sch/advent-of-code-23" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyler-Sch%2Fadvent-of-code-23", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyler-Sch%2Fadvent-of-code-23'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce329e6826f20093bc29406246e6054ff750c64d [INFO] checking Tyler-Sch/advent-of-code-23/ce329e6826f20093bc29406246e6054ff750c64d against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyler-Sch%2Fadvent-of-code-23" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tyler-Sch/advent-of-code-23 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/Tyler-Sch/advent-of-code-23 [INFO] finished tweaking git repo https://github.com/Tyler-Sch/advent-of-code-23 [INFO] tweaked toml for git repo https://github.com/Tyler-Sch/advent-of-code-23 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Tyler-Sch/advent-of-code-23 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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab09ba51a5588e40f197a85b22ebe74ad9d54a26012ddf06d2ad491f7027e7b3 [INFO] running `Command { std: "docker" "start" "-a" "ab09ba51a5588e40f197a85b22ebe74ad9d54a26012ddf06d2ad491f7027e7b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab09ba51a5588e40f197a85b22ebe74ad9d54a26012ddf06d2ad491f7027e7b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab09ba51a5588e40f197a85b22ebe74ad9d54a26012ddf06d2ad491f7027e7b3", kill_on_drop: false }` [INFO] [stdout] ab09ba51a5588e40f197a85b22ebe74ad9d54a26012ddf06d2ad491f7027e7b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 409e4d7d6f474e4d4a8bec876c9871fb087a0ed0995aa1d4dbf756edb7a25a8c [INFO] running `Command { std: "docker" "start" "-a" "409e4d7d6f474e4d4a8bec876c9871fb087a0ed0995aa1d4dbf756edb7a25a8c", 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 regex-syntax v0.8.2 [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-23 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/dayten.rs (3 fixes) [INFO] [stderr] Fixed src/daytwo.rs (1 fix) [INFO] [stderr] Fixed src/daysix.rs (2 fixes) [INFO] [stderr] Fixed src/dayfive.rs (2 fixes) [INFO] [stderr] Fixed src/daynine.rs (2 fixes) [INFO] [stderr] Fixed src/dayeight.rs (1 fix) [INFO] [stderr] Fixed src/dayseven.rs (2 fixes) [INFO] [stderr] Fixed src/main.rs (3 fixes) [INFO] [stderr] Fixed src/daythree.rs (2 fixes) [INFO] [stderr] Fixed src/dayeleven.rs (1 fix) [INFO] [stdout] warning: type `Seed_range` should have an upper camel case name [INFO] [stdout] --> src/dayfive.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct Seed_range { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `SeedRange` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `search_list` is never read [INFO] [stdout] --> src/daythree.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | search_list = HashSet::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `potential_num` is never read [INFO] [stdout] --> src/daythree.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | potential_num = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/dayfive.rs:118:38 [INFO] [stdout] | [INFO] [stdout] 118 | .unwrap_or_else(|z| panic!("error parsing int in parse_map")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/daysix.rs:28:22 [INFO] [stdout] | [INFO] [stdout] 28 | .fold(0, |x, y| x + 1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayseven.rs:92:55 [INFO] [stdout] | [INFO] [stdout] 92 | let mut vectorized = parsed.into_iter().map(|(x, y)| y).collect::>(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `all_zero` [INFO] [stdout] --> src/daynine.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let all_zero = false; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_all_zero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dayten.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | _ => panic!("Error in traverse") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/dayten.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 22 | Direction::Up => newCoords = (self.row - 1,self.col), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 23 | Direction::Down => newCoords = (self.row + 1, self.col), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 24 | Direction::Left => newCoords = (self.row, self.col - 1), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 25 | Direction::Right => newCoords = (self.row, self.col + 1), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 26 | _ => panic!("Error in traverse") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `newCoords` is never read [INFO] [stdout] --> src/dayten.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut newCoords = (0, 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayten.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let x = match dir { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/dayten.rs:104:16 [INFO] [stdout] | [INFO] [stdout] 104 | for (j, col) in row.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayeleven.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | .filter(|(x, y)| !y.iter().any(|x| *x == '#')) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/dayeleven.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | for i in 0..num_rows_to_add { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_input` is never used [INFO] [stdout] --> src/main.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn parse_input(s: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `translate_number` is never used [INFO] [stdout] --> src/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn translate_number(word: &str) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MVals` is never used [INFO] [stdout] --> src/daythree.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum MVals { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/daythree.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl MVals { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 11 | fn new(c: char) -> MVals { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_matrix` is never used [INFO] [stdout] --> src/daythree.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn create_matrix(s: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_matrix` is never used [INFO] [stdout] --> src/daythree.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn parse_matrix(m: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/daythree.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | fn search( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `do_math` is never used [INFO] [stdout] --> src/dayfour.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Card<'_> { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | fn do_math(&self) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/dayfive.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | struct SeedMap<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 47 | name: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SeedMap` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Seed_range` is never constructed [INFO] [stdout] --> src/dayfive.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct Seed_range { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dayfive.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 56 | impl Seed_range { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 57 | fn new(l: i64, h: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dayfive.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 90 | impl SeedRange { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 91 | fn new(d: i64, s: i64, r: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_input` is never used [INFO] [stdout] --> src/daysix.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn parse_input(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `does_complete` is never used [INFO] [stdout] --> src/daysix.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn does_complete(speed: i64, time: i64, d: i64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute` is never used [INFO] [stdout] --> src/daysix.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn compute(t: i64, d: i64) -> i64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Hand` is never constructed [INFO] [stdout] --> src/dayseven.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Hand<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `parse` are never used [INFO] [stdout] --> src/dayseven.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 49 | impl<'a> Hand<'a> { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 50 | fn new(hand: &'a str, bet: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn parse(&self) -> HashMap { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HandType` is never used [INFO] [stdout] --> src/dayseven.rs:78:6 [INFO] [stdout] | [INFO] [stdout] 78 | enum HandType<'b> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_bet` are never used [INFO] [stdout] --> src/dayseven.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 89 | impl<'b> HandType<'b> { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 90 | fn new(s: Hand<'b>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn get_bet(&self) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_input` is never used [INFO] [stdout] --> src/dayseven.rs:121:4 [INFO] [stdout] | [INFO] [stdout] 121 | fn parse_input(s: &str) -> Hand { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traverse_graph` is never used [INFO] [stdout] --> src/dayeight.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn traverse_graph(instructions: &str, graph: &HashMap<&str, Node>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_diff` is never used [INFO] [stdout] --> src/daynine.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn get_diff(s: &Vec) -> Option>> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_last_sequence` is never used [INFO] [stdout] --> src/daynine.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn get_last_sequence(s: Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_first_sequence` is never used [INFO] [stdout] --> src/daynine.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn get_first_sequence(s: Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_data` is never used [INFO] [stdout] --> src/daynine.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn parse_data(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_matrix` is never used [INFO] [stdout] --> src/dayten.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn create_matrix(s: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pos` is never constructed [INFO] [stdout] --> src/dayten.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Pos { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `traverse` are never used [INFO] [stdout] --> src/dayten.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Pos { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 16 | fn new(row: usize, col: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn traverse(&self, dir: Direction) -> Pos { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/dayten.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/dayten.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_previous` are never used [INFO] [stdout] --> src/dayten.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl Node { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 47 | fn new(ch: char, enter: Pos, loc: Pos) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn from_previous(previous: &Node, matrix:&Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_start_coord` is never used [INFO] [stdout] --> src/dayten.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn find_start_coord(matrix: &Vec>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traverse_until_start` is never used [INFO] [stdout] --> src/dayten.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn traverse_until_start(n: Node, m: &Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_is_in` is never used [INFO] [stdout] --> src/dayten.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn check_is_in(n: &Node, border: &HashSet, m: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_pixel_in` is never used [INFO] [stdout] --> src/dayten.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn count_pixel_in(start: Node, m: &Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traverse_path` is never used [INFO] [stdout] --> src/dayten.rs:162:4 [INFO] [stdout] | [INFO] [stdout] 162 | fn traverse_path(first_start:Node, second_start:Node, matrix: &Vec>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pos` is never constructed [INFO] [stdout] --> src/dayeleven.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Pos { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_distance` are never used [INFO] [stdout] --> src/dayeleven.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Pos { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 9 | fn new(row: usize, col: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | fn get_distance(&self, other: &Pos) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transpose` is never used [INFO] [stdout] --> src/dayeleven.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn transpose(d: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_dot_lines_pos` is never used [INFO] [stdout] --> src/dayeleven.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn get_dot_lines_pos(matrix: &Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_rows` is never used [INFO] [stdout] --> src/dayeleven.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn add_rows(num_rows_to_add: usize, d: Vec>) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expand` is never used [INFO] [stdout] --> src/dayeleven.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn expand(s: &str) -> Vec> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_pos` is never used [INFO] [stdout] --> src/dayeleven.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn get_pos(m: &Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_differences` is never used [INFO] [stdout] --> src/dayeleven.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn get_differences(a: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_differences_part2` is never used [INFO] [stdout] --> src/dayeleven.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn get_differences_part2( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/read_data.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | file.read_to_string(&mut s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 8 | let _ = file.read_to_string(&mut s); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/daynine.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | while let Some(i) = get_diff(&res) { [INFO] [stdout] | ^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/daynine.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/daynine.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | while let Some(i) = get_diff(&res) { [INFO] [stdout] | ^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/daynine.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newCoords` should have a snake case name [INFO] [stdout] --> src/dayten.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut newCoords = (0, 0); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `new_coords` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_data` in this scope [INFO] [stdout] --> src/daythree.rs:134:16 [INFO] [stdout] | [INFO] [stdout] 134 | let data = read_data("input-3.txt"); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::read_data; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_data` in this scope [INFO] [stdout] --> src/daysix.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | let data = read_data("input-6.txt"); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::read_data; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `zip` in this scope [INFO] [stdout] --> src/daysix.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let r = zip(t, d) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use std::iter::zip; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `zip` in this scope [INFO] [stdout] --> src/daysix.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let r = zip(t, d) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use std::iter::zip; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_data` in this scope [INFO] [stdout] --> src/dayseven.rs:130:16 [INFO] [stdout] | [INFO] [stdout] 130 | let data = read_data("input-7.txt"); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::read_data; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_data` in this scope [INFO] [stdout] --> src/daynine.rs:77:16 [INFO] [stdout] | [INFO] [stdout] 77 | let data = read_data("input-9.txt"); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::read_data; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_data` in this scope [INFO] [stdout] --> src/daynine.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 91 | let data = read_data("input-9.txt"); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::read_data; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_data` in this scope [INFO] [stdout] --> src/dayten.rs:204:16 [INFO] [stdout] | [INFO] [stdout] 204 | let data = read_data("input-10.txt"); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::read_data; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_data` in this scope [INFO] [stdout] --> src/dayeleven.rs:112:16 [INFO] [stdout] | [INFO] [stdout] 112 | let data = read_data("input-11.txt"); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::read_data; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_data` in this scope [INFO] [stdout] --> src/dayeleven.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | let data = read_data("input-11.txt"); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 2 + use crate::read_data; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Seed_range` should have an upper camel case name [INFO] [stdout] --> src/dayfive.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | struct Seed_range { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `SeedRange` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `search_list` is never read [INFO] [stdout] --> src/daythree.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | search_list = HashSet::new(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `potential_num` is never read [INFO] [stdout] --> src/daythree.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | potential_num = vec![]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/dayfive.rs:118:38 [INFO] [stdout] | [INFO] [stdout] 118 | .unwrap_or_else(|z| panic!("error parsing int in parse_map")) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/dayfive.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | let mut a = 1..4; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dayfive.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut a = 1..4; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/dayfive.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | let mut b = 5i64..1_000_000_000_000; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/daysix.rs:28:22 [INFO] [stdout] | [INFO] [stdout] 28 | .fold(0, |x, y| x + 1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayseven.rs:92:55 [INFO] [stdout] | [INFO] [stdout] 92 | let mut vectorized = parsed.into_iter().map(|(x, y)| y).collect::>(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `all_zero` [INFO] [stdout] --> src/daynine.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let all_zero = false; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_all_zero` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/dayten.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | _ => panic!("Error in traverse") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/dayten.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 22 | Direction::Up => newCoords = (self.row - 1,self.col), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 23 | Direction::Down => newCoords = (self.row + 1, self.col), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 24 | Direction::Left => newCoords = (self.row, self.col - 1), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 25 | Direction::Right => newCoords = (self.row, self.col + 1), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 26 | _ => panic!("Error in traverse") [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `newCoords` is never read [INFO] [stdout] --> src/dayten.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut newCoords = (0, 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayten.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let x = match dir { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/dayten.rs:104:16 [INFO] [stdout] | [INFO] [stdout] 104 | for (j, col) in row.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/dayeleven.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | .filter(|(x, y)| !y.iter().any(|x| *x == '#')) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/dayeleven.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | for i in 0..num_rows_to_add { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-23` (bin "advent-of-code-23" test) due to 11 previous errors; 16 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "409e4d7d6f474e4d4a8bec876c9871fb087a0ed0995aa1d4dbf756edb7a25a8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "409e4d7d6f474e4d4a8bec876c9871fb087a0ed0995aa1d4dbf756edb7a25a8c", kill_on_drop: false }` [INFO] [stdout] 409e4d7d6f474e4d4a8bec876c9871fb087a0ed0995aa1d4dbf756edb7a25a8c