[INFO] cloning repository https://github.com/triamero/advent-of-code-2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/triamero/advent-of-code-2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftriamero%2Fadvent-of-code-2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftriamero%2Fadvent-of-code-2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f8f65fde4a596146c8203a989051f2d4f4fff55 [INFO] checking triamero/advent-of-code-2018 against master#385fa9d845dd326c6bbfd58c22244215e431948a for never-type-fallback-to-never [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftriamero%2Fadvent-of-code-2018" "/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/triamero/advent-of-code-2018 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/triamero/advent-of-code-2018 [INFO] finished tweaking git repo https://github.com/triamero/advent-of-code-2018 [INFO] tweaked toml for git repo https://github.com/triamero/advent-of-code-2018 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/triamero/advent-of-code-2018 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] 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] 915840b6d564d82feb8ca3bf1d82d3d42a7a7ecfb40962153b27b9fe7c5d3fd3 [INFO] running `Command { std: "docker" "start" "-a" "915840b6d564d82feb8ca3bf1d82d3d42a7a7ecfb40962153b27b9fe7c5d3fd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "915840b6d564d82feb8ca3bf1d82d3d42a7a7ecfb40962153b27b9fe7c5d3fd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "915840b6d564d82feb8ca3bf1d82d3d42a7a7ecfb40962153b27b9fe7c5d3fd3", kill_on_drop: false }` [INFO] [stdout] 915840b6d564d82feb8ca3bf1d82d3d42a7a7ecfb40962153b27b9fe7c5d3fd3 [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] a073155860d5fafc5960490e036b04ba6f3219757ec913911f08a64f088511c3 [INFO] running `Command { std: "docker" "start" "-a" "a073155860d5fafc5960490e036b04ba6f3219757ec913911f08a64f088511c3", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking advent_of_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `infos` [INFO] [stdout] --> src/days/day4.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_infos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `guard_id` is never read [INFO] [stdout] --> src/days/day4.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut guard_id = -1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day4.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [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: `input` [INFO] [stdout] --> src/days/day4.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `has_change` is assigned to, but never used [INFO] [stdout] --> src/days/day5.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_has_change` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `has_change` is never read [INFO] [stdout] --> src/days/day5.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day5.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guard` is never constructed [INFO] [stdout] --> src/days/day4.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Guard { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GuardAction` is never constructed [INFO] [stdout] --> src/days/day4.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct GuardAction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/utils.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | Err(_) => panic!(format!("File '{}' not found", filename)) [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] 8 - Err(_) => panic!(format!("File '{}' not found", filename)) [INFO] [stdout] 8 + Err(_) => panic!("File '{}' not found", filename) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `infos` [INFO] [stdout] --> src/days/day4.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_infos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `guard_id` is never read [INFO] [stdout] --> src/days/day4.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut guard_id = -1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day4.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [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: `input` [INFO] [stdout] --> src/days/day4.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `has_change` is assigned to, but never used [INFO] [stdout] --> src/days/day5.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_has_change` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `has_change` is never read [INFO] [stdout] --> src/days/day5.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day5.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guard` is never constructed [INFO] [stdout] --> src/days/day4.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Guard { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GuardAction` is never constructed [INFO] [stdout] --> src/days/day4.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct GuardAction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/utils.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | Err(_) => panic!(format!("File '{}' not found", filename)) [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] 8 - Err(_) => panic!(format!("File '{}' not found", filename)) [INFO] [stdout] 8 + Err(_) => panic!("File '{}' not found", filename) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> tests/day4/compute_first_test.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let result = Day4().compute_first(&data); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `infos` [INFO] [stdout] --> src/days/day4.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_infos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `guard_id` is never read [INFO] [stdout] --> src/days/day4.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut guard_id = -1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `infos` [INFO] [stdout] --> src/days/day4.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_infos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `guard_id` is never read [INFO] [stdout] --> src/days/day4.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut guard_id = -1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day4.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/days/day4.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [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: `input` [INFO] [stdout] --> src/days/day4.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day4.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `has_change` is assigned to, but never used [INFO] [stdout] --> src/days/day5.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_has_change` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `has_change` is never read [INFO] [stdout] --> src/days/day5.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day5.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `has_change` is assigned to, but never used [INFO] [stdout] --> src/days/day5.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_has_change` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `has_change` is never read [INFO] [stdout] --> src/days/day5.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day5.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guard` is never constructed [INFO] [stdout] --> src/days/day4.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Guard { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GuardAction` is never constructed [INFO] [stdout] --> src/days/day4.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct GuardAction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/utils.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | Err(_) => panic!(format!("File '{}' not found", filename)) [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] 8 - Err(_) => panic!(format!("File '{}' not found", filename)) [INFO] [stdout] 8 + Err(_) => panic!("File '{}' not found", filename) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guard` is never constructed [INFO] [stdout] --> src/days/day4.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Guard { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GuardAction` is never constructed [INFO] [stdout] --> src/days/day4.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct GuardAction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/utils.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | Err(_) => panic!(format!("File '{}' not found", filename)) [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] 8 - Err(_) => panic!(format!("File '{}' not found", filename)) [INFO] [stdout] 8 + Err(_) => panic!("File '{}' not found", filename) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.31s [INFO] running `Command { std: "docker" "inspect" "a073155860d5fafc5960490e036b04ba6f3219757ec913911f08a64f088511c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a073155860d5fafc5960490e036b04ba6f3219757ec913911f08a64f088511c3", kill_on_drop: false }` [INFO] [stdout] a073155860d5fafc5960490e036b04ba6f3219757ec913911f08a64f088511c3 [INFO] checking triamero/advent-of-code-2018 against try#2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2 for never-type-fallback-to-never [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftriamero%2Fadvent-of-code-2018" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/triamero/advent-of-code-2018 on toolchain 2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/triamero/advent-of-code-2018 [INFO] finished tweaking git repo https://github.com/triamero/advent-of-code-2018 [INFO] tweaked toml for git repo https://github.com/triamero/advent-of-code-2018 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/triamero/advent-of-code-2018 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" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bf1ec621142ab3eb1f39f5d109ec1307f57b439965098722d48f4bc5f98bdf0e [INFO] running `Command { std: "docker" "start" "-a" "bf1ec621142ab3eb1f39f5d109ec1307f57b439965098722d48f4bc5f98bdf0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bf1ec621142ab3eb1f39f5d109ec1307f57b439965098722d48f4bc5f98bdf0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf1ec621142ab3eb1f39f5d109ec1307f57b439965098722d48f4bc5f98bdf0e", kill_on_drop: false }` [INFO] [stdout] bf1ec621142ab3eb1f39f5d109ec1307f57b439965098722d48f4bc5f98bdf0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b6210da56b6dd26639be42d8dbcd44c6e09ecc88c3b84fc6e747dd7dabaaab27 [INFO] running `Command { std: "docker" "start" "-a" "b6210da56b6dd26639be42d8dbcd44c6e09ecc88c3b84fc6e747dd7dabaaab27", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking advent_of_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `infos` [INFO] [stdout] --> src/days/day4.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_infos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `guard_id` is never read [INFO] [stdout] --> src/days/day4.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut guard_id = -1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day4.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [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: `input` [INFO] [stdout] --> src/days/day4.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `has_change` is assigned to, but never used [INFO] [stdout] --> src/days/day5.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_has_change` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `has_change` is never read [INFO] [stdout] --> src/days/day5.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `infos` [INFO] [stdout] --> src/days/day4.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_infos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `guard_id` is never read [INFO] [stdout] --> src/days/day4.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut guard_id = -1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day5.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guard` is never constructed [INFO] [stdout] --> src/days/day4.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Guard { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GuardAction` is never constructed [INFO] [stdout] --> src/days/day4.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct GuardAction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day4.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [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: panic message is not a string literal [INFO] [stdout] --> src/utils.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | Err(_) => panic!(format!("File '{}' not found", filename)) [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] 8 - Err(_) => panic!(format!("File '{}' not found", filename)) [INFO] [stdout] 8 + Err(_) => panic!("File '{}' not found", filename) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day4.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `has_change` is assigned to, but never used [INFO] [stdout] --> src/days/day5.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_has_change` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `has_change` is never read [INFO] [stdout] --> src/days/day5.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day5.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guard` is never constructed [INFO] [stdout] --> src/days/day4.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Guard { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GuardAction` is never constructed [INFO] [stdout] --> src/days/day4.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct GuardAction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/utils.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | Err(_) => panic!(format!("File '{}' not found", filename)) [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] 8 - Err(_) => panic!(format!("File '{}' not found", filename)) [INFO] [stdout] 8 + Err(_) => panic!("File '{}' not found", filename) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ToString` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/2d84f2737f3bd9ebfcb07f75aa198d6cf7c715d2/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `ToString` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `infos` [INFO] [stdout] --> src/days/day4.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_infos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `guard_id` is never read [INFO] [stdout] --> src/days/day4.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut guard_id = -1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day4.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [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: `input` [INFO] [stdout] --> src/days/day4.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `has_change` is assigned to, but never used [INFO] [stdout] --> src/days/day5.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_has_change` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `has_change` is never read [INFO] [stdout] --> src/days/day5.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day5.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> tests/day4/compute_first_test.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let result = Day4().compute_first(&data); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guard` is never constructed [INFO] [stdout] --> src/days/day4.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Guard { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GuardAction` is never constructed [INFO] [stdout] --> src/days/day4.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct GuardAction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/utils.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | Err(_) => panic!(format!("File '{}' not found", filename)) [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] 8 - Err(_) => panic!(format!("File '{}' not found", filename)) [INFO] [stdout] 8 + Err(_) => panic!("File '{}' not found", filename) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `infos` [INFO] [stdout] --> src/days/day4.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_infos` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `guard_id` is never read [INFO] [stdout] --> src/days/day4.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | let mut guard_id = -1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day4.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut infos: Vec<(i32, Vec)> = Vec::new(); [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: `input` [INFO] [stdout] --> src/days/day4.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `has_change` is assigned to, but never used [INFO] [stdout] --> src/days/day5.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_has_change` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `has_change` is never read [INFO] [stdout] --> src/days/day5.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | has_change = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/days/day5.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn compute_second(&self, input: &Vec) -> DayResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guard` is never constructed [INFO] [stdout] --> src/days/day4.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Guard { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GuardAction` is never constructed [INFO] [stdout] --> src/days/day4.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct GuardAction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/utils.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | Err(_) => panic!(format!("File '{}' not found", filename)) [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] 8 - Err(_) => panic!(format!("File '{}' not found", filename)) [INFO] [stdout] 8 + Err(_) => panic!("File '{}' not found", filename) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.53s [INFO] running `Command { std: "docker" "inspect" "b6210da56b6dd26639be42d8dbcd44c6e09ecc88c3b84fc6e747dd7dabaaab27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6210da56b6dd26639be42d8dbcd44c6e09ecc88c3b84fc6e747dd7dabaaab27", kill_on_drop: false }` [INFO] [stdout] b6210da56b6dd26639be42d8dbcd44c6e09ecc88c3b84fc6e747dd7dabaaab27