[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 try#1f308f12738d8cc40bb23bf0c8114b37c164bb49 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalept%2Fadventofcode2022" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/malept/adventofcode2022 on toolchain 1f308f12738d8cc40bb23bf0c8114b37c164bb49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "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-7-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" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking malept/adventofcode2022 against try#1f308f12738d8cc40bb23bf0c8114b37c164bb49 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalept%2Fadventofcode2022" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/malept/adventofcode2022 on toolchain 1f308f12738d8cc40bb23bf0c8114b37c164bb49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "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-7-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" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d4062af641800063ac2ebee7f4e0356ff828f15e353a8b77c6ef3b56c5bef0be [INFO] running `Command { std: "docker" "start" "-a" "d4062af641800063ac2ebee7f4e0356ff828f15e353a8b77c6ef3b56c5bef0be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4062af641800063ac2ebee7f4e0356ff828f15e353a8b77c6ef3b56c5bef0be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4062af641800063ac2ebee7f4e0356ff828f15e353a8b77c6ef3b56c5bef0be", kill_on_drop: false }` [INFO] [stdout] d4062af641800063ac2ebee7f4e0356ff828f15e353a8b77c6ef3b56c5bef0be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c00c0d075466f0aadce60aea14df69029b5b93ad8790332a245f60d242629cb [INFO] running `Command { std: "docker" "start" "-a" "3c00c0d075466f0aadce60aea14df69029b5b93ad8790332a245f60d242629cb", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking aho-corasick v0.7.20 [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: 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.57s [INFO] running `Command { std: "docker" "inspect" "3c00c0d075466f0aadce60aea14df69029b5b93ad8790332a245f60d242629cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c00c0d075466f0aadce60aea14df69029b5b93ad8790332a245f60d242629cb", kill_on_drop: false }` [INFO] [stdout] 3c00c0d075466f0aadce60aea14df69029b5b93ad8790332a245f60d242629cb