[INFO] cloning repository https://github.com/Berna-L/advent-of-code-2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Berna-L/advent-of-code-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBerna-L%2Fadvent-of-code-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBerna-L%2Fadvent-of-code-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5e0e4b6e155a780a5c38e92ea2f5455ee7916e9c [INFO] checking Berna-L/advent-of-code-2020 against master#39b841dfe36f90a7cd111e7f0c55f32594f6e578 for pr-77035 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBerna-L%2Fadvent-of-code-2020" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Berna-L/advent-of-code-2020 on toolchain 39b841dfe36f90a7cd111e7f0c55f32594f6e578 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Berna-L/advent-of-code-2020 [INFO] finished tweaking git repo https://github.com/Berna-L/advent-of-code-2020 [INFO] tweaked toml for git repo https://github.com/Berna-L/advent-of-code-2020 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/Berna-L/advent-of-code-2020 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a876c14ab9ab008c8adaa576523ba2d6b71de0de5555089e4e315dc936c35aa7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a876c14ab9ab008c8adaa576523ba2d6b71de0de5555089e4e315dc936c35aa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a876c14ab9ab008c8adaa576523ba2d6b71de0de5555089e4e315dc936c35aa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a876c14ab9ab008c8adaa576523ba2d6b71de0de5555089e4e315dc936c35aa7", kill_on_drop: false }` [INFO] [stdout] a876c14ab9ab008c8adaa576523ba2d6b71de0de5555089e4e315dc936c35aa7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+39b841dfe36f90a7cd111e7f0c55f32594f6e578" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a5098d4c58e572ca65b6c2c09a288ed80931f2bf375955fe0d30e925fb1031a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1a5098d4c58e572ca65b6c2c09a288ed80931f2bf375955fe0d30e925fb1031a", kill_on_drop: false }` [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 thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking rust-advent-of-code-2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::panic::resume_unwind` [INFO] [stdout] --> src/day4/code.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::panic::resume_unwind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Not` [INFO] [stdout] --> src/day4/rules.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Not; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/day5/code.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/day5/code.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/day7/puzzle1.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Map` [INFO] [stdout] --> src/day7/puzzle1.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::iter::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day7/puzzle2.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | if (NO_OTHER.eq(s)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/day8/code.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day9/code.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | let range = (preamble..numbers.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day9/code.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | curr_sum = (curr_sum + y); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> src/day10/code.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cmp, io}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Error`, `Formatter` [INFO] [stdout] --> src/day11/puzzle1.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Error, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Range` [INFO] [stdout] --> src/day11/puzzle1.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::{Range, RangeInclusive}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt` [INFO] [stdout] --> src/day11/puzzle1.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{fmt, io}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day11/puzzle1.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day11/puzzle1.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if (layouts_are_equal(&last, ¤t)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/day11/puzzle1.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | ((std::cmp::max(1, i) - 1)..=std::cmp::min(i + 1, max)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Error`, `Formatter` [INFO] [stdout] --> src/day11/puzzle2.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Error, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RangeInclusive`, `Range` [INFO] [stdout] --> src/day11/puzzle2.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::{Range, RangeInclusive}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt` [INFO] [stdout] --> src/day11/puzzle2.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{fmt, io}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day11/puzzle2.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day11/puzzle2.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if (layouts_are_equal(&last, ¤t)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic::resume_unwind` [INFO] [stdout] --> src/day4/code.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::panic::resume_unwind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Not` [INFO] [stdout] --> src/day4/rules.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Not; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/day5/code.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/day5/code.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/day7/puzzle1.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Map` [INFO] [stdout] --> src/day7/puzzle1.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::iter::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day7/puzzle2.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 109 | if (NO_OTHER.eq(s)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/day8/code.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day9/code.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | let range = (preamble..numbers.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day9/code.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | curr_sum = (curr_sum + y); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp` [INFO] [stdout] --> src/day10/code.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{cmp, io}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Error`, `Formatter` [INFO] [stdout] --> src/day11/puzzle1.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Error, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Range` [INFO] [stdout] --> src/day11/puzzle1.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::{Range, RangeInclusive}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt` [INFO] [stdout] --> src/day11/puzzle1.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{fmt, io}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day11/puzzle1.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day11/puzzle1.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if (layouts_are_equal(&last, ¤t)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/day11/puzzle1.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | ((std::cmp::max(1, i) - 1)..=std::cmp::min(i + 1, max)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Error`, `Formatter` [INFO] [stdout] --> src/day11/puzzle2.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Error, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RangeInclusive`, `Range` [INFO] [stdout] --> src/day11/puzzle2.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ops::{Range, RangeInclusive}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt` [INFO] [stdout] --> src/day11/puzzle2.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{fmt, io}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day11/puzzle2.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day11/puzzle2.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | if (layouts_are_equal(&last, ¤t)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/day8/code.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 72 | / loop { [INFO] [stdout] 73 | | if processed.contains(&ptr) { [INFO] [stdout] 74 | | return None; [INFO] [stdout] 75 | | } [INFO] [stdout] ... | [INFO] [stdout] 95 | | }; [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 97 | None [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/day8/code.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 72 | / loop { [INFO] [stdout] 73 | | if processed.contains(&ptr) { [INFO] [stdout] 74 | | return None; [INFO] [stdout] 75 | | } [INFO] [stdout] ... | [INFO] [stdout] 95 | | }; [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 97 | None [INFO] [stdout] | ^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/day11/puzzle2.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 114 | / loop { [INFO] [stdout] 115 | | actual_i = i_fn(&actual_i); [INFO] [stdout] 116 | | actual_j = j_fn(&actual_j); [INFO] [stdout] 117 | | if actual_i < 0 [INFO] [stdout] ... | [INFO] [stdout] 129 | | } [INFO] [stdout] 130 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 131 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/day11/puzzle1.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | _ => panic!("not expected"), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/day11/puzzle2.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | _ => panic!("not expected"), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/day4/rules.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn empty_rule(s: String) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/day5/code.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | .filter(|(pos, &v)| v.eq(&1)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/day8/code.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | .map(|(pos, v)| pos) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/day11/puzzle2.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 114 | / loop { [INFO] [stdout] 115 | | actual_i = i_fn(&actual_i); [INFO] [stdout] 116 | | actual_j = j_fn(&actual_j); [INFO] [stdout] 117 | | if actual_i < 0 [INFO] [stdout] ... | [INFO] [stdout] 129 | | } [INFO] [stdout] 130 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 131 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `curr_group_answers` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day6/code.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 57 | match curr_group_answers.get(&c) { [INFO] [stdout] | ------------------ immutable borrow occurs here [INFO] [stdout] 58 | Some(v) => { [INFO] [stdout] 59 | curr_group_answers.insert(c, v + 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ - immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day7/puzzle1.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | .map(|mut l| l.replace(".", "")) [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: variable does not need to be mutable [INFO] [stdout] --> src/day7/puzzle2.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | .map(|mut l| l.replace(".", "")) [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/day11/puzzle1.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | _ => panic!("not expected"), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/day11/puzzle2.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | _ => panic!("not expected"), [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/day4/rules.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn empty_rule(s: String) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/day5/code.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | .filter(|(pos, &v)| v.eq(&1)) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/day8/code.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | .map(|(pos, v)| pos) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `map` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day10/code.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 18 | match map.get(&diff) { [INFO] [stdout] | --- immutable borrow occurs here [INFO] [stdout] 19 | Some(v) => map.insert(diff, v + 1), [INFO] [stdout] | ^^^ - immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `curr_group_answers` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day6/code.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 57 | match curr_group_answers.get(&c) { [INFO] [stdout] | ------------------ immutable borrow occurs here [INFO] [stdout] 58 | Some(v) => { [INFO] [stdout] 59 | curr_group_answers.insert(c, v + 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ - immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day7/puzzle1.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | .map(|mut l| l.replace(".", "")) [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 is never used: `day_1_read_file` [INFO] [stdout] --> src/day1/code.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn day_1_read_file() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_1_puzzle_1` [INFO] [stdout] --> src/day1/code.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn day_1_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_1_puzzle_2` [INFO] [stdout] --> src/day1/code.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn day_1_puzzle_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day7/puzzle2.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | .map(|mut l| l.replace(".", "")) [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_2_puzzle_1` [INFO] [stdout] --> src/day2/code.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn day_2_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_entries` [INFO] [stdout] --> src/day2/code.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_entries(file: File) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_2_puzzle_2` [INFO] [stdout] --> src/day2/code.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn day_2_puzzle_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_chars_from_password` [INFO] [stdout] --> src/day2/code.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn get_chars_from_password(e: &DatabaseEntry) -> (char, char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_3_puzzle_1` [INFO] [stdout] --> src/day3/code.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn day_3_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_slope` [INFO] [stdout] --> src/day3/code.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn process_slope(map: &Vec>, right_steps: usize, down_steps: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_map` [INFO] [stdout] --> src/day3/code.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn get_map(file: File) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `convert_line` [INFO] [stdout] --> src/day3/code.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn convert_line(p: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_4_puzzle_1` [INFO] [stdout] --> src/day4/code.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn day_4_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_passport_valid_1` [INFO] [stdout] --> src/day4/code.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn is_passport_valid_1(passport: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_passport_valid_2` [INFO] [stdout] --> src/day4/code.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn is_passport_valid_2(passport: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_batch_file` [INFO] [stdout] --> src/day4/code.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn read_batch_file(file: File) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `byr` [INFO] [stdout] --> src/day4/rules.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn byr(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `iyr` [INFO] [stdout] --> src/day4/rules.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn iyr(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eyr` [INFO] [stdout] --> src/day4/rules.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn eyr(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hgt` [INFO] [stdout] --> src/day4/rules.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn hgt(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hcl` [INFO] [stdout] --> src/day4/rules.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn hcl(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ecl` [INFO] [stdout] --> src/day4/rules.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn ecl(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pid` [INFO] [stdout] --> src/day4/rules.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn pid(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `empty_rule` [INFO] [stdout] --> src/day4/rules.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn empty_rule(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_5_puzzle_1` [INFO] [stdout] --> src/day5/code.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn day_5_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_seat_ids` [INFO] [stdout] --> src/day5/code.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn read_seat_ids(file: File) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_seat_id` [INFO] [stdout] --> src/day5/code.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn get_seat_id(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `convert_binary_to_number` [INFO] [stdout] --> src/day5/code.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn convert_binary_to_number(i: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_6_puzzle_1` [INFO] [stdout] --> src/day6/code.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn day_6_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_answers_file_anyone` [INFO] [stdout] --> src/day6/code.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn read_answers_file_anyone(file: File) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_answers_file_everyone` [INFO] [stdout] --> src/day6/code.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn read_answers_file_everyone(file: File) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_7_puzzle_1` [INFO] [stdout] --> src/day7/puzzle1.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn day_7_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_bag_rules_file` [INFO] [stdout] --> src/day7/puzzle1.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn read_bag_rules_file(file: File) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_outer_inner` [INFO] [stdout] --> src/day7/puzzle1.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn split_outer_inner(line: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_inner_list` [INFO] [stdout] --> src/day7/puzzle1.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_inner_list(inner: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_bags` [INFO] [stdout] --> src/day7/puzzle1.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn process_bags(map: &HashMap>, set: &mut HashSet, desired: String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `contains_desired` [INFO] [stdout] --> src/day7/puzzle1.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn contains_desired( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_7_puzzle_2` [INFO] [stdout] --> src/day7/puzzle2.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn day_7_puzzle_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_bag_rules_file` [INFO] [stdout] --> src/day7/puzzle2.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn read_bag_rules_file(file: File) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_outer_inner` [INFO] [stdout] --> src/day7/puzzle2.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn split_outer_inner(line: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_inner_list` [INFO] [stdout] --> src/day7/puzzle2.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_inner_list(inner: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_bags` [INFO] [stdout] --> src/day7/puzzle2.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn process_bags(map: &HashMap>, desired: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `contains_desired` [INFO] [stdout] --> src/day7/puzzle2.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn contains_desired( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_8_puzzle_1` [INFO] [stdout] --> src/day8/code.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn day_8_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_8_puzzle_2` [INFO] [stdout] --> src/day8/code.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn day_8_puzzle_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_altered_boot_code` [INFO] [stdout] --> src/day8/code.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn process_altered_boot_code(boot_code: &Vec, ptr_to_alter: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_boot_code` [INFO] [stdout] --> src/day8/code.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn read_boot_code(file: File) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_9` [INFO] [stdout] --> src/day9/code.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn day_9() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid` [INFO] [stdout] --> src/day9/code.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn is_valid(expected: usize, sum_components: &[usize]) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `complete_break` [INFO] [stdout] --> src/day9/code.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn complete_break(expected_sum: &usize, previous_numbers: &[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_xmas_file` [INFO] [stdout] --> src/day9/code.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn read_xmas_file() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `puzzle_1` [INFO] [stdout] --> src/day10/code.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn puzzle_1() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `puzzle_2` [INFO] [stdout] --> src/day10/code.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn puzzle_2() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eh` [INFO] [stdout] --> src/day10/code.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn eh(curr_value: &usize, curr_pos: &usize, vector: &Vec, sum_vec: &Vec) -> usize { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eh_2` [INFO] [stdout] --> src/day10/code.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn eh_2(curr_value: &usize, curr_pos: &usize, offset: &usize, vector: &Vec) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_joltage_ratings` [INFO] [stdout] --> src/day10/code.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn read_joltage_ratings() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `puzzle_1` [INFO] [stdout] --> src/day11/puzzle1.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn puzzle_1() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_current_state` [INFO] [stdout] --> src/day11/puzzle1.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn print_current_state(current: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `layouts_are_equal` [INFO] [stdout] --> src/day11/puzzle1.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn layouts_are_equal(v1: &Vec>, v2: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_row` [INFO] [stdout] --> src/day11/puzzle1.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn new_row(row_index: usize, last: &Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_status` [INFO] [stdout] --> src/day11/puzzle1.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn new_status(i: usize, j: usize, last: &Vec>) -> Seat { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_occupied_in_area` [INFO] [stdout] --> src/day11/puzzle1.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_occupied_in_area(i: usize, j: usize, last: &Vec>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_range` [INFO] [stdout] --> src/day11/puzzle1.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn get_range(i: usize, max: usize) -> RangeInclusive { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_waiting_room_layout` [INFO] [stdout] --> src/day11/puzzle1.rs:101:4 [INFO] [stdout] | [INFO] [stdout] 101 | fn read_waiting_room_layout() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_waiting_room_layout_row` [INFO] [stdout] --> src/day11/puzzle1.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn read_waiting_room_layout_row(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `puzzle_2` [INFO] [stdout] --> src/day11/puzzle2.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn puzzle_2() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_current_state` [INFO] [stdout] --> src/day11/puzzle2.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn print_current_state(current: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `layouts_are_equal` [INFO] [stdout] --> src/day11/puzzle2.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn layouts_are_equal(v1: &Vec>, v2: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_row` [INFO] [stdout] --> src/day11/puzzle2.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn new_row(row_index: usize, last: &Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_status` [INFO] [stdout] --> src/day11/puzzle2.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn new_status(i: usize, j: usize, last: &Vec>) -> Seat { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_occupied_that_can_be_seen_all_directions` [INFO] [stdout] --> src/day11/puzzle2.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_occupied_that_can_be_seen_all_directions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_occupied` [INFO] [stdout] --> src/day11/puzzle2.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn is_occupied( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_waiting_room_layout` [INFO] [stdout] --> src/day11/puzzle2.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn read_waiting_room_layout() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_waiting_room_layout_row` [INFO] [stdout] --> src/day11/puzzle2.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn read_waiting_room_layout_row(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `puzzle_1` [INFO] [stdout] --> src/day12/code.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn puzzle_1() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_direction` [INFO] [stdout] --> src/day12/code.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn process_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_forward_direction` [INFO] [stdout] --> src/day12/code.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn get_forward_direction(units: usize, pointing_to: &Compass) -> Direction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `turn_ship` [INFO] [stdout] --> src/day12/code.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn turn_ship(angle: usize, pointing_to: &Compass) -> Compass { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `N` [INFO] [stdout] --> src/day12/code.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 174 | N, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `E` [INFO] [stdout] --> src/day12/code.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | E, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `S` [INFO] [stdout] --> src/day12/code.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | S, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `W` [INFO] [stdout] --> src/day12/code.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | W, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `map` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/day10/code.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 18 | match map.get(&diff) { [INFO] [stdout] | --- immutable borrow occurs here [INFO] [stdout] 19 | Some(v) => map.insert(diff, v + 1), [INFO] [stdout] | ^^^ - immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 114 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_1_read_file` [INFO] [stdout] --> src/day1/code.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn day_1_read_file() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_1_puzzle_1` [INFO] [stdout] --> src/day1/code.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn day_1_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_1_puzzle_2` [INFO] [stdout] --> src/day1/code.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn day_1_puzzle_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_2_puzzle_1` [INFO] [stdout] --> src/day2/code.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn day_2_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_entries` [INFO] [stdout] --> src/day2/code.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_entries(file: File) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_2_puzzle_2` [INFO] [stdout] --> src/day2/code.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn day_2_puzzle_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_chars_from_password` [INFO] [stdout] --> src/day2/code.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn get_chars_from_password(e: &DatabaseEntry) -> (char, char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_3_puzzle_1` [INFO] [stdout] --> src/day3/code.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn day_3_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_slope` [INFO] [stdout] --> src/day3/code.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn process_slope(map: &Vec>, right_steps: usize, down_steps: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_map` [INFO] [stdout] --> src/day3/code.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn get_map(file: File) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `convert_line` [INFO] [stdout] --> src/day3/code.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn convert_line(p: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_4_puzzle_1` [INFO] [stdout] --> src/day4/code.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn day_4_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_passport_valid_1` [INFO] [stdout] --> src/day4/code.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn is_passport_valid_1(passport: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_passport_valid_2` [INFO] [stdout] --> src/day4/code.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn is_passport_valid_2(passport: &String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_batch_file` [INFO] [stdout] --> src/day4/code.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn read_batch_file(file: File) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `byr` [INFO] [stdout] --> src/day4/rules.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn byr(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `iyr` [INFO] [stdout] --> src/day4/rules.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn iyr(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eyr` [INFO] [stdout] --> src/day4/rules.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn eyr(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hgt` [INFO] [stdout] --> src/day4/rules.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn hgt(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hcl` [INFO] [stdout] --> src/day4/rules.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn hcl(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ecl` [INFO] [stdout] --> src/day4/rules.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn ecl(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pid` [INFO] [stdout] --> src/day4/rules.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn pid(s: String) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `empty_rule` [INFO] [stdout] --> src/day4/rules.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn empty_rule(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_5_puzzle_1` [INFO] [stdout] --> src/day5/code.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn day_5_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_seat_ids` [INFO] [stdout] --> src/day5/code.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn read_seat_ids(file: File) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_seat_id` [INFO] [stdout] --> src/day5/code.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn get_seat_id(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `convert_binary_to_number` [INFO] [stdout] --> src/day5/code.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn convert_binary_to_number(i: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_6_puzzle_1` [INFO] [stdout] --> src/day6/code.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn day_6_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_answers_file_anyone` [INFO] [stdout] --> src/day6/code.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn read_answers_file_anyone(file: File) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_answers_file_everyone` [INFO] [stdout] --> src/day6/code.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn read_answers_file_everyone(file: File) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_7_puzzle_1` [INFO] [stdout] --> src/day7/puzzle1.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn day_7_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_bag_rules_file` [INFO] [stdout] --> src/day7/puzzle1.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn read_bag_rules_file(file: File) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_outer_inner` [INFO] [stdout] --> src/day7/puzzle1.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn split_outer_inner(line: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_inner_list` [INFO] [stdout] --> src/day7/puzzle1.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_inner_list(inner: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_bags` [INFO] [stdout] --> src/day7/puzzle1.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn process_bags(map: &HashMap>, set: &mut HashSet, desired: String) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `contains_desired` [INFO] [stdout] --> src/day7/puzzle1.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn contains_desired( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_7_puzzle_2` [INFO] [stdout] --> src/day7/puzzle2.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn day_7_puzzle_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_bag_rules_file` [INFO] [stdout] --> src/day7/puzzle2.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn read_bag_rules_file(file: File) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `split_outer_inner` [INFO] [stdout] --> src/day7/puzzle2.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn split_outer_inner(line: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_inner_list` [INFO] [stdout] --> src/day7/puzzle2.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_inner_list(inner: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_bags` [INFO] [stdout] --> src/day7/puzzle2.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn process_bags(map: &HashMap>, desired: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `contains_desired` [INFO] [stdout] --> src/day7/puzzle2.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn contains_desired( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_8_puzzle_1` [INFO] [stdout] --> src/day8/code.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn day_8_puzzle_1() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_8_puzzle_2` [INFO] [stdout] --> src/day8/code.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn day_8_puzzle_2() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_altered_boot_code` [INFO] [stdout] --> src/day8/code.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn process_altered_boot_code(boot_code: &Vec, ptr_to_alter: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_boot_code` [INFO] [stdout] --> src/day8/code.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn read_boot_code(file: File) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `day_9` [INFO] [stdout] --> src/day9/code.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn day_9() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_valid` [INFO] [stdout] --> src/day9/code.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn is_valid(expected: usize, sum_components: &[usize]) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `complete_break` [INFO] [stdout] --> src/day9/code.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn complete_break(expected_sum: &usize, previous_numbers: &[usize]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_xmas_file` [INFO] [stdout] --> src/day9/code.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn read_xmas_file() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `puzzle_1` [INFO] [stdout] --> src/day10/code.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn puzzle_1() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `puzzle_2` [INFO] [stdout] --> src/day10/code.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn puzzle_2() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eh` [INFO] [stdout] --> src/day10/code.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn eh(curr_value: &usize, curr_pos: &usize, vector: &Vec, sum_vec: &Vec) -> usize { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `eh_2` [INFO] [stdout] --> src/day10/code.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn eh_2(curr_value: &usize, curr_pos: &usize, offset: &usize, vector: &Vec) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_joltage_ratings` [INFO] [stdout] --> src/day10/code.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn read_joltage_ratings() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `puzzle_1` [INFO] [stdout] --> src/day11/puzzle1.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn puzzle_1() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_current_state` [INFO] [stdout] --> src/day11/puzzle1.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn print_current_state(current: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `layouts_are_equal` [INFO] [stdout] --> src/day11/puzzle1.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn layouts_are_equal(v1: &Vec>, v2: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_row` [INFO] [stdout] --> src/day11/puzzle1.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn new_row(row_index: usize, last: &Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_status` [INFO] [stdout] --> src/day11/puzzle1.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn new_status(i: usize, j: usize, last: &Vec>) -> Seat { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_occupied_in_area` [INFO] [stdout] --> src/day11/puzzle1.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_occupied_in_area(i: usize, j: usize, last: &Vec>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_range` [INFO] [stdout] --> src/day11/puzzle1.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn get_range(i: usize, max: usize) -> RangeInclusive { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_waiting_room_layout` [INFO] [stdout] --> src/day11/puzzle1.rs:101:4 [INFO] [stdout] | [INFO] [stdout] 101 | fn read_waiting_room_layout() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_waiting_room_layout_row` [INFO] [stdout] --> src/day11/puzzle1.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn read_waiting_room_layout_row(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `puzzle_2` [INFO] [stdout] --> src/day11/puzzle2.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn puzzle_2() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_current_state` [INFO] [stdout] --> src/day11/puzzle2.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn print_current_state(current: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `layouts_are_equal` [INFO] [stdout] --> src/day11/puzzle2.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn layouts_are_equal(v1: &Vec>, v2: &Vec>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_row` [INFO] [stdout] --> src/day11/puzzle2.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn new_row(row_index: usize, last: &Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_status` [INFO] [stdout] --> src/day11/puzzle2.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn new_status(i: usize, j: usize, last: &Vec>) -> Seat { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_occupied_that_can_be_seen_all_directions` [INFO] [stdout] --> src/day11/puzzle2.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn get_occupied_that_can_be_seen_all_directions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_occupied` [INFO] [stdout] --> src/day11/puzzle2.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn is_occupied( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_waiting_room_layout` [INFO] [stdout] --> src/day11/puzzle2.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn read_waiting_room_layout() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_waiting_room_layout_row` [INFO] [stdout] --> src/day11/puzzle2.rs:146:4 [INFO] [stdout] | [INFO] [stdout] 146 | fn read_waiting_room_layout_row(s: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `puzzle_1` [INFO] [stdout] --> src/day12/code.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn puzzle_1() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_direction` [INFO] [stdout] --> src/day12/code.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn process_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_forward_direction` [INFO] [stdout] --> src/day12/code.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 147 | fn get_forward_direction(units: usize, pointing_to: &Compass) -> Direction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `turn_ship` [INFO] [stdout] --> src/day12/code.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn turn_ship(angle: usize, pointing_to: &Compass) -> Compass { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `N` [INFO] [stdout] --> src/day12/code.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 174 | N, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `E` [INFO] [stdout] --> src/day12/code.rs:175:5 [INFO] [stdout] | [INFO] [stdout] 175 | E, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `S` [INFO] [stdout] --> src/day12/code.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 176 | S, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `W` [INFO] [stdout] --> src/day12/code.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | W, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 114 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.85s [INFO] running `Command { std: "docker" "inspect" "1a5098d4c58e572ca65b6c2c09a288ed80931f2bf375955fe0d30e925fb1031a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a5098d4c58e572ca65b6c2c09a288ed80931f2bf375955fe0d30e925fb1031a", kill_on_drop: false }` [INFO] [stdout] 1a5098d4c58e572ca65b6c2c09a288ed80931f2bf375955fe0d30e925fb1031a