[INFO] cloning repository https://github.com/greenonion/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/greenonion/advent-of-code-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgreenonion%2Fadvent-of-code-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgreenonion%2Fadvent-of-code-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eb72d97fefb37b2f6568898118b6090f8e63a7ba [INFO] checking greenonion/advent-of-code-2020 against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgreenonion%2Fadvent-of-code-2020" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/greenonion/advent-of-code-2020 on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/greenonion/advent-of-code-2020 [INFO] finished tweaking git repo https://github.com/greenonion/advent-of-code-2020 [INFO] tweaked toml for git repo https://github.com/greenonion/advent-of-code-2020 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/greenonion/advent-of-code-2020 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc1c4764a0728a5122096c8d402f90cc0b3335db50310fc1d4a0fd096b6887a3 [INFO] running `Command { std: "docker" "start" "-a" "bc1c4764a0728a5122096c8d402f90cc0b3335db50310fc1d4a0fd096b6887a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc1c4764a0728a5122096c8d402f90cc0b3335db50310fc1d4a0fd096b6887a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc1c4764a0728a5122096c8d402f90cc0b3335db50310fc1d4a0fd096b6887a3", kill_on_drop: false }` [INFO] [stdout] bc1c4764a0728a5122096c8d402f90cc0b3335db50310fc1d4a0fd096b6887a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f504b27c5d7e23a84a4a53c3adf56c0665205b2aa24047e9d4703dedcbc7d19 [INFO] running `Command { std: "docker" "start" "-a" "6f504b27c5d7e23a84a4a53c3adf56c0665205b2aa24047e9d4703dedcbc7d19", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking advent-of-code-2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day1.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Problem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day1.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn part_a(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn part_b(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day2.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Problem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `minimum`, `maximum`, `character`, and `password` are never read [INFO] [stdout] --> src/day2.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct UserPassword { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 13 | minimum: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | maximum: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | character: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/day2.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl UserPassword { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 40 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos1`, `pos2`, `character`, and `password` are never read [INFO] [stdout] --> src/day2.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct UserPassword2 { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 52 | pos1: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | pos2: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 54 | character: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 55 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/day2.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl UserPassword2 { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 81 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day2.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 96 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/day3.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `squares` is never read [INFO] [stdout] --> src/day3.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct Level { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 35 | squares: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Level` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day3.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day3.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 56 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn part_a(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn part_b(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn trees_at_slope(&mut self, right: usize, down: usize) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn square_kind_at(&self, pos: &Point) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn square(&self) -> &SquareKind { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn move_to(&mut self, direction: Direction) -> &SquareKind { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn move_right(&mut self) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn move_down(&mut self) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn is_at_bottom(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/day3.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/day4.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Passport { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 12 | data: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Passport` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day4.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl Passport { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 34 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn is_valid_strict(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn is_valid_byr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | fn is_valid_iyr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn is_valid_eyr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn is_valid_hgt(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn is_valid_hcl(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn is_valid_ecl(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn is_valid_pid(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day4.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day4.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 157 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 158 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BoardingPass` is never constructed [INFO] [stdout] --> src/day5.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct BoardingPass { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `seat_id`, `row`, and `column` are never used [INFO] [stdout] --> src/day5.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl BoardingPass { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(ticket: &str) -> BoardingPass { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn seat_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn row(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn column(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day5.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day5.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 86 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day1.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Problem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day1.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn part_a(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn part_b(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day2.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Problem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `minimum`, `maximum`, `character`, and `password` are never read [INFO] [stdout] --> src/day2.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct UserPassword { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 13 | minimum: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | maximum: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | character: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/day2.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl UserPassword { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 40 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos1`, `pos2`, `character`, and `password` are never read [INFO] [stdout] --> src/day2.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct UserPassword2 { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 52 | pos1: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | pos2: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 54 | character: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 55 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/day2.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl UserPassword2 { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 81 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day2.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 96 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/day3.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `squares` is never read [INFO] [stdout] --> src/day3.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct Level { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 35 | squares: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Level` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day3.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day3.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 56 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn part_a(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn part_b(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn trees_at_slope(&mut self, right: usize, down: usize) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn square_kind_at(&self, pos: &Point) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn square(&self) -> &SquareKind { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn move_to(&mut self, direction: Direction) -> &SquareKind { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn move_right(&mut self) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn move_down(&mut self) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn is_at_bottom(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/day3.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/day4.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Passport { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 12 | data: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Passport` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day4.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl Passport { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 34 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn is_valid_strict(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn is_valid_byr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | fn is_valid_iyr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn is_valid_eyr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn is_valid_hgt(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn is_valid_hcl(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn is_valid_ecl(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn is_valid_pid(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day4.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day4.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 157 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 158 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day5.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day5.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 86 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.39s [INFO] running `Command { std: "docker" "inspect" "6f504b27c5d7e23a84a4a53c3adf56c0665205b2aa24047e9d4703dedcbc7d19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f504b27c5d7e23a84a4a53c3adf56c0665205b2aa24047e9d4703dedcbc7d19", kill_on_drop: false }` [INFO] [stdout] 6f504b27c5d7e23a84a4a53c3adf56c0665205b2aa24047e9d4703dedcbc7d19 [INFO] checking greenonion/advent-of-code-2020 against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgreenonion%2Fadvent-of-code-2020" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/greenonion/advent-of-code-2020 on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/greenonion/advent-of-code-2020 [INFO] finished tweaking git repo https://github.com/greenonion/advent-of-code-2020 [INFO] tweaked toml for git repo https://github.com/greenonion/advent-of-code-2020 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/greenonion/advent-of-code-2020 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 020108861c864cc8776a1d63d9b305efc6e72037ea53b3cc3a6b40366a1d4069 [INFO] running `Command { std: "docker" "start" "-a" "020108861c864cc8776a1d63d9b305efc6e72037ea53b3cc3a6b40366a1d4069", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "020108861c864cc8776a1d63d9b305efc6e72037ea53b3cc3a6b40366a1d4069", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "020108861c864cc8776a1d63d9b305efc6e72037ea53b3cc3a6b40366a1d4069", kill_on_drop: false }` [INFO] [stdout] 020108861c864cc8776a1d63d9b305efc6e72037ea53b3cc3a6b40366a1d4069 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d113b1ff14319198a988566deb6d0db9c5efeafbae8380c1fe31a3a50577ea1 [INFO] running `Command { std: "docker" "start" "-a" "1d113b1ff14319198a988566deb6d0db9c5efeafbae8380c1fe31a3a50577ea1", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking advent-of-code-2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day1.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Problem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day1.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn part_a(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn part_b(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day2.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Problem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `minimum`, `maximum`, `character`, and `password` are never read [INFO] [stdout] --> src/day2.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct UserPassword { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 13 | minimum: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | maximum: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | character: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/day2.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl UserPassword { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 40 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos1`, `pos2`, `character`, and `password` are never read [INFO] [stdout] --> src/day2.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct UserPassword2 { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 52 | pos1: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | pos2: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 54 | character: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 55 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/day2.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl UserPassword2 { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 81 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day2.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 96 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/day3.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `squares` is never read [INFO] [stdout] --> src/day3.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct Level { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 35 | squares: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Level` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day3.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day3.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 56 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn part_a(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn part_b(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn trees_at_slope(&mut self, right: usize, down: usize) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn square_kind_at(&self, pos: &Point) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn square(&self) -> &SquareKind { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn move_to(&mut self, direction: Direction) -> &SquareKind { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn move_right(&mut self) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn move_down(&mut self) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn is_at_bottom(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/day3.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/day4.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Passport { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 12 | data: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Passport` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day4.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl Passport { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 34 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn is_valid_strict(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn is_valid_byr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | fn is_valid_iyr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn is_valid_eyr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn is_valid_hgt(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn is_valid_hcl(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn is_valid_ecl(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn is_valid_pid(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day4.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day4.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 157 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 158 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day5.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day5.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 86 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day1.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Problem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day1.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn part_a(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn part_b(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day2.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Problem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `minimum`, `maximum`, `character`, and `password` are never read [INFO] [stdout] --> src/day2.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct UserPassword { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 13 | minimum: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 14 | maximum: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | character: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 16 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/day2.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl UserPassword { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 40 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos1`, `pos2`, `character`, and `password` are never read [INFO] [stdout] --> src/day2.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct UserPassword2 { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 52 | pos1: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | pos2: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 54 | character: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 55 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_valid` is never used [INFO] [stdout] --> src/day2.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl UserPassword2 { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 81 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day2.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 96 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/day3.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `squares` is never read [INFO] [stdout] --> src/day3.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct Level { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 35 | squares: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Level` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day3.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day3.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 56 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn part_a(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn part_b(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | fn trees_at_slope(&mut self, right: usize, down: usize) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn square_kind_at(&self, pos: &Point) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn square(&self) -> &SquareKind { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn move_to(&mut self, direction: Direction) -> &SquareKind { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn move_right(&mut self) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn move_down(&mut self) -> &SquareKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn is_at_bottom(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/day3.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/day4.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Passport { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 12 | data: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Passport` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/day4.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 33 | impl Passport { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 34 | fn is_valid(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn is_valid_strict(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn is_valid_byr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | fn is_valid_iyr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn is_valid_eyr(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn is_valid_hgt(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | fn is_valid_hcl(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn is_valid_ecl(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn is_valid_pid(v: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day4.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day4.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 157 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 158 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BoardingPass` is never constructed [INFO] [stdout] --> src/day5.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct BoardingPass { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `seat_id`, `row`, and `column` are never used [INFO] [stdout] --> src/day5.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl BoardingPass { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(ticket: &str) -> BoardingPass { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn seat_id(&self) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn row(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn column(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Problem` is never constructed [INFO] [stdout] --> src/day5.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct Problem { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `part_a`, and `part_b` are never used [INFO] [stdout] --> src/day5.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Problem { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 86 | pub fn new() -> Problem { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn part_a(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn part_b(&self) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.27s [INFO] running `Command { std: "docker" "inspect" "1d113b1ff14319198a988566deb6d0db9c5efeafbae8380c1fe31a3a50577ea1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d113b1ff14319198a988566deb6d0db9c5efeafbae8380c1fe31a3a50577ea1", kill_on_drop: false }` [INFO] [stdout] 1d113b1ff14319198a988566deb6d0db9c5efeafbae8380c1fe31a3a50577ea1