[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 against try#024378d9203a4009ed73d6db2681b88a8d74ce7a for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlehman%2Fadvent-2020" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tlehman/advent-2020 on toolchain 024378d9203a4009ed73d6db2681b88a8d74ce7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/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-3-tc2/source/Cargo.toml [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" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24534990a4c86fedacb7c2a3f28cc2d584fb0d82c73a0affa37ecdd2ea340f6c [INFO] running `Command { std: "docker" "start" "-a" "24534990a4c86fedacb7c2a3f28cc2d584fb0d82c73a0affa37ecdd2ea340f6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24534990a4c86fedacb7c2a3f28cc2d584fb0d82c73a0affa37ecdd2ea340f6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24534990a4c86fedacb7c2a3f28cc2d584fb0d82c73a0affa37ecdd2ea340f6c", kill_on_drop: false }` [INFO] [stdout] 24534990a4c86fedacb7c2a3f28cc2d584fb0d82c73a0affa37ecdd2ea340f6c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+024378d9203a4009ed73d6db2681b88a8d74ce7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54d9867911d250f6e77549f1752265b45aa458ad0cf4d3354f3aa468b8feef8a [INFO] running `Command { std: "docker" "start" "-a" "54d9867911d250f6e77549f1752265b45aa458ad0cf4d3354f3aa468b8feef8a", 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)]` 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)]` 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)]` 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)]` 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] | ^^^^ help: convert the identifier to upper case: `TREE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [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)]` 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)]` 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)]` 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)]` 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] | ^^^^ help: convert the identifier to upper case: `TREE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: 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] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[deny(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/day03.rs:177:45 [INFO] [stdout] | [INFO] [stdout] 177 | lines.push(String::from(raw_lines[i].clone())); [INFO] [stdout] | ^^^^^^^^ unnecessary method call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-2020` (bin "advent-2020" test) due to 3 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "54d9867911d250f6e77549f1752265b45aa458ad0cf4d3354f3aa468b8feef8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54d9867911d250f6e77549f1752265b45aa458ad0cf4d3354f3aa468b8feef8a", kill_on_drop: false }` [INFO] [stdout] 54d9867911d250f6e77549f1752265b45aa458ad0cf4d3354f3aa468b8feef8a