[INFO] cloning repository https://github.com/ashishkujoy/aoc_2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ashishkujoy/aoc_2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishkujoy%2Faoc_2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishkujoy%2Faoc_2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 274581b1fbd046e9578a5d09e083b0a8f06fbe82 [INFO] checking ashishkujoy/aoc_2020 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fashishkujoy%2Faoc_2020" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ashishkujoy/aoc_2020 on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ashishkujoy/aoc_2020 [INFO] finished tweaking git repo https://github.com/ashishkujoy/aoc_2020 [INFO] tweaked toml for git repo https://github.com/ashishkujoy/aoc_2020 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ashishkujoy/aoc_2020 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" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc5aab6f6ae644057ff88f99c6fd23c3572955bc81ec509241eece6711883650 [INFO] running `Command { std: "docker" "start" "-a" "bc5aab6f6ae644057ff88f99c6fd23c3572955bc81ec509241eece6711883650", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc5aab6f6ae644057ff88f99c6fd23c3572955bc81ec509241eece6711883650", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc5aab6f6ae644057ff88f99c6fd23c3572955bc81ec509241eece6711883650", kill_on_drop: false }` [INFO] [stdout] bc5aab6f6ae644057ff88f99c6fd23c3572955bc81ec509241eece6711883650 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39e3f29571a5964f69dbb72dfca19b1106237c55712c39d9f722e73acf3fd456 [INFO] running `Command { std: "docker" "start" "-a" "39e3f29571a5964f69dbb72dfca19b1106237c55712c39d9f722e73acf3fd456", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking aoc-2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/problems/day_5.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/problems/day_6.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/problems/day_8.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/problems/day_5.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/problems/day_6.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/problems/day_8.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problems/day_4.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut tokens = input.split_ascii_whitespace(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pair_having_sum_n` is never used [INFO] [stdout] --> src/problems/day_1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn pair_having_sum_n(n: i64, inputs: &Vec) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_tuple_of_n_having_sum` is never used [INFO] [stdout] --> src/problems/day_1.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn find_tuple_of_n_having_sum(size_of_tuple: u64, sum: i64, inputs: &Vec) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse`, `is_adhered_by`, and `is_adhered_by_v2` are never used [INFO] [stdout] --> src/problems/day_2.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl PasswordPolicy { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 9 | fn parse(input: &str) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn is_adhered_by(&self, password: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn is_adhered_by_v2(&self, password: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_password_and_policy` is never used [INFO] [stdout] --> src/problems/day_2.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn parse_password_and_policy(input: &str) -> (&str, PasswordPolicy) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_count_of_invalid_passwords` is never used [INFO] [stdout] --> src/problems/day_2.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn get_count_of_invalid_passwords(inputs: &Vec<&str>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_count_of_valid_passwords_v2` is never used [INFO] [stdout] --> src/problems/day_2.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn get_count_of_valid_passwords_v2(inputs: &Vec<&str>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_tree_on_slop` is never used [INFO] [stdout] --> src/problems/day_3.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn find_tree_on_slop(input: &Vec>, down_by: usize, shift_right_by: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_product_of_trees` is never used [INFO] [stdout] --> src/problems/day_3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn find_product_of_trees(input: &Vec>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_password_doc` is never used [INFO] [stdout] --> src/problems/day_4.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn is_valid_password_doc(doc: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_valid_password_docs` is never used [INFO] [stdout] --> src/problems/day_4.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn count_valid_password_docs(docs: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_valid_password_docs_v2` is never used [INFO] [stdout] --> src/problems/day_4.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn count_valid_password_docs_v2(docs: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse` and `is_between_include_edges` are never used [INFO] [stdout] --> src/problems/day_4.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl Year { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 27 | fn parse(input: &str) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn is_between_include_edges(&self, min: usize, max: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse` and `is_valid` are never used [INFO] [stdout] --> src/problems/day_4.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 42 | impl<'i> Height<'i> { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 43 | fn parse(input: &'i str) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_valid_hair_color` and `is_valid_eye_color` are never used [INFO] [stdout] --> src/problems/day_4.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 70 | impl<'i> Color<'i> { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 71 | fn is_valid_hair_color(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn is_valid_eye_color(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/problems/day_4.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl<'i> PassportId<'i> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 86 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse` and `is_valid` are never used [INFO] [stdout] --> src/problems/day_4.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 102 | impl<'i> PasswordDoc<'i> { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 103 | fn parse(input: &'i str) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_get_id_for_code` is never used [INFO] [stdout] --> src/problems/day_5.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn get_get_id_for_code(code: &str, lower_bond: usize, upper_bond: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_seat_id` is never used [INFO] [stdout] --> src/problems/day_5.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn get_seat_id(ticket_number: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mid_of` is never used [INFO] [stdout] --> src/problems/day_5.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn mid_of(tuple: (usize, usize)) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_largest_seat_id` is never used [INFO] [stdout] --> src/problems/day_5.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_largest_seat_id(tickets: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_seat_ids` is never used [INFO] [stdout] --> src/problems/day_5.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn get_all_seat_ids(tickets: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_ids_having_diff_2` is never used [INFO] [stdout] --> src/problems/day_5.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn seat_ids_having_diff_2(tickets: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_element_having_given_diff_with` is never used [INFO] [stdout] --> src/problems/day_5.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn find_element_having_given_diff_with( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_unique_questions` is never used [INFO] [stdout] --> src/problems/day_6.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn count_unique_questions(questions: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_of_unique_questions_per_group` is never used [INFO] [stdout] --> src/problems/day_6.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn sum_of_of_unique_questions_per_group(questions_per_group: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `question_count_to_which_we_all_yes_answer` is never used [INFO] [stdout] --> src/problems/day_6.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn question_count_to_which_we_all_yes_answer(questions: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_contains` is never used [INFO] [stdout] --> src/problems/day_6.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn all_contains(vec: &Vec<&str>, character: &char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_questions_to_which_every_one_answered_yes_in_group` is never used [INFO] [stdout] --> src/problems/day_6.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn sum_of_questions_to_which_every_one_answered_yes_in_group(question_per_group: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse` and `execute` are never used [INFO] [stdout] --> src/problems/day_8.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'s> OptCode<'s> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 11 | fn parse(input: &'s str) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn execute(&mut self, opt_machine_state: &OptMachineState) -> OptMachineState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `instruction_pointer` and `accumulator` are never read [INFO] [stdout] --> src/problems/day_8.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct OptMachineState { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 43 | instruction_pointer: isize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | accumulator: isize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OptMachineState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shift_instruction_pointer_by` and `update_accumulator_by` are never used [INFO] [stdout] --> src/problems/day_8.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 47 | impl OptMachineState { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] 48 | fn shift_instruction_pointer_by(&self, shift: isize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | fn update_accumulator_by(&self, amount: isize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `accumulator_before_hang` is never used [INFO] [stdout] --> src/problems/day_8.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn accumulator_before_hang(instructions: &str) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `accumulator_after_machine_completes` is never used [INFO] [stdout] --> src/problems/day_8.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn accumulator_after_machine_completes(instructions: &str) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problems/day_4.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut tokens = input.split_ascii_whitespace(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_count_of_valid_passwords_v2` is never used [INFO] [stdout] --> src/problems/day_2.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn get_count_of_valid_passwords_v2(inputs: &Vec<&str>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_tree_on_slop` is never used [INFO] [stdout] --> src/problems/day_3.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn find_tree_on_slop(input: &Vec>, down_by: usize, shift_right_by: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_product_of_trees` is never used [INFO] [stdout] --> src/problems/day_3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn find_product_of_trees(input: &Vec>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_valid_password_docs_v2` is never used [INFO] [stdout] --> src/problems/day_4.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn count_valid_password_docs_v2(docs: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_largest_seat_id` is never used [INFO] [stdout] --> src/problems/day_5.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_largest_seat_id(tickets: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_element_having_given_diff_with` is never used [INFO] [stdout] --> src/problems/day_5.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn find_element_having_given_diff_with( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_questions_to_which_every_one_answered_yes_in_group` is never used [INFO] [stdout] --> src/problems/day_6.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn sum_of_questions_to_which_every_one_answered_yes_in_group(question_per_group: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | first_set [INFO] [stdout] | ______________^ [INFO] [stdout] 13 | | .clone() [INFO] [stdout] | |________________^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | first_set [INFO] [stdout] | ______________^ [INFO] [stdout] 13 | | .clone() [INFO] [stdout] | |________________^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc-2020` (bin "aoc-2020") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `aoc-2020` (bin "aoc-2020" test) due to 2 previous errors [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "39e3f29571a5964f69dbb72dfca19b1106237c55712c39d9f722e73acf3fd456", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39e3f29571a5964f69dbb72dfca19b1106237c55712c39d9f722e73acf3fd456", kill_on_drop: false }` [INFO] [stdout] 39e3f29571a5964f69dbb72dfca19b1106237c55712c39d9f722e73acf3fd456