[INFO] cloning repository https://github.com/crockeo/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/crockeo/advent-of-code-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrockeo%2Fadvent-of-code-2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrockeo%2Fadvent-of-code-2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ecb30268cfc945d66f6a9c65914ad41c5fa28572 [INFO] checking crockeo/advent-of-code-2020 against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrockeo%2Fadvent-of-code-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] started tweaking git repo https://github.com/crockeo/advent-of-code-2020 [INFO] finished tweaking git repo https://github.com/crockeo/advent-of-code-2020 [INFO] tweaked toml for git repo https://github.com/crockeo/advent-of-code-2020 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/crockeo/advent-of-code-2020 on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/crockeo/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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 544ab1ad2a3b04f2625497c1bdeecb8651de5255a3cf99c625d67486c92863ff [INFO] running `Command { std: "docker" "start" "-a" "544ab1ad2a3b04f2625497c1bdeecb8651de5255a3cf99c625d67486c92863ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "544ab1ad2a3b04f2625497c1bdeecb8651de5255a3cf99c625d67486c92863ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "544ab1ad2a3b04f2625497c1bdeecb8651de5255a3cf99c625d67486c92863ff", kill_on_drop: false }` [INFO] [stdout] 544ab1ad2a3b04f2625497c1bdeecb8651de5255a3cf99c625d67486c92863ff [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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b3255afad00c9b84c9ee4b309b4ab9b78c851f54a3f6a26451a8a6f84e2e2d8 [INFO] running `Command { std: "docker" "start" "-a" "0b3255afad00c9b84c9ee4b309b4ab9b78c851f54a3f6a26451a8a6f84e2e2d8", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking advent-of-code-2020 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/problem_01.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> src/problem_07.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/problem_07.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> src/problem_07.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/problem_07.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expansion_rules` [INFO] [stdout] --> src/problem_07.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let expansion_rules = load_expansion_rules( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expansion_rules` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problem_07.rs:75:57 [INFO] [stdout] | [INFO] [stdout] 75 | fn load_expansion_rules<'a, I: Iterator>(i: I) -> Option> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/problem_07.rs:79:28 [INFO] [stdout] | [INFO] [stdout] 79 | fn load_expansion_rule<'a>(s: &'a str) -> Option<(&'a str, HashMap<&'a str, i64>)> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/problem_16.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `country_id` is never read [INFO] [stdout] --> src/problem_04.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 81 | struct Passport<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 89 | country_id: Option<&'a str>, [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] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_contain_target` is never used [INFO] [stdout] --> src/problem_07.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn can_contain_target<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_expansion_rule` is never used [INFO] [stdout] --> src/problem_07.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn load_expansion_rule<'a>(s: &'a str) -> Option<(&'a str, HashMap<&'a str, i64>)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Range` is never constructed [INFO] [stdout] --> src/problem_16.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Range { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `contains` are never used [INFO] [stdout] --> src/problem_16.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Range { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 29 | fn new(min: i64, max: i64) -> Range { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn contains(&self, value: i64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DisjunctRange` is never constructed [INFO] [stdout] --> src/problem_16.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct DisjunctRange(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `contains` are never used [INFO] [stdout] --> src/problem_16.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl DisjunctRange { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 41 | fn new(ranges: Vec) -> DisjunctRange { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn contains(&self, value: i64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidationRules` is never constructed [INFO] [stdout] --> src/problem_16.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct ValidationRules(HashMap); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `are_any_valid` is never used [INFO] [stdout] --> src/problem_16.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl ValidationRules { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | fn are_any_valid(&self, t: &Ticket) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/problem_16.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | struct Ticket(Vec); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/problem_04.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | fn parse_batch_passports(s: &str) -> Vec { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 43 | fn parse_batch_passports(s: &str) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/problem_04.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | fn parse(s: &'_ str) -> Option { [INFO] [stdout] | ^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 95 | fn parse(s: &'_ str) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expansion_rules` [INFO] [stdout] --> src/problem_07.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let expansion_rules = load_expansion_rules( [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expansion_rules` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problem_07.rs:75:57 [INFO] [stdout] | [INFO] [stdout] 75 | fn load_expansion_rules<'a, I: Iterator>(i: I) -> Option> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/problem_07.rs:79:28 [INFO] [stdout] | [INFO] [stdout] 79 | fn load_expansion_rule<'a>(s: &'a str) -> Option<(&'a str, HashMap<&'a str, i64>)> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/problem_16.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | fn from_str(s: &str) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `country_id` is never read [INFO] [stdout] --> src/problem_04.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 81 | struct Passport<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 89 | country_id: Option<&'a str>, [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] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_contain_target` is never used [INFO] [stdout] --> src/problem_07.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn can_contain_target<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Range` is never constructed [INFO] [stdout] --> src/problem_16.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Range { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `contains` are never used [INFO] [stdout] --> src/problem_16.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Range { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 29 | fn new(min: i64, max: i64) -> Range { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn contains(&self, value: i64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DisjunctRange` is never constructed [INFO] [stdout] --> src/problem_16.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct DisjunctRange(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `contains` are never used [INFO] [stdout] --> src/problem_16.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl DisjunctRange { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 41 | fn new(ranges: Vec) -> DisjunctRange { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn contains(&self, value: i64) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidationRules` is never constructed [INFO] [stdout] --> src/problem_16.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct ValidationRules(HashMap); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `are_any_valid` is never used [INFO] [stdout] --> src/problem_16.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 58 | impl ValidationRules { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | fn are_any_valid(&self, t: &Ticket) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/problem_16.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | struct Ticket(Vec); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/problem_04.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | fn parse_batch_passports(s: &str) -> Vec { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 43 | fn parse_batch_passports(s: &str) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/problem_04.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | fn parse(s: &'_ str) -> Option { [INFO] [stdout] | ^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 95 | fn parse(s: &'_ str) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.09s [INFO] running `Command { std: "docker" "inspect" "0b3255afad00c9b84c9ee4b309b4ab9b78c851f54a3f6a26451a8a6f84e2e2d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b3255afad00c9b84c9ee4b309b4ab9b78c851f54a3f6a26451a8a6f84e2e2d8", kill_on_drop: false }` [INFO] [stdout] 0b3255afad00c9b84c9ee4b309b4ab9b78c851f54a3f6a26451a8a6f84e2e2d8