[INFO] cloning repository https://github.com/savekirk/advent-of-code-2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/savekirk/advent-of-code-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavekirk%2Fadvent-of-code-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavekirk%2Fadvent-of-code-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f19ee934c4070740b98533ee35a2f6746fb8ad75 [INFO] checking savekirk/advent-of-code-2022 against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavekirk%2Fadvent-of-code-2022" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/savekirk/advent-of-code-2022 on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/savekirk/advent-of-code-2022 [INFO] finished tweaking git repo https://github.com/savekirk/advent-of-code-2022 [INFO] tweaked toml for git repo https://github.com/savekirk/advent-of-code-2022 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/savekirk/advent-of-code-2022 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4da90ee531a47d44314ff49c99c474d1ea1321b8d467550c2feea6b8bf93cebb [INFO] running `Command { std: "docker" "start" "-a" "4da90ee531a47d44314ff49c99c474d1ea1321b8d467550c2feea6b8bf93cebb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4da90ee531a47d44314ff49c99c474d1ea1321b8d467550c2feea6b8bf93cebb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4da90ee531a47d44314ff49c99c474d1ea1321b8d467550c2feea6b8bf93cebb", kill_on_drop: false }` [INFO] [stdout] 4da90ee531a47d44314ff49c99c474d1ea1321b8d467550c2feea6b8bf93cebb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d32c4655ee77781fcea2e2ef7463901d9a6abfc3324b12bf8d79d84de79072a1 [INFO] running `Command { std: "docker" "start" "-a" "d32c4655ee77781fcea2e2ef7463901d9a6abfc3324b12bf8d79d84de79072a1", kill_on_drop: false }` [INFO] [stderr] Checking advent-of-code-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `HashMap` and `format` [INFO] [stdout] --> src/days/seven.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{HashMap, VecDeque}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | fmt::{self, format}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `format` [INFO] [stdout] --> src/days/seven.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{HashMap, VecDeque}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | fmt::{self, format}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/days/seven.rs:220:15 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_chars` is never used [INFO] [stdout] --> src/days/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn line_to_chars(line: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_int` is never used [INFO] [stdout] --> src/days/utils.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn line_to_int(line: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Elf` is never constructed [INFO] [stdout] --> src/days/one.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update_calory` are never used [INFO] [stdout] --> src/days/one.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Elf { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 9 | fn new(id: i32) -> Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn update_calory(&mut self, calory: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/one.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/one.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/days/seven.rs:220:15 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_elves` is never used [INFO] [stdout] --> src/days/one.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_elves(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Strategy` is never constructed [INFO] [stdout] --> src/days/two.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Strategy { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `outcome_score`, `to_play`, `score`, and `part_2_score` are never used [INFO] [stdout] --> src/days/two.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Strategy { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 39 | fn new(opponent: char, you: char) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn outcome_score(self, is_part_1: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn to_play(self, is_part_1: bool) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn score(self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn part_2_score(self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/two.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/two.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_strategies` is never used [INFO] [stdout] --> src/days/two.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn get_strategies(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/three.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/three.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_set` is never used [INFO] [stdout] --> src/days/three.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn to_set(li: &mut Option<&String>) -> HashSet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priority` is never used [INFO] [stdout] --> src/days/three.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn priority(c: char) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/four.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/four.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_set` is never used [INFO] [stdout] --> src/days/four.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn to_set(section: &str) -> HashSet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/five.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/five.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn part_2(lines: Vec) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_creates` is never used [INFO] [stdout] --> src/days/five.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn move_creates(lines: Vec, can_move_multiple: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/six.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/six.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn part_2(lines: Vec) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `char_before_marker` is never used [INFO] [stdout] --> src/days/six.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn char_before_marker(line: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/seven.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_chars` is never used [INFO] [stdout] --> src/days/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn line_to_chars(line: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_int` is never used [INFO] [stdout] --> src/days/utils.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn line_to_int(line: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Elf` is never constructed [INFO] [stdout] --> src/days/one.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update_calory` are never used [INFO] [stdout] --> src/days/one.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Elf { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 9 | fn new(id: i32) -> Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn update_calory(&mut self, calory: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/one.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/one.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_elves` is never used [INFO] [stdout] --> src/days/one.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_elves(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Strategy` is never constructed [INFO] [stdout] --> src/days/two.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Strategy { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `outcome_score`, `to_play`, `score`, and `part_2_score` are never used [INFO] [stdout] --> src/days/two.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Strategy { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 39 | fn new(opponent: char, you: char) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn outcome_score(self, is_part_1: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn to_play(self, is_part_1: bool) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn score(self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn part_2_score(self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/two.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/two.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_strategies` is never used [INFO] [stdout] --> src/days/two.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn get_strategies(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/three.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/three.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_set` is never used [INFO] [stdout] --> src/days/three.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn to_set(li: &mut Option<&String>) -> HashSet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priority` is never used [INFO] [stdout] --> src/days/three.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn priority(c: char) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/four.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/four.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_set` is never used [INFO] [stdout] --> src/days/four.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn to_set(section: &str) -> HashSet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/five.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/five.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn part_2(lines: Vec) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_creates` is never used [INFO] [stdout] --> src/days/five.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn move_creates(lines: Vec, can_move_multiple: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/six.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/six.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn part_2(lines: Vec) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `char_before_marker` is never used [INFO] [stdout] --> src/days/six.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn char_before_marker(line: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/seven.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "d32c4655ee77781fcea2e2ef7463901d9a6abfc3324b12bf8d79d84de79072a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d32c4655ee77781fcea2e2ef7463901d9a6abfc3324b12bf8d79d84de79072a1", kill_on_drop: false }` [INFO] [stdout] d32c4655ee77781fcea2e2ef7463901d9a6abfc3324b12bf8d79d84de79072a1 [INFO] checking savekirk/advent-of-code-2022 against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsavekirk%2Fadvent-of-code-2022" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/savekirk/advent-of-code-2022 on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/savekirk/advent-of-code-2022 [INFO] finished tweaking git repo https://github.com/savekirk/advent-of-code-2022 [INFO] tweaked toml for git repo https://github.com/savekirk/advent-of-code-2022 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/savekirk/advent-of-code-2022 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d113cf6ccef6c16f13c33fb50d6e1c1124e847d7f35c9ef3b90a1e996d55df0 [INFO] running `Command { std: "docker" "start" "-a" "3d113cf6ccef6c16f13c33fb50d6e1c1124e847d7f35c9ef3b90a1e996d55df0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d113cf6ccef6c16f13c33fb50d6e1c1124e847d7f35c9ef3b90a1e996d55df0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d113cf6ccef6c16f13c33fb50d6e1c1124e847d7f35c9ef3b90a1e996d55df0", kill_on_drop: false }` [INFO] [stdout] 3d113cf6ccef6c16f13c33fb50d6e1c1124e847d7f35c9ef3b90a1e996d55df0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef082cefbd7af4877ab0f8261b83f8dad78c6aed0630065ac80217c9b2fcd412 [INFO] running `Command { std: "docker" "start" "-a" "ef082cefbd7af4877ab0f8261b83f8dad78c6aed0630065ac80217c9b2fcd412", kill_on_drop: false }` [INFO] [stderr] Checking advent-of-code-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `HashMap` and `format` [INFO] [stdout] --> src/days/seven.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{HashMap, VecDeque}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | fmt::{self, format}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `format` [INFO] [stdout] --> src/days/seven.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | collections::{HashMap, VecDeque}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 4 | fmt::{self, format}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/days/seven.rs:220:15 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_chars` is never used [INFO] [stdout] --> src/days/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn line_to_chars(line: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_int` is never used [INFO] [stdout] --> src/days/utils.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn line_to_int(line: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Elf` is never constructed [INFO] [stdout] --> src/days/one.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update_calory` are never used [INFO] [stdout] --> src/days/one.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Elf { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 9 | fn new(id: i32) -> Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn update_calory(&mut self, calory: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/one.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lines` [INFO] [stdout] --> src/days/seven.rs:220:15 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/one.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_elves` is never used [INFO] [stdout] --> src/days/one.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_elves(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Strategy` is never constructed [INFO] [stdout] --> src/days/two.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Strategy { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `outcome_score`, `to_play`, `score`, and `part_2_score` are never used [INFO] [stdout] --> src/days/two.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Strategy { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 39 | fn new(opponent: char, you: char) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn outcome_score(self, is_part_1: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn to_play(self, is_part_1: bool) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn score(self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn part_2_score(self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/two.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/two.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_strategies` is never used [INFO] [stdout] --> src/days/two.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn get_strategies(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/three.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/three.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_set` is never used [INFO] [stdout] --> src/days/three.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn to_set(li: &mut Option<&String>) -> HashSet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priority` is never used [INFO] [stdout] --> src/days/three.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn priority(c: char) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/four.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/four.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_set` is never used [INFO] [stdout] --> src/days/four.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn to_set(section: &str) -> HashSet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/five.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/five.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn part_2(lines: Vec) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_creates` is never used [INFO] [stdout] --> src/days/five.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn move_creates(lines: Vec, can_move_multiple: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/six.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/six.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn part_2(lines: Vec) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `char_before_marker` is never used [INFO] [stdout] --> src/days/six.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn char_before_marker(line: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/seven.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 113 | let file = File::open(format!("input/day{}.txt", day)).expect("Error opening file"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 114 | / io::BufReader::new(file) [INFO] [stdout] 115 | | .lines() [INFO] [stdout] 116 | | .map(|l| l.unwrap()) [INFO] [stdout] | |____________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/days/four.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 7 | .and_then(|(s1, s2)| Some((to_set(s1), to_set(s2)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/days/four.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 20 | .and_then(|(s1, s2)| Some((to_set(s1), to_set(s2)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/days/seven.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | .and_then(|d| Some(d.borrow().parent_id())) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_chars` is never used [INFO] [stdout] --> src/days/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn line_to_chars(line: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_int` is never used [INFO] [stdout] --> src/days/utils.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn line_to_int(line: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Elf` is never constructed [INFO] [stdout] --> src/days/one.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update_calory` are never used [INFO] [stdout] --> src/days/one.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Elf { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 9 | fn new(id: i32) -> Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn update_calory(&mut self, calory: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/one.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/one.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_elves` is never used [INFO] [stdout] --> src/days/one.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn get_elves(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Strategy` is never constructed [INFO] [stdout] --> src/days/two.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct Strategy { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `outcome_score`, `to_play`, `score`, and `part_2_score` are never used [INFO] [stdout] --> src/days/two.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Strategy { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 39 | fn new(opponent: char, you: char) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn outcome_score(self, is_part_1: bool) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn to_play(self, is_part_1: bool) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn score(self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn part_2_score(self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/two.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/two.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_strategies` is never used [INFO] [stdout] --> src/days/two.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn get_strategies(lines: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/three.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/three.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_set` is never used [INFO] [stdout] --> src/days/three.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn to_set(li: &mut Option<&String>) -> HashSet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `priority` is never used [INFO] [stdout] --> src/days/three.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn priority(c: char) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/four.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/four.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_set` is never used [INFO] [stdout] --> src/days/four.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn to_set(section: &str) -> HashSet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/five.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/five.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn part_2(lines: Vec) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_creates` is never used [INFO] [stdout] --> src/days/five.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn move_creates(lines: Vec, can_move_multiple: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/days/six.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn part_1(lines: Vec) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/six.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn part_2(lines: Vec) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `char_before_marker` is never used [INFO] [stdout] --> src/days/six.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn char_before_marker(line: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_2` is never used [INFO] [stdout] --> src/days/seven.rs:220:8 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn part_2(lines: Vec) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 113 | let file = File::open(format!("input/day{}.txt", day)).expect("Error opening file"); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 114 | / io::BufReader::new(file) [INFO] [stdout] 115 | | .lines() [INFO] [stdout] 116 | | .map(|l| l.unwrap()) [INFO] [stdout] | |____________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/days/four.rs:7:39 [INFO] [stdout] | [INFO] [stdout] 7 | .and_then(|(s1, s2)| Some((to_set(s1), to_set(s2)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/days/four.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 20 | .and_then(|(s1, s2)| Some((to_set(s1), to_set(s2)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/days/seven.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | .and_then(|d| Some(d.borrow().parent_id())) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2022` (bin "advent-of-code-2022") due to 5 previous errors; 28 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `advent-of-code-2022` (bin "advent-of-code-2022" test) due to 5 previous errors; 28 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ef082cefbd7af4877ab0f8261b83f8dad78c6aed0630065ac80217c9b2fcd412", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef082cefbd7af4877ab0f8261b83f8dad78c6aed0630065ac80217c9b2fcd412", kill_on_drop: false }` [INFO] [stdout] ef082cefbd7af4877ab0f8261b83f8dad78c6aed0630065ac80217c9b2fcd412