[INFO] cloning repository https://github.com/Narigo/aocrs20 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Narigo/aocrs20" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNarigo%2Faocrs20", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNarigo%2Faocrs20'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a594f49ce520e4d4715eea61bf1fa8043a7abbce [INFO] checking Narigo/aocrs20/a594f49ce520e4d4715eea61bf1fa8043a7abbce against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNarigo%2Faocrs20" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Narigo/aocrs20 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Narigo/aocrs20 [INFO] finished tweaking git repo https://github.com/Narigo/aocrs20 [INFO] tweaked toml for git repo https://github.com/Narigo/aocrs20 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Narigo/aocrs20 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe695f29f7573fcb959d0b312dd9c7612492667ffe894fe1227d99931db63fc4 [INFO] running `Command { std: "docker" "start" "-a" "fe695f29f7573fcb959d0b312dd9c7612492667ffe894fe1227d99931db63fc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe695f29f7573fcb959d0b312dd9c7612492667ffe894fe1227d99931db63fc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe695f29f7573fcb959d0b312dd9c7612492667ffe894fe1227d99931db63fc4", kill_on_drop: false }` [INFO] [stdout] fe695f29f7573fcb959d0b312dd9c7612492667ffe894fe1227d99931db63fc4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7fbec7260b2d915b9c1a82f0994e7167498a2a1e2e70cda7c14a7ccb883d453 [INFO] running `Command { std: "docker" "start" "-a" "b7fbec7260b2d915b9c1a82f0994e7167498a2a1e2e70cda7c14a7ccb883d453", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/day_14/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | for (k, v) in self.values.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_expense_report_a` is never used [INFO] [stdout] --> src/day_01/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn check_expense_report_a(report: String) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_expense_report_b` is never used [INFO] [stdout] --> src/day_01/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn check_expense_report_b(report: String) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_password_policy` is never used [INFO] [stdout] --> src/day_02/mod.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn check_password_policy(file: &str, is_valid_fn: &dyn Fn(&str) -> bool) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_password_with_policy_of_old_shop` is never used [INFO] [stdout] --> src/day_02/mod.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn is_valid_password_with_policy_of_old_shop(line: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_password_with_policy_of_new_shop` is never used [INFO] [stdout] --> src/day_02/mod.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn is_valid_password_with_policy_of_new_shop(line: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_field` is never used [INFO] [stdout] --> src/day_03/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn generate_field(file: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_amount_of_trees_in_slope` is never used [INFO] [stdout] --> src/day_03/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn get_amount_of_trees_in_slope(field: &Vec>, right: usize, down: usize) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_amount_of_trees_a` is never used [INFO] [stdout] --> src/day_03/mod.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn check_amount_of_trees_a(file: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_amount_of_trees_b` is never used [INFO] [stdout] --> src/day_03/mod.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn check_amount_of_trees_b(file: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MaybePassport` is never constructed [INFO] [stdout] --> src/day_04/mod.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct MaybePassport { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MaybePassport` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidPassport` is never constructed [INFO] [stdout] --> src/day_04/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct ValidPassport { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_into_maybe_passports` is never used [INFO] [stdout] --> src/day_04/mod.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn split_into_maybe_passports(file: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_passport` is never used [INFO] [stdout] --> src/day_04/mod.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn to_passport(passport: &MaybePassport) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IsValidByr` is never used [INFO] [stdout] --> src/day_04/mod.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | trait IsValidByr [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IsValidIyr` is never used [INFO] [stdout] --> src/day_04/mod.rs:117:7 [INFO] [stdout] | [INFO] [stdout] 117 | trait IsValidIyr [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IsValidEyr` is never used [INFO] [stdout] --> src/day_04/mod.rs:135:7 [INFO] [stdout] | [INFO] [stdout] 135 | trait IsValidEyr [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_cm_hgt` is never used [INFO] [stdout] --> src/day_04/mod.rs:153:4 [INFO] [stdout] | [INFO] [stdout] 153 | fn is_valid_cm_hgt(hgt: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_in_hgt` is never used [INFO] [stdout] --> src/day_04/mod.rs:157:4 [INFO] [stdout] | [INFO] [stdout] 157 | fn is_valid_in_hgt(hgt: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_hgt` is never used [INFO] [stdout] --> src/day_04/mod.rs:161:4 [INFO] [stdout] | [INFO] [stdout] 161 | fn is_valid_hgt(hgt: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_hcl` is never used [INFO] [stdout] --> src/day_04/mod.rs:197:4 [INFO] [stdout] | [INFO] [stdout] 197 | fn is_valid_hcl(hcl: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_ecl` is never used [INFO] [stdout] --> src/day_04/mod.rs:206:4 [INFO] [stdout] | [INFO] [stdout] 206 | fn is_valid_ecl(ecl: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_pid` is never used [INFO] [stdout] --> src/day_04/mod.rs:215:4 [INFO] [stdout] | [INFO] [stdout] 215 | fn is_valid_pid(pid: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_valid_passport` is never used [INFO] [stdout] --> src/day_04/mod.rs:224:4 [INFO] [stdout] | [INFO] [stdout] 224 | fn to_valid_passport(passport: &MaybePassport) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Seat` is never constructed [INFO] [stdout] --> src/day_05/mod.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Seat { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_seat` is never used [INFO] [stdout] --> src/day_05/mod.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn get_seat(input: &str) -> Seat { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `free_seat` is never used [INFO] [stdout] --> src/day_05/mod.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn free_seat(mut seat_ids: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `amount_of_questions_answered` is never used [INFO] [stdout] --> src/day_06/mod.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn amount_of_questions_answered(input: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `amount_of_questions_answered_by_all` is never used [INFO] [stdout] --> src/day_06/mod.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn amount_of_questions_answered_by_all(input: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ColoredBag` is never used [INFO] [stdout] --> src/day_07/mod.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | type ColoredBag = String; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `RuleSet` is never used [INFO] [stdout] --> src/day_07/mod.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | type RuleSet = HashMap>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ContainedBySet` is never used [INFO] [stdout] --> src/day_07/mod.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type ContainedBySet = HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_amount_and_color` is never used [INFO] [stdout] --> src/day_07/mod.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn split_amount_and_color(input: &str) -> Result<(u32, String), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_to_rule_set` is never used [INFO] [stdout] --> src/day_07/mod.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn file_to_rule_set(input: &String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contained_by_from_rules` is never used [INFO] [stdout] --> src/day_07/mod.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn contained_by_from_rules(rules: &RuleSet, color: &ColoredBag) -> ContainedBySet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `amount_of_bags_necessary` is never used [INFO] [stdout] --> src/day_07/mod.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn amount_of_bags_necessary(rules: &RuleSet, color: &ColoredBag) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Instruction` is never used [INFO] [stdout] --> src/day_08/mod.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Instruction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_instruction` is never used [INFO] [stdout] --> src/day_08/mod.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn line_to_instruction(input: &str) -> Instruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_to_instructions` is never used [INFO] [stdout] --> src/day_08/mod.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn file_to_instructions(input: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace_instruction` is never used [INFO] [stdout] --> src/day_08/mod.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn replace_instruction(old_instruction: Instruction) -> Instruction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_corrupt_instruction` is never used [INFO] [stdout] --> src/day_08/mod.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn find_corrupt_instruction(instructions: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_instructions_until_loop` is never used [INFO] [stdout] --> src/day_08/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn run_instructions_until_loop(instructions: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_valid_number` is never used [INFO] [stdout] --> src/day_09/mod.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn check_valid_number(preamble: &Vec, number: &u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_first_invalid` is never used [INFO] [stdout] --> src/day_09/mod.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn find_first_invalid(input: &str, preamble_length: usize) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_sum_of_first_invalid` is never used [INFO] [stdout] --> src/day_09/mod.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn find_sum_of_first_invalid(input: &str, number: u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `minimum` is never used [INFO] [stdout] --> src/day_09/mod.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn minimum(set: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maximum` is never used [INFO] [stdout] --> src/day_09/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn maximum(set: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Differences` is never used [INFO] [stdout] --> src/day_10/mod.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | type Differences = HashMap; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Jolts` is never used [INFO] [stdout] --> src/day_10/mod.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type Jolts = u64; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_highest_joltage` is never used [INFO] [stdout] --> src/day_10/mod.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn get_highest_joltage(set: &Vec) -> (Differences, Jolts) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `adapters_from_input` is never used [INFO] [stdout] --> src/day_10/mod.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn adapters_from_input(input: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_multiplication_value` is never used [INFO] [stdout] --> src/day_10/mod.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn get_multiplication_value(adapter_differences: Differences) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_possible_arrangements` is never used [INFO] [stdout] --> src/day_10/mod.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn find_possible_arrangements(adapters: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Cell` is never used [INFO] [stdout] --> src/day_11/mod.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Cell { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Grid` is never constructed [INFO] [stdout] --> src/day_11/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Grid { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `GridRules` is never used [INFO] [stdout] --> src/day_11/mod.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 40 | trait GridRules { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input_to_grid` is never used [INFO] [stdout] --> src/day_11/mod.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 247 | fn input_to_grid(input: &str, star1: bool) -> Grid { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Command` is never used [INFO] [stdout] --> src/day_12/mod.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input_to_commands` is never used [INFO] [stdout] --> src/day_12/mod.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn input_to_commands(input: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/day_12/mod.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 34 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/day_12/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ship` is never constructed [INFO] [stdout] --> src/day_12/mod.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct Ship { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Waypoint` is never constructed [INFO] [stdout] --> src/day_12/mod.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | struct Waypoint { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShipStar2` is never constructed [INFO] [stdout] --> src/day_12/mod.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | struct ShipStar2 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ShipFunctions` is never used [INFO] [stdout] --> src/day_12/mod.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | trait ShipFunctions [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `facing_to_angle` is never used [INFO] [stdout] --> src/day_12/mod.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn facing_to_angle(facing: Direction) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `angle_to_facing` is never used [INFO] [stdout] --> src/day_12/mod.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn angle_to_facing(angle: i64) -> Direction { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Bus` is never used [INFO] [stdout] --> src/day_13/mod.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | type Bus = usize; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ArrivalTime` is never used [INFO] [stdout] --> src/day_13/mod.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | type ArrivalTime = usize; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `StartTime` is never used [INFO] [stdout] --> src/day_13/mod.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | type StartTime = usize; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `WaitTime` is never used [INFO] [stdout] --> src/day_13/mod.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type WaitTime = usize; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_input` is never used [INFO] [stdout] --> src/day_13/mod.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn from_input(input: &String) -> (ArrivalTime, Vec>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_earliest_bus` is never used [INFO] [stdout] --> src/day_13/mod.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_earliest_bus(arrival_time: ArrivalTime, busses: Vec>) -> (Bus, WaitTime) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_earliest_time` is never used [INFO] [stdout] --> src/day_13/mod.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn get_earliest_time(busses: Vec>) -> StartTime { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Bitmask` is never used [INFO] [stdout] --> src/day_14/mod.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | type Bitmask = String; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitmaskSystem` is never used [INFO] [stdout] --> src/day_14/mod.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait BitmaskSystem { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Memory` is never constructed [INFO] [stdout] --> src/day_14/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Command` is never used [INFO] [stdout] --> src/day_14/mod.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | enum Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_command` is never used [INFO] [stdout] --> src/day_14/mod.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn line_to_command(input: &str) -> Command { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MemoryV2` is never constructed [INFO] [stdout] --> src/day_14/mod.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | struct MemoryV2 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_input_v2` is never used [INFO] [stdout] --> src/day_14/mod.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn process_input_v2(input: &str) -> MemoryV2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_input` is never used [INFO] [stdout] --> src/day_14/mod.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn process_input(input: &str) -> Memory { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/util/mod.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn read_file(filename: &str) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_into_parts` is never used [INFO] [stdout] --> src/util/mod.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn split_into_parts(content: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/day_07/mod.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | for groups in start_re.captures(line) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 35 | while let Some(groups) = start_re.captures(line) { [INFO] [stdout] | ~~~~~~~~~~~~~~~ ~~~ [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 35 | if let Some(groups) = start_re.captures(line) { [INFO] [stdout] | ~~~~~~~~~~~~ ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 85 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/day_14/mod.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | for (k, v) in self.values.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/day_07/mod.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | for groups in start_re.captures(line) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 35 | while let Some(groups) = start_re.captures(line) { [INFO] [stdout] | ~~~~~~~~~~~~~~~ ~~~ [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 35 | if let Some(groups) = start_re.captures(line) { [INFO] [stdout] | ~~~~~~~~~~~~ ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.48s [INFO] running `Command { std: "docker" "inspect" "b7fbec7260b2d915b9c1a82f0994e7167498a2a1e2e70cda7c14a7ccb883d453", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7fbec7260b2d915b9c1a82f0994e7167498a2a1e2e70cda7c14a7ccb883d453", kill_on_drop: false }` [INFO] [stdout] b7fbec7260b2d915b9c1a82f0994e7167498a2a1e2e70cda7c14a7ccb883d453