[INFO] cloning repository https://github.com/RichoDemus/advent-of-code-2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RichoDemus/advent-of-code-2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRichoDemus%2Fadvent-of-code-2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRichoDemus%2Fadvent-of-code-2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4dc90f4628a049aa6e8bfb9029f242e8bdc5c71b [INFO] checking RichoDemus/advent-of-code-2019 against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRichoDemus%2Fadvent-of-code-2019" "/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/RichoDemus/advent-of-code-2019 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] removed /workspace/builds/worker-3-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/RichoDemus/advent-of-code-2019 [INFO] finished tweaking git repo https://github.com/RichoDemus/advent-of-code-2019 [INFO] tweaked toml for git repo https://github.com/RichoDemus/advent-of-code-2019 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/RichoDemus/advent-of-code-2019 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-bigint v0.2.5 [INFO] [stderr] Downloaded array_tool v0.4.1 [INFO] [stderr] Downloaded float-cmp v0.6.0 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ac45848b551788fc5eba836bb777cfa932801f822f881e4a990368c26d94e89 [INFO] running `Command { std: "docker" "start" "-a" "2ac45848b551788fc5eba836bb777cfa932801f822f881e4a990368c26d94e89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ac45848b551788fc5eba836bb777cfa932801f822f881e4a990368c26d94e89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ac45848b551788fc5eba836bb777cfa932801f822f881e4a990368c26d94e89", kill_on_drop: false }` [INFO] [stdout] 2ac45848b551788fc5eba836bb777cfa932801f822f881e4a990368c26d94e89 [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" "-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] 6ed52efee2313252e0867ae1f3afdd89b9267fa17c14200e45cdddf2a6f925a5 [INFO] running `Command { std: "docker" "start" "-a" "6ed52efee2313252e0867ae1f3afdd89b9267fa17c14200e45cdddf2a6f925a5", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.5 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Checking array_tool v0.4.1 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking float-cmp v0.6.0 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking advent-of-code-2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Down` is imported redundantly [INFO] [stdout] --> src/three.rs:160:35 [INFO] [stdout] | [INFO] [stdout] 160 | use crate::three::Direction::{Down, Right}; [INFO] [stdout] | ^^^^ [INFO] [stdout] 161 | [INFO] [stdout] 162 | use super::*; [INFO] [stdout] | -------- the item `Down` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Right` is imported redundantly [INFO] [stdout] --> src/three.rs:160:41 [INFO] [stdout] | [INFO] [stdout] 160 | use crate::three::Direction::{Down, Right}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 161 | [INFO] [stdout] 162 | use super::*; [INFO] [stdout] | -------- the item `Right` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `split` [INFO] [stdout] --> src/twelve.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let split: Vec<&str> = s.split_ascii_whitespace().collect(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_split` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `outputs` is never read [INFO] [stdout] --> src/intputer.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) struct Intputer { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | outputs: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Intputer` 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: fields `x_max` and `y_max` are never read [INFO] [stdout] --> src/ten.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 160 | struct AsteroidField { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 161 | x_max: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 162 | y_max: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_max_laser_length` is never used [INFO] [stdout] --> src/ten.rs:270:4 [INFO] [stdout] | [INFO] [stdout] 270 | fn calculate_max_laser_length(field: &AsteroidField, station: &Point) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/eleven.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 183 | impl Robot { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 184 | fn from(y: i32, x: i32, direction: Direction) -> Robot { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Body` is never constructed [INFO] [stdout] --> src/twelve.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Body { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/twelve.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl Body { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 16 | fn from(s: &str) -> Body { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Space` is never constructed [INFO] [stdout] --> src/twelve.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct Space { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `parse`, `parse_str`, and `tick` are never used [INFO] [stdout] --> src/twelve.rs:96:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl Space { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 96 | fn parse(input: Vec) -> Space { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn parse_str(input: Vec<&str>) -> Space { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn tick(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_input` is never used [INFO] [stdout] --> src/twelve.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn read_input() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&six::Body` instead of cloning the inner type [INFO] [stdout] --> src/six.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | current = parent.clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/intputer.rs:237:25 [INFO] [stdout] | [INFO] [stdout] 237 | _ => panic!(format!("Unknown mode {}", mode)), [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] 237 - _ => panic!(format!("Unknown mode {}", mode)), [INFO] [stdout] 237 + _ => panic!("Unknown mode {}", mode), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/eight.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | std::mem::replace(&mut row[index], cell); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 130 | let _ = std::mem::replace(&mut row[index], cell); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `split` [INFO] [stdout] --> src/twelve.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | let split: Vec<&str> = s.split_ascii_whitespace().collect(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_split` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `outputs` is never read [INFO] [stdout] --> src/intputer.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) struct Intputer { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | outputs: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Intputer` 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: using `.clone()` on a double reference, which returns `&six::Body` instead of cloning the inner type [INFO] [stdout] --> src/six.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | current = parent.clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/intputer.rs:237:25 [INFO] [stdout] | [INFO] [stdout] 237 | _ => panic!(format!("Unknown mode {}", mode)), [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] 237 - _ => panic!(format!("Unknown mode {}", mode)), [INFO] [stdout] 237 + _ => panic!("Unknown mode {}", mode), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/eight.rs:130:17 [INFO] [stdout] | [INFO] [stdout] 130 | std::mem::replace(&mut row[index], cell); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 130 | let _ = std::mem::replace(&mut row[index], cell); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.32s [INFO] running `Command { std: "docker" "inspect" "6ed52efee2313252e0867ae1f3afdd89b9267fa17c14200e45cdddf2a6f925a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ed52efee2313252e0867ae1f3afdd89b9267fa17c14200e45cdddf2a6f925a5", kill_on_drop: false }` [INFO] [stdout] 6ed52efee2313252e0867ae1f3afdd89b9267fa17c14200e45cdddf2a6f925a5