[INFO] cloning repository https://github.com/codicocodes/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/codicocodes/advent-of-code-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodicocodes%2Fadvent-of-code-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodicocodes%2Fadvent-of-code-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed5dcaa16d1bba18cc939ab6876f8a6cc454945e [INFO] testing codicocodes/advent-of-code-2022 against 1.98.0-beta.1 for beta-1.98-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodicocodes%2Fadvent-of-code-2022" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/codicocodes/advent-of-code-2022 [INFO] finished tweaking git repo https://github.com/codicocodes/advent-of-code-2022 [INFO] tweaked toml for git repo https://github.com/codicocodes/advent-of-code-2022 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/codicocodes/advent-of-code-2022 on toolchain 1.98.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/codicocodes/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" "+1.98.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828 [INFO] running `Command { std: "docker" "start" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `parse_calories_by_elf` is never used [INFO] [stdout] --> src/days/day01.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_calories_by_elf(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_max_calories` is never used [INFO] [stdout] --> src/days/day01.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn calculate_max_calories(calories: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_top3_calories` is never used [INFO] [stdout] --> src/days/day01.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn calculate_top3_calories(mut calories: Vec) -> i32 { calories.sort(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day01.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn solve_a(input: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_b` is never used [INFO] [stdout] --> src/days/day01.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn solve_b(input: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day01.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn solve(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day02.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn solve_a(input: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_b` is never used [INFO] [stdout] --> src/days/day02.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn solve_b(input: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day02.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn solve(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HandShape` is never used [INFO] [stdout] --> src/days/day02.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 20 | enum HandShape { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `value` and `beats` are never used [INFO] [stdout] --> src/days/day02.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl HandShape { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 27 | fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn beats(&self) -> HandShape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MatchOutcome` is never used [INFO] [stdout] --> src/days/day02.rs:46:6 [INFO] [stdout] | [INFO] [stdout] 46 | enum MatchOutcome { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/days/day02.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 52 | impl MatchOutcome { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 53 | fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_match_outcome` is never used [INFO] [stdout] --> src/days/day02.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn get_match_outcome(my_hand: HandShape, opponents_hand: HandShape) -> MatchOutcome { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_hand` is never used [INFO] [stdout] --> src/days/day02.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn play_hand(my_hand: HandShape, opponents_hand: HandShape) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_all_hands` is never used [INFO] [stdout] --> src/days/day02.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn play_all_hands(hand_pairs: Vec<(HandShape, HandShape)>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_hand` is never used [INFO] [stdout] --> src/days/day02.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn get_hand(code: &str) -> HandShape { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_expected_result` is never used [INFO] [stdout] --> src/days/day02.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn get_expected_result(code: &str) -> MatchOutcome { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_hand_from_expected_result` is never used [INFO] [stdout] --> src/days/day02.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn get_hand_from_expected_result(opponents_hand: HandShape, outcome: MatchOutcome) -> HandShape { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_all_hands` is never used [INFO] [stdout] --> src/days/day02.rs:114:4 [INFO] [stdout] | [INFO] [stdout] 114 | fn parse_all_hands(input: &str) -> Vec<(HandShape, HandShape)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_all_hands_b` is never used [INFO] [stdout] --> src/days/day02.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | fn parse_all_hands_b(input: &str) -> Vec<(HandShape, HandShape)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day03.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Casing` is never used [INFO] [stdout] --> src/days/day03.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum Casing { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `offset` is never used [INFO] [stdout] --> src/days/day03.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Casing { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 17 | fn offset(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_item_priority` is never used [INFO] [stdout] --> src/days/day03.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_item_priority(item_code: char) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_suitcase` is never used [INFO] [stdout] --> src/days/day03.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn split_suitcase(suitcase: &str) -> (&str, &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_group_badge` is never used [INFO] [stdout] --> src/days/day03.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_group_badge(suitcases: Vec>) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_items_in_both_compartments` is never used [INFO] [stdout] --> src/days/day03.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn get_items_in_both_compartments(suitcase: &str) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_suitcase_priority` is never used [INFO] [stdout] --> src/days/day03.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn calculate_suitcase_priority(suitcase: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_total_priority` is never used [INFO] [stdout] --> src/days/day03.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn calculate_total_priority(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_badge_priority_for_group` is never used [INFO] [stdout] --> src/days/day03.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn calculate_badge_priority_for_group(group_input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_total_badge_priority` is never used [INFO] [stdout] --> src/days/day03.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn calculate_total_badge_priority(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day04.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn solve(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AssignedSections` is never constructed [INFO] [stdout] --> src/days/day04.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct AssignedSections { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `contains` and `overlaps` are never used [INFO] [stdout] --> src/days/day04.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl AssignedSections { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 15 | fn contains(&self, sections: AssignedSections) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn overlaps(&self, sections: AssignedSections) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_section_from_string` is never used [INFO] [stdout] --> src/days/day04.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn new_section_from_string(section_input: &str) -> AssignedSections { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_assignment_pair` is never used [INFO] [stdout] --> src/days/day04.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn compare_assignment_pair(section_input: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_assignment_pair_overlap` is never used [INFO] [stdout] --> src/days/day04.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn compare_assignment_pair_overlap(section_input: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_all_assignment_pair_overlap` is never used [INFO] [stdout] --> src/days/day04.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn compare_all_assignment_pair_overlap(pairs_input: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_all_assignment_pairs` is never used [INFO] [stdout] --> src/days/day04.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn compare_all_assignment_pairs(pairs_input: &str) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day05.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn solve(input: &str){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Instruction` is never constructed [INFO] [stdout] --> src/days/day05.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | struct Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_instruction` is never used [INFO] [stdout] --> src/days/day05.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn parse_instruction(instruction_input: &str) -> Instruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_many_instructions` is never used [INFO] [stdout] --> src/days/day05.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn parse_many_instructions(instruction_input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `debug_print_stacks` is never used [INFO] [stdout] --> src/days/day05.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn debug_print_stacks(stacks: Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_stacks` is never used [INFO] [stdout] --> src/days/day05.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn parse_stacks(stacks_input: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day06.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn solve(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_message` is never used [INFO] [stdout] --> src/days/day06.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn find_message(codes: &[u8], unique_length: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day06.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn solve_a(input: &str) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_b` is never used [INFO] [stdout] --> src/days/day06.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn solve_b(input: &str) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.68s [INFO] running `Command { std: "docker" "inspect" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code-2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day01.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn solve_a(input: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_b` is never used [INFO] [stdout] --> src/days/day01.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn solve_b(input: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day01.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn solve(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_a` is never used [INFO] [stdout] --> src/days/day02.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn solve_a(input: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_b` is never used [INFO] [stdout] --> src/days/day02.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn solve_b(input: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day02.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn solve(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day03.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn solve(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day04.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn solve(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day05.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn solve(input: &str){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `text` is never read [INFO] [stdout] --> src/days/day05.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | struct Instruction { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 33 | text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Instruction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_many_instructions` is never used [INFO] [stdout] --> src/days/day05.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn parse_many_instructions(instruction_input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/days/day06.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn solve(input: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.37s [INFO] running `Command { std: "docker" "inspect" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.1" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] warning: function `solve_a` is never used [INFO] [stderr] --> src/days/day01.rs:35:8 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn solve_a(input: &str) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `solve_b` is never used [INFO] [stderr] --> src/days/day01.rs:42:8 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn solve_b(input: &str) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `solve` is never used [INFO] [stderr] --> src/days/day01.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn solve(input: &str) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `solve_a` is never used [INFO] [stderr] --> src/days/day02.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn solve_a(input: &str) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `solve_b` is never used [INFO] [stderr] --> src/days/day02.rs:8:8 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn solve_b(input: &str) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `solve` is never used [INFO] [stderr] --> src/days/day02.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn solve(input: &str) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `solve` is never used [INFO] [stderr] --> src/days/day03.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn solve(input: &str) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `solve` is never used [INFO] [stderr] --> src/days/day04.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn solve(input: &str) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `solve` is never used [INFO] [stderr] --> src/days/day05.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn solve(input: &str){ [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `text` is never read [INFO] [stderr] --> src/days/day05.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 32 | struct Instruction { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 33 | text: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Instruction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `parse_many_instructions` is never used [INFO] [stderr] --> src/days/day05.rs:49:4 [INFO] [stderr] | [INFO] [stderr] 49 | fn parse_many_instructions(instruction_input: &str) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `solve` is never used [INFO] [stderr] --> src/days/day06.rs:7:8 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] running 30 tests [INFO] [stderr] 7 | pub fn solve(input: &str) { [INFO] [stdout] test days::day01::tests::test_max_calories ... ok [INFO] [stderr] | ^^^^^ [INFO] [stdout] test days::day01::tests::test_top3_calories ... ok [INFO] [stderr] [INFO] [stdout] test days::day02::tests::test_draws ... ok [INFO] [stderr] warning: `advent-of-code-2022` (bin "advent-of-code-2022" test) generated 12 warnings [INFO] [stdout] test days::day02::tests::test_losses ... ok [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stdout] test days::day02::tests::test_play_hand ... ok [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/advent_of_code_2022-78a535f138f275b6) [INFO] [stdout] test days::day02::tests::test_solve_a ... ok [INFO] [stdout] test days::day02::tests::test_wins ... ok [INFO] [stdout] test days::day02::tests::test_solve_b ... ok [INFO] [stdout] test days::day03::tests::test_calculate_badge_priority_for_group ... ok [INFO] [stdout] test days::day03::tests::test_calculate_badge_priority_another_for_group ... ok [INFO] [stdout] test days::day03::tests::test_calculate_suitcase_priority ... ok [INFO] [stdout] test days::day03::tests::test_calculate_total_priority ... ok [INFO] [stdout] test days::day03::tests::test_get_item_priority ... ok [INFO] [stdout] test days::day03::tests::test_calculate_total_badge_priority ... ok [INFO] [stdout] test days::day03::tests::test_get_items_in_both_compartments ... ok [INFO] [stdout] test days::day03::tests::test_split_suitecase ... ok [INFO] [stdout] test days::day04::tests::test_assigned_sections_contains_false ... ok [INFO] [stdout] test days::day04::tests::test_assigned_sections_contains_true ... ok [INFO] [stdout] test days::day04::tests::test_assigned_sections_overlaps_false ... ok [INFO] [stdout] test days::day04::tests::test_assigned_sections_overlaps_true ... ok [INFO] [stdout] test days::day04::tests::test_compare_all_assignment_pair ... ok [INFO] [stdout] test days::day04::tests::test_compare_all_assignment_pair_overlap ... ok [INFO] [stdout] test days::day04::tests::test_compare_assignment_pair_overlap ... ok [INFO] [stdout] test days::day04::tests::test_compare_assignment_pair ... ok [INFO] [stdout] test days::day04::tests::test_new_section_from_string ... ok [INFO] [stdout] test days::day05::tests::test_parse_matrix ... ok [INFO] [stdout] test days::day05::tests::test_parse_instructions ... ok [INFO] [stdout] test days::day06::tests::test_solve_a ... ok [INFO] [stdout] test days::day06::tests::test_solve_b ... ok [INFO] [stdout] test days::day02::tests::test_play_all_hands ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 30 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828", kill_on_drop: false }` [INFO] [stdout] 06473d64c3365c41eea1204a9821a9f0a8c79dc940ca07ca84c4d2b9c7718828