[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 master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrockeo%2Fadvent-of-code-2020" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/crockeo/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/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-4-tc1/source/Cargo.toml [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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 5756c1192daaf214a7057257e730438da14e9b144c913841d047f0728bbd8cd0 [INFO] running `Command { std: "docker" "start" "-a" "5756c1192daaf214a7057257e730438da14e9b144c913841d047f0728bbd8cd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5756c1192daaf214a7057257e730438da14e9b144c913841d047f0728bbd8cd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5756c1192daaf214a7057257e730438da14e9b144c913841d047f0728bbd8cd0", kill_on_drop: false }` [INFO] [stdout] 5756c1192daaf214a7057257e730438da14e9b144c913841d047f0728bbd8cd0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 26dbc0f78e2589c07a5f8fcd3df46f18796f2819aac53ec9eade882d5b2760f1 [INFO] running `Command { std: "docker" "start" "-a" "26dbc0f78e2589c07a5f8fcd3df46f18796f2819aac53ec9eade882d5b2760f1", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking thread_local v1.0.1 [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)]` 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)]` 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)]` 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)]` 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: fields `min` and `max` are never read [INFO] [stdout] --> src/problem_16.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct Range { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 24 | min: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | max: i64, [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: field `0` is never read [INFO] [stdout] --> src/problem_16.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | struct DisjunctRange(Vec); [INFO] [stdout] | ------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 38 | struct DisjunctRange(()); [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: field `0` is never read [INFO] [stdout] --> src/problem_16.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | struct ValidationRules(HashMap); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 56 | struct ValidationRules(()); [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: field `0` is never read [INFO] [stdout] --> src/problem_16.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 87 | struct Ticket(Vec); [INFO] [stdout] | ------ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 87 | struct Ticket(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [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)]` 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)]` 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: fields `min` and `max` are never read [INFO] [stdout] --> src/problem_16.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct Range { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 24 | min: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | max: i64, [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: field `0` is never read [INFO] [stdout] --> src/problem_16.rs:38:22 [INFO] [stdout] | [INFO] [stdout] 38 | struct DisjunctRange(Vec); [INFO] [stdout] | ------------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 38 | struct DisjunctRange(()); [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: field `0` is never read [INFO] [stdout] --> src/problem_16.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | struct ValidationRules(HashMap); [INFO] [stdout] | --------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 56 | struct ValidationRules(()); [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: field `0` is never read [INFO] [stdout] --> src/problem_16.rs:87:15 [INFO] [stdout] | [INFO] [stdout] 87 | struct Ticket(Vec); [INFO] [stdout] | ------ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 87 | struct Ticket(()); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.06s [INFO] running `Command { std: "docker" "inspect" "26dbc0f78e2589c07a5f8fcd3df46f18796f2819aac53ec9eade882d5b2760f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26dbc0f78e2589c07a5f8fcd3df46f18796f2819aac53ec9eade882d5b2760f1", kill_on_drop: false }` [INFO] [stdout] 26dbc0f78e2589c07a5f8fcd3df46f18796f2819aac53ec9eade882d5b2760f1