[INFO] cloning repository https://github.com/malept/adventofcode2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/malept/adventofcode2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalept%2Fadventofcode2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalept%2Fadventofcode2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2bcdef87402284202614f0bcbc5e61697acafadd [INFO] checking malept/adventofcode2022 against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalept%2Fadventofcode2022" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/malept/adventofcode2022 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/malept/adventofcode2022 [INFO] finished tweaking git repo https://github.com/malept/adventofcode2022 [INFO] tweaked toml for git repo https://github.com/malept/adventofcode2022 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/malept/adventofcode2022 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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded regex v1.7.0 [INFO] [stderr] Downloaded aho-corasick v0.7.20 [INFO] [stderr] Downloaded regex-syntax v0.6.28 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 96f79115866b67f0dff2d49c849207a138f8aa77c1464c1d75d73e39395a05f4 [INFO] running `Command { std: "docker" "start" "-a" "96f79115866b67f0dff2d49c849207a138f8aa77c1464c1d75d73e39395a05f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "96f79115866b67f0dff2d49c849207a138f8aa77c1464c1d75d73e39395a05f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96f79115866b67f0dff2d49c849207a138f8aa77c1464c1d75d73e39395a05f4", kill_on_drop: false }` [INFO] [stdout] 96f79115866b67f0dff2d49c849207a138f8aa77c1464c1d75d73e39395a05f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a52f338ac1c42012fa1b443b7a0d9b4630259294f662dd3a1f2a63ac8163c193 [INFO] running `Command { std: "docker" "start" "-a" "a52f338ac1c42012fa1b443b7a0d9b4630259294f662dd3a1f2a63ac8163c193", kill_on_drop: false }` [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking regex v1.7.0 [INFO] [stderr] Checking adventofcode2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `most_calories`, `parse_elf_calories`, and `total_top_three_calories` [INFO] [stdout] --> src/day1.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | use super::{most_calories, parse_elf_calories, total_top_three_calories}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/day5.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | for (idx, chunk) in s.chars().collect::>().chunks(4).enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Elf` is never constructed [INFO] [stdout] --> src/day1.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `total_calories` is never used [INFO] [stdout] --> src/day1.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Elf { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 7 | pub fn total_calories(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_elf_calories` is never used [INFO] [stdout] --> src/day1.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn parse_elf_calories(list: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_calories` is never used [INFO] [stdout] --> src/day1.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn most_calories(list: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_top_three_calories` is never used [INFO] [stdout] --> src/day1.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn total_top_three_calories(list: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXAMPLE_LIST` is never used [INFO] [stdout] --> src/day1.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | const EXAMPLE_LIST: &str = "1000 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `beats` and `beaten_by` are never used [INFO] [stdout] --> src/day2.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl RPS { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 11 | pub fn beats(&self) -> RPS { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn beaten_by(&self) -> RPS { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `determine_move` is never used [INFO] [stdout] --> src/day2.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl RPS { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 41 | pub fn determine_move(opponent: RPS, value: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OutcomeScore` is never used [INFO] [stdout] --> src/day2.rs:55:6 [INFO] [stdout] | [INFO] [stdout] 55 | enum OutcomeScore { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Strategy` is never constructed [INFO] [stdout] --> src/day2.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | struct Strategy { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `outcome` and `score` are never used [INFO] [stdout] --> src/day2.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 66 | impl Strategy { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 67 | fn outcome(&self) -> &OutcomeScore { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn score(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_strategy_guide` is never used [INFO] [stdout] --> src/day2.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn parse_strategy_guide(guide_lines: Vec) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `strategy_guide_total_score` is never used [INFO] [stdout] --> src/day2.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn strategy_guide_total_score(guide_lines: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STRATEGY_GUIDE` is never used [INFO] [stdout] --> src/day2.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | const STRATEGY_GUIDE: &str = "A Y [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `priority` is never used [INFO] [stdout] --> src/day3.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Item { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 7 | pub fn priority(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day3.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | struct Compartment(Vec); [INFO] [stdout] | ----------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_set` and `shared_items` are never used [INFO] [stdout] --> src/day3.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Compartment { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 23 | fn to_set(&self) -> HashSet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn shared_items(&self, other: &Compartment) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `both_compartments`, `first_compartment`, and `second_compartment` are never read [INFO] [stdout] --> src/day3.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | struct Rucksack { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 43 | pub both_compartments: Compartment, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | pub first_compartment: Compartment, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | pub second_compartment: Compartment, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `both_to_set` and `duplicates` are never used [INFO] [stdout] --> src/day3.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Rucksack { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 69 | pub fn both_to_set(&self) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn duplicates(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_rucksacks` is never used [INFO] [stdout] --> src/day3.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn parse_rucksacks(rucksack_lines: &Vec) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RucksackGroup` is never constructed [INFO] [stdout] --> src/day3.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | struct RucksackGroup(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `common_item` is never used [INFO] [stdout] --> src/day3.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl RucksackGroup { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 92 | pub fn common_item(&self) -> Item { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_rucksack_groups` is never used [INFO] [stdout] --> src/day3.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | fn parse_rucksack_groups(rucksack_lines: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `duplicate_priority_sum` is never used [INFO] [stdout] --> src/day3.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn duplicate_priority_sum(rucksack_lines: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `common_item_priority_sum` is never used [INFO] [stdout] --> src/day3.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn common_item_priority_sum(rucksack_lines: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RUCKSACKS` is never used [INFO] [stdout] --> src/day3.rs:144:11 [INFO] [stdout] | [INFO] [stdout] 144 | const RUCKSACKS: &str = "vJrwpWtwJgWrhcsFMMfFFhFp [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `first` and `second` are never read [INFO] [stdout] --> src/day4.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | struct AssignmentPair { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 38 | first: Assignment, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | second: Assignment, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `smallest_assignment`, `sizes_equal`, `smallest_is_subset`, and `overlaps` are never used [INFO] [stdout] --> src/day4.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl AssignmentPair { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 54 | fn smallest_assignment(&self) -> &Assignment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn sizes_equal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn smallest_is_subset(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn overlaps(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_assignment_pairs` is never used [INFO] [stdout] --> src/day4.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn parse_assignment_pairs(lines: &Vec) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `full_subset_assignment_pairs_count` is never used [INFO] [stdout] --> src/day4.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn full_subset_assignment_pairs_count(lines: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `any_overlap_assignment_pairs_count` is never used [INFO] [stdout] --> src/day4.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn any_overlap_assignment_pairs_count(lines: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSIGNMENTS` is never used [INFO] [stdout] --> src/day4.rs:111:11 [INFO] [stdout] | [INFO] [stdout] 111 | const ASSIGNMENTS: &str = "2-4,6-8 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day5.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | struct Crate(char); [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Crate` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day5.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | struct Stacks(HashMap); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_crates`, `follow_instructions`, `ordered`, and `top_crates` are never used [INFO] [stdout] --> src/day5.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl Stacks { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 35 | fn move_crates(&mut self, count: usize, from_id: u32, to_id: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn follow_instructions(&mut self, instructions: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn ordered(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn top_crates(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_instructions` is never used [INFO] [stdout] --> src/day5.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn parse_instructions(manual: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `top_stacked_crates` is never used [INFO] [stdout] --> src/day5.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn top_stacked_crates(stacks_and_instructions: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CRATES` is never used [INFO] [stdout] --> src/day5.rs:196:11 [INFO] [stdout] | [INFO] [stdout] 196 | const CRATES: &str = " [D] \n[N] [C] \n[Z] [M] [P]\n 1 2 3 \n [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNAL1` is never used [INFO] [stdout] --> src/day6.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | const SIGNAL1: &str = "mjqjpqmgbljsphdztnvjfqwrcgsmlb"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNAL2` is never used [INFO] [stdout] --> src/day6.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | const SIGNAL2: &str = "bvwbjplbgvbhsrlpgdmjqwftvncz"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNAL3` is never used [INFO] [stdout] --> src/day6.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | const SIGNAL3: &str = "nppdvjthqldpwncqszvftbrmjlhg"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNAL4` is never used [INFO] [stdout] --> src/day6.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | const SIGNAL4: &str = "nznrnfrfntjfmvfwmzdfjlvtqnbhcprsg"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNAL5` is never used [INFO] [stdout] --> src/day6.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | const SIGNAL5: &str = "zcfzfwzzqfrljwzlrfnpqdbhtmscgvjw"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lines_for_file` is never used [INFO] [stdout] --> src/util.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn lines_for_file(path: PathBuf) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testcase_to_input` is never used [INFO] [stdout] --> src/util.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn testcase_to_input(testcase: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/day5.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | for (idx, chunk) in s.chars().collect::>().chunks(4).enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lines_for_file` is never used [INFO] [stdout] --> src/util.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn lines_for_file(path: PathBuf) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.72s [INFO] running `Command { std: "docker" "inspect" "a52f338ac1c42012fa1b443b7a0d9b4630259294f662dd3a1f2a63ac8163c193", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a52f338ac1c42012fa1b443b7a0d9b4630259294f662dd3a1f2a63ac8163c193", kill_on_drop: false }` [INFO] [stdout] a52f338ac1c42012fa1b443b7a0d9b4630259294f662dd3a1f2a63ac8163c193 [INFO] checking malept/adventofcode2022 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%2Fmalept%2Fadventofcode2022" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/malept/adventofcode2022 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/malept/adventofcode2022 [INFO] finished tweaking git repo https://github.com/malept/adventofcode2022 [INFO] tweaked toml for git repo https://github.com/malept/adventofcode2022 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/malept/adventofcode2022 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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bd62c71375a8c6eb92caca916facf3e2e879480d024e8b13a78e75e594cc9b66 [INFO] running `Command { std: "docker" "start" "-a" "bd62c71375a8c6eb92caca916facf3e2e879480d024e8b13a78e75e594cc9b66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bd62c71375a8c6eb92caca916facf3e2e879480d024e8b13a78e75e594cc9b66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd62c71375a8c6eb92caca916facf3e2e879480d024e8b13a78e75e594cc9b66", kill_on_drop: false }` [INFO] [stdout] bd62c71375a8c6eb92caca916facf3e2e879480d024e8b13a78e75e594cc9b66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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] e1ee8fd90ae4d2089df9757c230e8c4a9ac684e60f4c820a4b7655ffdd27b3c9 [INFO] running `Command { std: "docker" "start" "-a" "e1ee8fd90ae4d2089df9757c230e8c4a9ac684e60f4c820a4b7655ffdd27b3c9", kill_on_drop: false }` [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking regex v1.7.0 [INFO] [stderr] Checking adventofcode2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `most_calories`, `parse_elf_calories`, and `total_top_three_calories` [INFO] [stdout] --> src/day1.rs:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | use super::{most_calories, parse_elf_calories, total_top_three_calories}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/day5.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | for (idx, chunk) in s.chars().collect::>().chunks(4).enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Elf` is never constructed [INFO] [stdout] --> src/day1.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Elf { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `total_calories` is never used [INFO] [stdout] --> src/day1.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Elf { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 7 | pub fn total_calories(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_elf_calories` is never used [INFO] [stdout] --> src/day1.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn parse_elf_calories(list: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `most_calories` is never used [INFO] [stdout] --> src/day1.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn most_calories(list: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_top_three_calories` is never used [INFO] [stdout] --> src/day1.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn total_top_three_calories(list: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXAMPLE_LIST` is never used [INFO] [stdout] --> src/day1.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | const EXAMPLE_LIST: &str = "1000 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `beats` and `beaten_by` are never used [INFO] [stdout] --> src/day2.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl RPS { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 11 | pub fn beats(&self) -> RPS { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn beaten_by(&self) -> RPS { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `determine_move` is never used [INFO] [stdout] --> src/day2.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl RPS { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 41 | pub fn determine_move(opponent: RPS, value: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OutcomeScore` is never used [INFO] [stdout] --> src/day2.rs:55:6 [INFO] [stdout] | [INFO] [stdout] 55 | enum OutcomeScore { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Strategy` is never constructed [INFO] [stdout] --> src/day2.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | struct Strategy { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `outcome` and `score` are never used [INFO] [stdout] --> src/day2.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 66 | impl Strategy { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 67 | fn outcome(&self) -> &OutcomeScore { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn score(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_strategy_guide` is never used [INFO] [stdout] --> src/day2.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn parse_strategy_guide(guide_lines: Vec) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `strategy_guide_total_score` is never used [INFO] [stdout] --> src/day2.rs:94:8 [INFO] [stdout] | [INFO] [stdout] 94 | pub fn strategy_guide_total_score(guide_lines: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STRATEGY_GUIDE` is never used [INFO] [stdout] --> src/day2.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | const STRATEGY_GUIDE: &str = "A Y [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `priority` is never used [INFO] [stdout] --> src/day3.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Item { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 7 | pub fn priority(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day3.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | struct Compartment(Vec); [INFO] [stdout] | ----------- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_set` and `shared_items` are never used [INFO] [stdout] --> src/day3.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Compartment { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 23 | fn to_set(&self) -> HashSet { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn shared_items(&self, other: &Compartment) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `both_compartments`, `first_compartment`, and `second_compartment` are never read [INFO] [stdout] --> src/day3.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 42 | struct Rucksack { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 43 | pub both_compartments: Compartment, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | pub first_compartment: Compartment, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | pub second_compartment: Compartment, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `both_to_set` and `duplicates` are never used [INFO] [stdout] --> src/day3.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Rucksack { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 69 | pub fn both_to_set(&self) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn duplicates(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_rucksacks` is never used [INFO] [stdout] --> src/day3.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn parse_rucksacks(rucksack_lines: &Vec) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RucksackGroup` is never constructed [INFO] [stdout] --> src/day3.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | struct RucksackGroup(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `common_item` is never used [INFO] [stdout] --> src/day3.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl RucksackGroup { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 92 | pub fn common_item(&self) -> Item { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_rucksack_groups` is never used [INFO] [stdout] --> src/day3.rs:110:4 [INFO] [stdout] | [INFO] [stdout] 110 | fn parse_rucksack_groups(rucksack_lines: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `duplicate_priority_sum` is never used [INFO] [stdout] --> src/day3.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn duplicate_priority_sum(rucksack_lines: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `common_item_priority_sum` is never used [INFO] [stdout] --> src/day3.rs:136:8 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn common_item_priority_sum(rucksack_lines: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RUCKSACKS` is never used [INFO] [stdout] --> src/day3.rs:144:11 [INFO] [stdout] | [INFO] [stdout] 144 | const RUCKSACKS: &str = "vJrwpWtwJgWrhcsFMMfFFhFp [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `first` and `second` are never read [INFO] [stdout] --> src/day4.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | struct AssignmentPair { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 38 | first: Assignment, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 39 | second: Assignment, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `smallest_assignment`, `sizes_equal`, `smallest_is_subset`, and `overlaps` are never used [INFO] [stdout] --> src/day4.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl AssignmentPair { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] 54 | fn smallest_assignment(&self) -> &Assignment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn sizes_equal(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn smallest_is_subset(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn overlaps(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_assignment_pairs` is never used [INFO] [stdout] --> src/day4.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn parse_assignment_pairs(lines: &Vec) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `full_subset_assignment_pairs_count` is never used [INFO] [stdout] --> src/day4.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn full_subset_assignment_pairs_count(lines: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `any_overlap_assignment_pairs_count` is never used [INFO] [stdout] --> src/day4.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn any_overlap_assignment_pairs_count(lines: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSIGNMENTS` is never used [INFO] [stdout] --> src/day4.rs:111:11 [INFO] [stdout] | [INFO] [stdout] 111 | const ASSIGNMENTS: &str = "2-4,6-8 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day5.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | struct Crate(char); [INFO] [stdout] | ----- ^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Crate` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day5.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | struct Stacks(HashMap); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_crates`, `follow_instructions`, `ordered`, and `top_crates` are never used [INFO] [stdout] --> src/day5.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl Stacks { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 35 | fn move_crates(&mut self, count: usize, from_id: u32, to_id: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn follow_instructions(&mut self, instructions: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn ordered(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn top_crates(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_instructions` is never used [INFO] [stdout] --> src/day5.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn parse_instructions(manual: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `top_stacked_crates` is never used [INFO] [stdout] --> src/day5.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn top_stacked_crates(stacks_and_instructions: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CRATES` is never used [INFO] [stdout] --> src/day5.rs:196:11 [INFO] [stdout] | [INFO] [stdout] 196 | const CRATES: &str = " [D] \n[N] [C] \n[Z] [M] [P]\n 1 2 3 \n [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNAL1` is never used [INFO] [stdout] --> src/day6.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | const SIGNAL1: &str = "mjqjpqmgbljsphdztnvjfqwrcgsmlb"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNAL2` is never used [INFO] [stdout] --> src/day6.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | const SIGNAL2: &str = "bvwbjplbgvbhsrlpgdmjqwftvncz"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNAL3` is never used [INFO] [stdout] --> src/day6.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | const SIGNAL3: &str = "nppdvjthqldpwncqszvftbrmjlhg"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNAL4` is never used [INFO] [stdout] --> src/day6.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | const SIGNAL4: &str = "nznrnfrfntjfmvfwmzdfjlvtqnbhcprsg"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIGNAL5` is never used [INFO] [stdout] --> src/day6.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | const SIGNAL5: &str = "zcfzfwzzqfrljwzlrfnpqdbhtmscgvjw"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lines_for_file` is never used [INFO] [stdout] --> src/util.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn lines_for_file(path: PathBuf) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testcase_to_input` is never used [INFO] [stdout] --> src/util.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn testcase_to_input(testcase: &str) -> Vec { [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/util.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | let f = File::open(path)?; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 7 | Ok(BufReader::new(f)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/util.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | let reader = buffered_file(path)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 17 | Ok(reader [INFO] [stdout] | ________^ [INFO] [stdout] 18 | | .lines() [INFO] [stdout] 19 | | .map(|line| line.expect("line contains invalid UTF-8")) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_______________________________________________________________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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 2 previous errors; 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `adventofcode2022` (bin "adventofcode2022") due to 3 previous errors; 47 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/day5.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | for (idx, chunk) in s.chars().collect::>().chunks(4).enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lines_for_file` is never used [INFO] [stdout] --> src/util.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn lines_for_file(path: PathBuf) -> std::io::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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/util.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | let f = File::open(path)?; [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 7 | Ok(BufReader::new(f)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/util.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | let reader = buffered_file(path)?; [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 17 | Ok(reader [INFO] [stdout] | ________^ [INFO] [stdout] 18 | | .lines() [INFO] [stdout] 19 | | .map(|line| line.expect("line contains invalid UTF-8")) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_______________________________________________________________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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 2 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `adventofcode2022` (bin "adventofcode2022" test) due to 3 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e1ee8fd90ae4d2089df9757c230e8c4a9ac684e60f4c820a4b7655ffdd27b3c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1ee8fd90ae4d2089df9757c230e8c4a9ac684e60f4c820a4b7655ffdd27b3c9", kill_on_drop: false }` [INFO] [stdout] e1ee8fd90ae4d2089df9757c230e8c4a9ac684e60f4c820a4b7655ffdd27b3c9