[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] testing tlehman/advent-2020 against master#1ddedbaa5919b7b3e70d984660e21e844c615c97 for pr-128400 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlehman%2Fadvent-2020" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tlehman/advent-2020 on toolchain 1ddedbaa5919b7b3e70d984660e21e844c615c97 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "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-0-tc1/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" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing tlehman/advent-2020 against try#33f1d8bb92813a1bfc23c093c9f443ab09290307 for pr-128400 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlehman%2Fadvent-2020" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tlehman/advent-2020 on toolchain 33f1d8bb92813a1bfc23c093c9f443ab09290307 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "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-0-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" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing tlehman/advent-2020 against try#33f1d8bb92813a1bfc23c093c9f443ab09290307 for pr-128400 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftlehman%2Fadvent-2020" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tlehman/advent-2020 on toolchain 33f1d8bb92813a1bfc23c093c9f443ab09290307 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "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-0-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" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a7040bee7dc32e59dec63a767167b24a3b8c26976c5231839da469a19404f46 [INFO] running `Command { std: "docker" "start" "-a" "5a7040bee7dc32e59dec63a767167b24a3b8c26976c5231839da469a19404f46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a7040bee7dc32e59dec63a767167b24a3b8c26976c5231839da469a19404f46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a7040bee7dc32e59dec63a767167b24a3b8c26976c5231839da469a19404f46", kill_on_drop: false }` [INFO] [stdout] 5a7040bee7dc32e59dec63a767167b24a3b8c26976c5231839da469a19404f46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8dc9d375aff61318f9bfb7396f225bc29cf1cc428c03e0b3013ff8cac43c91ab [INFO] running `Command { std: "docker" "start" "-a" "8dc9d375aff61318f9bfb7396f225bc29cf1cc428c03e0b3013ff8cac43c91ab", kill_on_drop: false }` [INFO] [stderr] Compiling 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: 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: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "8dc9d375aff61318f9bfb7396f225bc29cf1cc428c03e0b3013ff8cac43c91ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dc9d375aff61318f9bfb7396f225bc29cf1cc428c03e0b3013ff8cac43c91ab", kill_on_drop: false }` [INFO] [stdout] 8dc9d375aff61318f9bfb7396f225bc29cf1cc428c03e0b3013ff8cac43c91ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a69826e8d75fd13b58203d6b5895f8de7cde9839f4363099142eb60a4300d7ca [INFO] running `Command { std: "docker" "start" "-a" "a69826e8d75fd13b58203d6b5895f8de7cde9839f4363099142eb60a4300d7ca", kill_on_drop: false }` [INFO] [stderr] Compiling 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: 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: 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] 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] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.55s [INFO] running `Command { std: "docker" "inspect" "a69826e8d75fd13b58203d6b5895f8de7cde9839f4363099142eb60a4300d7ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a69826e8d75fd13b58203d6b5895f8de7cde9839f4363099142eb60a4300d7ca", kill_on_drop: false }` [INFO] [stdout] a69826e8d75fd13b58203d6b5895f8de7cde9839f4363099142eb60a4300d7ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 89cdb1e73da4266bf5eb3bd882ca413105ebacd5394fa6f515cc51b1d139eb9e [INFO] running `Command { std: "docker" "start" "-a" "89cdb1e73da4266bf5eb3bd882ca413105ebacd5394fa6f515cc51b1d139eb9e", kill_on_drop: false }` [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/day03.rs:82:13 [INFO] [stderr] | [INFO] [stderr] 82 | let mut toboggan_map = TobogganMap { rows: lines, width: w }; [INFO] [stderr] | ----^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `col` [INFO] [stderr] --> src/day03.rs:107:17 [INFO] [stderr] | [INFO] [stderr] 107 | for col in 0..6 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static `empty` is never used [INFO] [stderr] --> src/day03.rs:71:8 [INFO] [stderr] | [INFO] [stderr] 71 | static empty: char = '.'; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `cid` is never read [INFO] [stderr] --> src/day04.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 65 | struct Passport { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 73 | cid: Option // (Country ID) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: static variable `empty` should have an upper case name [INFO] [stderr] --> src/day03.rs:71:8 [INFO] [stderr] | [INFO] [stderr] 71 | static empty: char = '.'; [INFO] [stderr] | ^^^^^ help: convert the identifier to upper case: `EMPTY` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static variable `tree` should have an upper case name [INFO] [stderr] --> src/day03.rs:72:8 [INFO] [stderr] | [INFO] [stderr] 72 | static tree: char = '#'; [INFO] [stderr] | ^^^^ help: convert the identifier to upper case: `TREE` [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/day03.rs:132:45 [INFO] [stderr] | [INFO] [stderr] 132 | lines.push(String::from(raw_lines[i].clone())); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/day03.rs:177:45 [INFO] [stderr] | [INFO] [stderr] 177 | lines.push(String::from(raw_lines[i].clone())); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] [INFO] [stderr] warning: `advent-2020` (bin "advent-2020" test) generated 8 warnings (run `cargo fix --bin "advent-2020" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/advent_2020-f5064a244cc873e4) [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test day01::sum2_to_2020_mult_test ... ok [INFO] [stdout] test day02::parse_rule_test ... ok [INFO] [stdout] test day02::valid_password_part_2_test ... ok [INFO] [stdout] test day03::test_parse_lines ... ok [INFO] [stdout] test day02::valid_password_test ... ok [INFO] [stdout] test day03::test_part1 ... ok [INFO] [stdout] test day04::passport_from_vector_test ... ok [INFO] [stdout] test day04::valid_northpole_credential_test ... ok [INFO] [stdout] test day04::invalid_passport_test ... ok [INFO] [stdout] test day01::sum3_to_2020_mult_test ... ok [INFO] [stdout] test day04::batch_passports_parser_test ... ok [INFO] [stdout] test day04::valid_passport_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "89cdb1e73da4266bf5eb3bd882ca413105ebacd5394fa6f515cc51b1d139eb9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89cdb1e73da4266bf5eb3bd882ca413105ebacd5394fa6f515cc51b1d139eb9e", kill_on_drop: false }` [INFO] [stdout] 89cdb1e73da4266bf5eb3bd882ca413105ebacd5394fa6f515cc51b1d139eb9e