[INFO] cloning repository https://github.com/stella3d/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/stella3d/AoC_2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstella3d%2FAoC_2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstella3d%2FAoC_2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 73f10e3615876fb2fb23d6b35708a96bcfacf07a [INFO] checking stella3d/AoC_2020 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstella3d%2FAoC_2020" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/stella3d/AoC_2020 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/stella3d/AoC_2020 [INFO] finished tweaking git repo https://github.com/stella3d/AoC_2020 [INFO] tweaked toml for git repo https://github.com/stella3d/AoC_2020 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/stella3d/AoC_2020 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3a5d21d8ab366a6952d06e6fb0d23caba7c602774b34fed190f46440535a14c [INFO] running `Command { std: "docker" "start" "-a" "c3a5d21d8ab366a6952d06e6fb0d23caba7c602774b34fed190f46440535a14c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3a5d21d8ab366a6952d06e6fb0d23caba7c602774b34fed190f46440535a14c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3a5d21d8ab366a6952d06e6fb0d23caba7c602774b34fed190f46440535a14c", kill_on_drop: false }` [INFO] [stdout] c3a5d21d8ab366a6952d06e6fb0d23caba7c602774b34fed190f46440535a14c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba4cbbaf675a7e8afe9b745936bfa51bde668c6250fb6499415c7fa8d79f0c08 [INFO] running `Command { std: "docker" "start" "-a" "ba4cbbaf675a7e8afe9b745936bfa51bde668c6250fb6499415c7fa8d79f0c08", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking fnv v1.0.7 [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 AoC2020 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/day4.rs (1 fix) [INFO] [stderr] Fixed src/day7.rs (9 fixes) [INFO] [stderr] Fixed src/day5.rs (1 fix) [INFO] [stderr] Fixed src/day3.rs (1 fix) [INFO] [stderr] Fixed src/day8.rs (4 fixes) [INFO] [stderr] Fixed src/day6.rs (2 fixes) [INFO] [stdout] warning: function is never used: `print_all` [INFO] [stdout] --> src/files.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn print_all(lines: &Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Policy` [INFO] [stdout] --> src/day2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Policy { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse` [INFO] [stdout] --> src/day2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn parse(s: &str) -> Policy { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate` [INFO] [stdout] --> src/day2.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn validate(&self, pw: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate2` [INFO] [stdout] --> src/day2.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn validate2(&self, pw: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/day2.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day2.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn solution(lines: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day2.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 76 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Terrain` [INFO] [stdout] --> src/day3.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Terrain { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tree_at` [INFO] [stdout] --> src/day3.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn tree_at(&self, row: usize, column: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_strings` [INFO] [stdout] --> src/day3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn from_strings(vs: &Vec) -> Terrain { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `solve` [INFO] [stdout] --> src/day3.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn solve(&self, right_rate: usize, down_rate: usize) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day3.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `contains_all` [INFO] [stdout] --> src/day4.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn contains_all(required: &Vec, set: &FnvHashSet,) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_bounds` [INFO] [stdout] --> src/day4.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn check_bounds(value: &str, min: i32, max: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_unit_range` [INFO] [stdout] --> src/day4.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn check_unit_range(value: &str, suffix: &str, min: i32, max: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_field` [INFO] [stdout] --> src/day4.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn check_field(name: &str, value: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_field_if_valid` [INFO] [stdout] --> src/day4.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn add_field_if_valid(field_set: &mut FnvHashSet, cap: Captures) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day4.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn solution(lines: &Vec, required_fields: &Vec, regex: &Regex) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day4.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Seat` [INFO] [stdout] --> src/day5.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Seat { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_id` [INFO] [stdout] --> src/day5.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn get_id(&self) -> i32 { &self.row * 8 + &self.column } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `moves` [INFO] [stdout] --> src/day5.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub moves: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_moves` [INFO] [stdout] --> src/day5.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn do_moves(&self) -> Seat { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day5.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn solution(lines: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day5.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn solution2(lines: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day5.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day6.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn solution(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day6.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn solution2(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day6.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ContentRule` [INFO] [stdout] --> src/day7.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct ContentRule { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BagRuleSet` [INFO] [stdout] --> src/day7.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct BagRuleSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day7.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn solution(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day7.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn solution2(_lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day7.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day8.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn solution2(_lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AoC2020` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `ao_c2020` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_all` [INFO] [stdout] --> src/files.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn print_all(lines: &Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Policy` [INFO] [stdout] --> src/day2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Policy { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse` [INFO] [stdout] --> src/day2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn parse(s: &str) -> Policy { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate` [INFO] [stdout] --> src/day2.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn validate(&self, pw: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate2` [INFO] [stdout] --> src/day2.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn validate2(&self, pw: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/day2.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day2.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn solution(lines: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day2.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 76 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Terrain` [INFO] [stdout] --> src/day3.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Terrain { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tree_at` [INFO] [stdout] --> src/day3.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn tree_at(&self, row: usize, column: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_strings` [INFO] [stdout] --> src/day3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn from_strings(vs: &Vec) -> Terrain { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `solve` [INFO] [stdout] --> src/day3.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn solve(&self, right_rate: usize, down_rate: usize) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day3.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `contains_all` [INFO] [stdout] --> src/day4.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn contains_all(required: &Vec, set: &FnvHashSet,) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_bounds` [INFO] [stdout] --> src/day4.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn check_bounds(value: &str, min: i32, max: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_unit_range` [INFO] [stdout] --> src/day4.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn check_unit_range(value: &str, suffix: &str, min: i32, max: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_field` [INFO] [stdout] --> src/day4.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn check_field(name: &str, value: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_field_if_valid` [INFO] [stdout] --> src/day4.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn add_field_if_valid(field_set: &mut FnvHashSet, cap: Captures) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day4.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn solution(lines: &Vec, required_fields: &Vec, regex: &Regex) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day4.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Seat` [INFO] [stdout] --> src/day5.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Seat { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_id` [INFO] [stdout] --> src/day5.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn get_id(&self) -> i32 { &self.row * 8 + &self.column } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `moves` [INFO] [stdout] --> src/day5.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub moves: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_moves` [INFO] [stdout] --> src/day5.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn do_moves(&self) -> Seat { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day5.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn solution(lines: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day5.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn solution2(lines: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day5.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day6.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn solution(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day6.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn solution2(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day6.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ContentRule` [INFO] [stdout] --> src/day7.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct ContentRule { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BagRuleSet` [INFO] [stdout] --> src/day7.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct BagRuleSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day7.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn solution(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day7.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn solution2(_lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day7.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day8.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn solution2(_lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AoC2020` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `ao_c2020` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.87s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking AoC2020 v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: function is never used: `print_all` [INFO] [stdout] --> src/files.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn print_all(lines: &Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Policy` [INFO] [stdout] --> src/day2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Policy { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse` [INFO] [stdout] --> src/day2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn parse(s: &str) -> Policy { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate` [INFO] [stdout] --> src/day2.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn validate(&self, pw: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate2` [INFO] [stdout] --> src/day2.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn validate2(&self, pw: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/day2.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day2.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn solution(lines: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day2.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 76 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Terrain` [INFO] [stdout] --> src/day3.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Terrain { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tree_at` [INFO] [stdout] --> src/day3.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn tree_at(&self, row: usize, column: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_strings` [INFO] [stdout] --> src/day3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn from_strings(vs: &Vec) -> Terrain { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `solve` [INFO] [stdout] --> src/day3.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn solve(&self, right_rate: usize, down_rate: usize) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day3.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `contains_all` [INFO] [stdout] --> src/day4.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn contains_all(required: &Vec, set: &FnvHashSet,) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_bounds` [INFO] [stdout] --> src/day4.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn check_bounds(value: &str, min: i32, max: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_unit_range` [INFO] [stdout] --> src/day4.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn check_unit_range(value: &str, suffix: &str, min: i32, max: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_field` [INFO] [stdout] --> src/day4.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn check_field(name: &str, value: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_field_if_valid` [INFO] [stdout] --> src/day4.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn add_field_if_valid(field_set: &mut FnvHashSet, cap: Captures) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day4.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn solution(lines: &Vec, required_fields: &Vec, regex: &Regex) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day4.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Seat` [INFO] [stdout] --> src/day5.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Seat { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_id` [INFO] [stdout] --> src/day5.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn get_id(&self) -> i32 { &self.row * 8 + &self.column } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `moves` [INFO] [stdout] --> src/day5.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub moves: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_moves` [INFO] [stdout] --> src/day5.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn do_moves(&self) -> Seat { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day5.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn solution(lines: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day5.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn solution2(lines: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day5.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day6.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn solution(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day6.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn solution2(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day6.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ContentRule` [INFO] [stdout] --> src/day7.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct ContentRule { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BagRuleSet` [INFO] [stdout] --> src/day7.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct BagRuleSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day7.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn solution(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day7.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn solution2(_lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day7.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day8.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn solution2(_lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AoC2020` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `ao_c2020` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_all` [INFO] [stdout] --> src/files.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) fn print_all(lines: &Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Policy` [INFO] [stdout] --> src/day2.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Policy { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse` [INFO] [stdout] --> src/day2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn parse(s: &str) -> Policy { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate` [INFO] [stdout] --> src/day2.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn validate(&self, pw: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate2` [INFO] [stdout] --> src/day2.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn validate2(&self, pw: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_string` [INFO] [stdout] --> src/day2.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day2.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn solution(lines: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day2.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 76 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Terrain` [INFO] [stdout] --> src/day3.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Terrain { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `tree_at` [INFO] [stdout] --> src/day3.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn tree_at(&self, row: usize, column: usize) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_strings` [INFO] [stdout] --> src/day3.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn from_strings(vs: &Vec) -> Terrain { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `solve` [INFO] [stdout] --> src/day3.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn solve(&self, right_rate: usize, down_rate: usize) -> i64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day3.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `contains_all` [INFO] [stdout] --> src/day4.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn contains_all(required: &Vec, set: &FnvHashSet,) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_bounds` [INFO] [stdout] --> src/day4.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn check_bounds(value: &str, min: i32, max: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_unit_range` [INFO] [stdout] --> src/day4.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn check_unit_range(value: &str, suffix: &str, min: i32, max: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `check_field` [INFO] [stdout] --> src/day4.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn check_field(name: &str, value: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_field_if_valid` [INFO] [stdout] --> src/day4.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn add_field_if_valid(field_set: &mut FnvHashSet, cap: Captures) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day4.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn solution(lines: &Vec, required_fields: &Vec, regex: &Regex) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day4.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Seat` [INFO] [stdout] --> src/day5.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Seat { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_id` [INFO] [stdout] --> src/day5.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn get_id(&self) -> i32 { &self.row * 8 + &self.column } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `moves` [INFO] [stdout] --> src/day5.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub moves: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `do_moves` [INFO] [stdout] --> src/day5.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn do_moves(&self) -> Seat { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day5.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn solution(lines: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day5.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn solution2(lines: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day5.rs:84:15 [INFO] [stdout] | [INFO] [stdout] 84 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day6.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn solution(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day6.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn solution2(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day6.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ContentRule` [INFO] [stdout] --> src/day7.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct ContentRule { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `BagRuleSet` [INFO] [stdout] --> src/day7.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct BagRuleSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution` [INFO] [stdout] --> src/day7.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn solution(lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day7.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn solution2(_lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/day7.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solution2` [INFO] [stdout] --> src/day8.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn solution2(_lines: &Vec) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AoC2020` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `ao_c2020` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "ba4cbbaf675a7e8afe9b745936bfa51bde668c6250fb6499415c7fa8d79f0c08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba4cbbaf675a7e8afe9b745936bfa51bde668c6250fb6499415c7fa8d79f0c08", kill_on_drop: false }` [INFO] [stdout] ba4cbbaf675a7e8afe9b745936bfa51bde668c6250fb6499415c7fa8d79f0c08