[INFO] cloning repository https://github.com/tlehman/advent-2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tlehman/advent-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlehman%2Fadvent-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlehman%2Fadvent-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 93ddb4a8718d387cf216c41952def74abb8e41be [INFO] checking tlehman/advent-2020/93ddb4a8718d387cf216c41952def74abb8e41be against master#fcac501a73cdde54de46a0683567f1a890730555 for pr-151102 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlehman%2Fadvent-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] started tweaking git repo https://github.com/tlehman/advent-2020 [INFO] finished tweaking git repo https://github.com/tlehman/advent-2020 [INFO] tweaked toml for git repo https://github.com/tlehman/advent-2020 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tlehman/advent-2020 on toolchain fcac501a73cdde54de46a0683567f1a890730555 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fcac501a73cdde54de46a0683567f1a890730555" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tlehman/advent-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" "+fcac501a73cdde54de46a0683567f1a890730555" "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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+fcac501a73cdde54de46a0683567f1a890730555" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f00f3f160952cec5ddd855b31b643bd33c25bbfd2737774b1bdf66c351453eda [INFO] running `Command { std: "docker" "start" "-a" "f00f3f160952cec5ddd855b31b643bd33c25bbfd2737774b1bdf66c351453eda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f00f3f160952cec5ddd855b31b643bd33c25bbfd2737774b1bdf66c351453eda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f00f3f160952cec5ddd855b31b643bd33c25bbfd2737774b1bdf66c351453eda", kill_on_drop: false }` [INFO] [stdout] f00f3f160952cec5ddd855b31b643bd33c25bbfd2737774b1bdf66c351453eda [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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+fcac501a73cdde54de46a0683567f1a890730555" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 737c926f2be4c701ed7c7674f2fd6ff08d70e0eae20f09191673e488bd19f5a9 [INFO] running `Command { std: "docker" "start" "-a" "737c926f2be4c701ed7c7674f2fd6ff08d70e0eae20f09191673e488bd19f5a9", kill_on_drop: false }` [INFO] [stderr] Checking advent-2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day03.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut toboggan_map = TobogganMap { rows: lines, width: w }; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/day03.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | for col in 0..6 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_password` is never used [INFO] [stdout] --> src/day02.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn valid_password(raw_rule: &str, password: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_password_part2` is never used [INFO] [stdout] --> src/day02.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn valid_password_part2(raw_rule: &str, password: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `empty` is never used [INFO] [stdout] --> src/day03.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | static empty: char = '.'; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_rows` is never used [INFO] [stdout] --> src/day03.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl TobogganMap { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn print_rows(self: &TobogganMap) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Passport` is never constructed [INFO] [stdout] --> src/day04.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | struct Passport { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_vector` and `valid` are never used [INFO] [stdout] --> src/day04.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl Passport { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 77 | pub fn from_vector(v: Vec) -> Passport { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn valid(self: &Passport) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_batch_passports` is never used [INFO] [stdout] --> src/day04.rs:166:8 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn parse_batch_passports(batch_passports: &[&str]) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `empty` should have an upper case name [INFO] [stdout] --> src/day03.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | static empty: char = '.'; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `EMPTY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `tree` should have an upper case name [INFO] [stdout] --> src/day03.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | static tree: char = '#'; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 72 - static tree: char = '#'; [INFO] [stdout] 72 + static TREE: char = '#'; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day03.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut toboggan_map = TobogganMap { rows: lines, width: w }; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/day03.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | for col in 0..6 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `empty` is never used [INFO] [stdout] --> src/day03.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | static empty: char = '.'; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_rows` is never used [INFO] [stdout] --> src/day03.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl TobogganMap { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn print_rows(self: &TobogganMap) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cid` is never read [INFO] [stdout] --> src/day04.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 65 | struct Passport { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 73 | cid: Option // (Country ID) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `empty` should have an upper case name [INFO] [stdout] --> src/day03.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | static empty: char = '.'; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `EMPTY` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `tree` should have an upper case name [INFO] [stdout] --> src/day03.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | static tree: char = '#'; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 72 - static tree: char = '#'; [INFO] [stdout] 72 + static TREE: char = '#'; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/day03.rs:132:45 [INFO] [stdout] | [INFO] [stdout] 132 | lines.push(String::from(raw_lines[i].clone())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/day03.rs:177:45 [INFO] [stdout] | [INFO] [stdout] 177 | lines.push(String::from(raw_lines[i].clone())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.31s [INFO] running `Command { std: "docker" "inspect" "737c926f2be4c701ed7c7674f2fd6ff08d70e0eae20f09191673e488bd19f5a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "737c926f2be4c701ed7c7674f2fd6ff08d70e0eae20f09191673e488bd19f5a9", kill_on_drop: false }` [INFO] [stdout] 737c926f2be4c701ed7c7674f2fd6ff08d70e0eae20f09191673e488bd19f5a9