[INFO] cloning repository https://github.com/zdcthomas/advent_rs_20 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zdcthomas/advent_rs_20" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzdcthomas%2Fadvent_rs_20", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzdcthomas%2Fadvent_rs_20'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8ff36b2c561fdc6833807516b8f602058ad00a53 [INFO] building zdcthomas/advent_rs_20 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzdcthomas%2Fadvent_rs_20" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zdcthomas/advent_rs_20 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zdcthomas/advent_rs_20 [INFO] finished tweaking git repo https://github.com/zdcthomas/advent_rs_20 [INFO] tweaked toml for git repo https://github.com/zdcthomas/advent_rs_20 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zdcthomas/advent_rs_20 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 006df6d2b275b3b88a1596e2ae702a1ec2e0428625311ebf084ff3026994d0ca [INFO] running `Command { std: "docker" "start" "-a" "006df6d2b275b3b88a1596e2ae702a1ec2e0428625311ebf084ff3026994d0ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "006df6d2b275b3b88a1596e2ae702a1ec2e0428625311ebf084ff3026994d0ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "006df6d2b275b3b88a1596e2ae702a1ec2e0428625311ebf084ff3026994d0ca", kill_on_drop: false }` [INFO] [stdout] 006df6d2b275b3b88a1596e2ae702a1ec2e0428625311ebf084ff3026994d0ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32e3904a09f165608373e92b22119e48b4a92a90abe610cf5d911fd47259a74a [INFO] running `Command { std: "docker" "start" "-a" "32e3904a09f165608373e92b22119e48b4a92a90abe610cf5d911fd47259a74a", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling day_1 v0.0.0 (/opt/rustwide/workdir/day_1) [INFO] [stderr] Compiling day_5 v0.0.0 (/opt/rustwide/workdir/day_5) [INFO] [stderr] Compiling day_3 v0.0.0 (/opt/rustwide/workdir/day_3) [INFO] [stderr] Compiling day_2 v0.0.0 (/opt/rustwide/workdir/day_2) [INFO] [stdout] warning: function `sample_data` is never used [INFO] [stdout] --> day_3/src/lib.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn sample_data() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input` is never used [INFO] [stdout] --> day_3/src/lib.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn input() -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> day_3/src/lib.rs:351:4 [INFO] [stdout] | [INFO] [stdout] 351 | fn run(input: Vec, rise: usize, run: usize) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sample_input` is never used [INFO] [stdout] --> day_1/src/lib.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn sample_input() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_id` is never used [INFO] [stdout] --> day_5/src/lib.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn get_id(location: &str) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_missing_seat` is never used [INFO] [stdout] --> day_5/src/lib.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn find_missing_seat() -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_row` is never used [INFO] [stdout] --> day_5/src/lib.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn get_row(location: &str) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_column` is never used [INFO] [stdout] --> day_5/src/lib.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_column(location: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `half_round_up` is never used [INFO] [stdout] --> day_5/src/lib.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn half_round_up(i: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> day_5/src/lib.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn get(location: &str, lower: char, upper: char, highest: u32) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> day_5/src/lib.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | character => panic!(format!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 49 | | "unexpected char in get_column, {:?}\nExpected either {}, or {}", [INFO] [stdout] 50 | | character, upper, lower [INFO] [stdout] 51 | | )), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 48 ~ character => panic!( [INFO] [stdout] 49 | "unexpected char in get_column, {:?}\nExpected either {}, or {}", [INFO] [stdout] 50 | character, upper, lower [INFO] [stdout] 51 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stdout] warning: function `sample_input` is never used [INFO] [stdout] --> day_2/src/lib.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn sample_input() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling day_4 v0.0.0 (/opt/rustwide/workdir/day_4) [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> day_4/src/lib.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn run(raw: String) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Valid` is never used [INFO] [stdout] --> day_4/src/lib.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | trait Valid { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | Byr(BirthYear), [INFO] [stdout] | --- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 63 | Byr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | Iyr(IssueYear), [INFO] [stdout] | --- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 64 | Iyr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | Eyr(ExpirationYear), [INFO] [stdout] | --- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 65 | Eyr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | Hgt(Height), [INFO] [stdout] | --- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 66 | Hgt(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | Hcl(HairColor), [INFO] [stdout] | --- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 67 | Hcl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | Ecl(EyeColor), [INFO] [stdout] | --- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 68 | Ecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | Pid(PassportId), [INFO] [stdout] | --- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 69 | Pid(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 75 | struct BirthYear { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 76 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BirthYear` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | struct IssueYear { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 80 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IssueYear` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 83 | struct ExpirationYear { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 84 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpirationYear` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 87 | struct HairColor { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 88 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HairColor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | struct Height { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 92 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Height` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | struct EyeColor { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 97 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EyeColor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 100 | struct PassportId { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 101 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PassportId` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `year_between` is never used [INFO] [stdout] --> day_4/src/lib.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn year_between(year: &str, earliest: u32, latest: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `valid_colors` is never used [INFO] [stdout] --> day_4/src/lib.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 171 | impl EyeColor { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 172 | pub fn valid_colors() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_all_fields` is never used [INFO] [stdout] --> day_4/src/lib.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn check_all_fields(input: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.68s [INFO] running `Command { std: "docker" "inspect" "32e3904a09f165608373e92b22119e48b4a92a90abe610cf5d911fd47259a74a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32e3904a09f165608373e92b22119e48b4a92a90abe610cf5d911fd47259a74a", kill_on_drop: false }` [INFO] [stdout] 32e3904a09f165608373e92b22119e48b4a92a90abe610cf5d911fd47259a74a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 305e3a1d4c62c508180402adf2d51dc2987f9e3e72723a650868504681bbbc63 [INFO] running `Command { std: "docker" "start" "-a" "305e3a1d4c62c508180402adf2d51dc2987f9e3e72723a650868504681bbbc63", kill_on_drop: false }` [INFO] [stdout] warning: function `sample_data` is never used [INFO] [stdout] --> day_3/src/lib.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn sample_data() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input` is never used [INFO] [stdout] --> day_3/src/lib.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn input() -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> day_3/src/lib.rs:351:4 [INFO] [stdout] | [INFO] [stdout] 351 | fn run(input: Vec, rise: usize, run: usize) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sample_input` is never used [INFO] [stdout] --> day_2/src/lib.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn sample_input() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sample_input` is never used [INFO] [stdout] --> day_1/src/lib.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn sample_input() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_id` is never used [INFO] [stdout] --> day_5/src/lib.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn get_id(location: &str) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_missing_seat` is never used [INFO] [stdout] --> day_5/src/lib.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn find_missing_seat() -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_row` is never used [INFO] [stdout] --> day_5/src/lib.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn get_row(location: &str) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_column` is never used [INFO] [stdout] --> day_5/src/lib.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_column(location: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `half_round_up` is never used [INFO] [stdout] --> day_5/src/lib.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn half_round_up(i: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get` is never used [INFO] [stdout] --> day_5/src/lib.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn get(location: &str, lower: char, upper: char, highest: u32) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> day_5/src/lib.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | character => panic!(format!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 49 | | "unexpected char in get_column, {:?}\nExpected either {}, or {}", [INFO] [stdout] 50 | | character, upper, lower [INFO] [stdout] 51 | | )), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 48 ~ character => panic!( [INFO] [stdout] 49 | "unexpected char in get_column, {:?}\nExpected either {}, or {}", [INFO] [stdout] 50 | character, upper, lower [INFO] [stdout] 51 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> day_4/src/lib.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn run(raw: String) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day_1 v0.0.0 (/opt/rustwide/workdir/day_1) [INFO] [stdout] warning: trait `Valid` is never used [INFO] [stdout] --> day_4/src/lib.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | trait Valid { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day_2 v0.0.0 (/opt/rustwide/workdir/day_2) [INFO] [stderr] Compiling day_5 v0.0.0 (/opt/rustwide/workdir/day_5) [INFO] [stderr] Compiling day_3 v0.0.0 (/opt/rustwide/workdir/day_3) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | Byr(BirthYear), [INFO] [stdout] | --- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 63 | Byr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | Iyr(IssueYear), [INFO] [stdout] | --- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 64 | Iyr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | Eyr(ExpirationYear), [INFO] [stdout] | --- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 65 | Eyr(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | Hgt(Height), [INFO] [stdout] | --- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 66 | Hgt(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | Hcl(HairColor), [INFO] [stdout] | --- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 67 | Hcl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | Ecl(EyeColor), [INFO] [stdout] | --- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 68 | Ecl(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> day_4/src/lib.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | Pid(PassportId), [INFO] [stdout] | --- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] 69 | Pid(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 75 | struct BirthYear { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 76 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BirthYear` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | struct IssueYear { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 80 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IssueYear` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling day_4 v0.0.0 (/opt/rustwide/workdir/day_4) [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 83 | struct ExpirationYear { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 84 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExpirationYear` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 87 | struct HairColor { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 88 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HairColor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 91 | struct Height { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 92 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Height` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | struct EyeColor { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 97 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EyeColor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> day_4/src/lib.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 100 | struct PassportId { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 101 | value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PassportId` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `year_between` is never used [INFO] [stdout] --> day_4/src/lib.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn year_between(year: &str, earliest: u32, latest: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `valid_colors` is never used [INFO] [stdout] --> day_4/src/lib.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 171 | impl EyeColor { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 172 | pub fn valid_colors() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_all_fields` is never used [INFO] [stdout] --> day_4/src/lib.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn check_all_fields(input: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> day_5/src/lib.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | character => panic!(format!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 49 | | "unexpected char in get_column, {:?}\nExpected either {}, or {}", [INFO] [stdout] 50 | | character, upper, lower [INFO] [stdout] 51 | | )), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 48 ~ character => panic!( [INFO] [stdout] 49 | "unexpected char in get_column, {:?}\nExpected either {}, or {}", [INFO] [stdout] 50 | character, upper, lower [INFO] [stdout] 51 ~ ), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.31s [INFO] running `Command { std: "docker" "inspect" "305e3a1d4c62c508180402adf2d51dc2987f9e3e72723a650868504681bbbc63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "305e3a1d4c62c508180402adf2d51dc2987f9e3e72723a650868504681bbbc63", kill_on_drop: false }` [INFO] [stdout] 305e3a1d4c62c508180402adf2d51dc2987f9e3e72723a650868504681bbbc63