[INFO] cloning repository https://github.com/dg01099/advent-of-code-2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dg01099/advent-of-code-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdg01099%2Fadvent-of-code-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdg01099%2Fadvent-of-code-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 343514051da11cac71df75215e4d230ee906b256 [INFO] checking dg01099/advent-of-code-2023 against try#969026c535f4240ff7866ef11207dfda18a26af6 for pr-146504 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdg01099%2Fadvent-of-code-2023" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dg01099/advent-of-code-2023 [INFO] finished tweaking git repo https://github.com/dg01099/advent-of-code-2023 [INFO] tweaked toml for git repo https://github.com/dg01099/advent-of-code-2023 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dg01099/advent-of-code-2023 on toolchain 969026c535f4240ff7866ef11207dfda18a26af6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+969026c535f4240ff7866ef11207dfda18a26af6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dg01099/advent-of-code-2023 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" "+969026c535f4240ff7866ef11207dfda18a26af6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+969026c535f4240ff7866ef11207dfda18a26af6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d827e6b90ff9df208f0d6178a319fba3dc9922bbfdc5080b4206aa8dbe5a9b6b [INFO] running `Command { std: "docker" "start" "-a" "d827e6b90ff9df208f0d6178a319fba3dc9922bbfdc5080b4206aa8dbe5a9b6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d827e6b90ff9df208f0d6178a319fba3dc9922bbfdc5080b4206aa8dbe5a9b6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d827e6b90ff9df208f0d6178a319fba3dc9922bbfdc5080b4206aa8dbe5a9b6b", kill_on_drop: false }` [INFO] [stdout] d827e6b90ff9df208f0d6178a319fba3dc9922bbfdc5080b4206aa8dbe5a9b6b [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+969026c535f4240ff7866ef11207dfda18a26af6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8aa97ec338f7df56e3ec0f1057de08f3107633d88073125118a84b70abe78895 [INFO] running `Command { std: "docker" "start" "-a" "8aa97ec338f7df56e3ec0f1057de08f3107633d88073125118a84b70abe78895", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking day-07 v0.1.0 (/opt/rustwide/workdir/crates/day-07) [INFO] [stderr] Checking day-06 v0.1.0 (/opt/rustwide/workdir/crates/day-06) [INFO] [stderr] Checking day-09 v0.1.0 (/opt/rustwide/workdir/crates/day-09) [INFO] [stderr] Checking day-04 v0.1.0 (/opt/rustwide/workdir/crates/day-04) [INFO] [stderr] Checking day-03 v0.1.0 (/opt/rustwide/workdir/crates/day-03) [INFO] [stderr] Checking day-01 v0.1.0 (/opt/rustwide/workdir/crates/day-01) [INFO] [stderr] Checking day-05 v0.1.0 (/opt/rustwide/workdir/crates/day-05) [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> crates/day-07/src/main.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{BufRead, BufReader, Bytes, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> crates/day-07/src/main.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{BufRead, BufReader, Bytes, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> crates/day-09/src/main.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Bytes, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `times` [INFO] [stdout] --> crates/day-06/src/main.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn part_two(times: &Vec, distances: &Vec) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_times` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distances` [INFO] [stdout] --> crates/day-06/src/main.rs:31:35 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn part_two(times: &Vec, distances: &Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-06/src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut result: u64 = 0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_one` is never used [INFO] [stdout] --> crates/day-01/src/main.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn part_one() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/day-01/src/main.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | part_two(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 115 | let _ = part_two(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/day-07/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | _ => panic!("Unknown Game!") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/day-07/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 90 | Games::FiveOfKind => value = 32 * 10_u64.pow(12), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 91 | Games::FourOfKind => value = 16 * 10_u64.pow(12), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 92 | Games::FullHouse => value = 8 * 10_u64.pow(12), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 93 | Games::ThreeOfKind => value = 4 * 10_u64.pow(12), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 97 | _ => panic!("Unknown Game!") [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> crates/day-07/src/main.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | let mut value:u64 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/day-07/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | _ => panic!("Unknown Game!") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/day-07/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 90 | Games::FiveOfKind => value = 32 * 10_u64.pow(12), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 91 | Games::FourOfKind => value = 16 * 10_u64.pow(12), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 92 | Games::FullHouse => value = 8 * 10_u64.pow(12), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 93 | Games::ThreeOfKind => value = 4 * 10_u64.pow(12), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 97 | _ => panic!("Unknown Game!") [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> crates/day-07/src/main.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | let mut value:u64 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cards` [INFO] [stdout] --> crates/day-07/src/main.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn part_two(cards:&Vec, bids:&Vec) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cards` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `number` is never read [INFO] [stdout] --> crates/day-03/src/main.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | number = Part::empty(row_count, PartTypes::Number)? [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `part` is never read [INFO] [stdout] --> crates/day-03/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | part = Part::empty(row_count, PartTypes::Part)? [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bids` [INFO] [stdout] --> crates/day-07/src/main.rs:149:37 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn part_two(cards:&Vec, bids:&Vec) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bids` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-07/src/main.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | let mut result: u64 = 0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cards` and `game` are never read [INFO] [stdout] --> crates/day-07/src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Hand { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 36 | cards: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | game: Games, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> crates/day-07/src/main.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | hands.push(hand.clone().to_string()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cards` [INFO] [stdout] --> crates/day-07/src/main.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn part_two(cards:&Vec, bids:&Vec) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cards` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bids` [INFO] [stdout] --> crates/day-07/src/main.rs:149:37 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn part_two(cards:&Vec, bids:&Vec) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bids` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-07/src/main.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | let mut result: u64 = 0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cards` and `game` are never read [INFO] [stdout] --> crates/day-07/src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Hand { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 36 | cards: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | game: Games, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hand` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> crates/day-07/src/main.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | hands.push(hand.clone().to_string()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> crates/day-05/src/main.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | let mut result: u64 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-05/src/main.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | let mut maps = map_names. [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> crates/day-05/src/main.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let mut result: u64 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-05/src/main.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | let mut maps = map_names. [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> crates/day-05/src/main.rs:70:29 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn map_reader(map_name: &str, reader:Box) -> Option { [INFO] [stdout] | ^^^^ the lifetime is elided here ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 70 | pub fn map_reader(map_name: &str, reader:Box) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> crates/day-09/src/main.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Bytes, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day-10 v0.1.0 (/opt/rustwide/workdir/crates/day-10) [INFO] [stdout] warning: unused variable: `times` [INFO] [stdout] --> crates/day-06/src/main.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn part_two(times: &Vec, distances: &Vec) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_times` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distances` [INFO] [stdout] --> crates/day-06/src/main.rs:31:35 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn part_two(times: &Vec, distances: &Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-06/src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut result: u64 = 0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_one` is never used [INFO] [stdout] --> crates/day-01/src/main.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn part_one() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/day-01/src/main.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | part_two(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 115 | let _ = part_two(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `number` is never read [INFO] [stdout] --> crates/day-03/src/main.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | number = Part::empty(row_count, PartTypes::Number)? [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `part` is never read [INFO] [stdout] --> crates/day-03/src/main.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | part = Part::empty(row_count, PartTypes::Part)? [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/day-10/src/lib.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | for (i,(nx, ny)) in neighbors.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Field` is never constructed [INFO] [stdout] --> crates/day-10/src/lib.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Field { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> crates/day-10/src/lib.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Field { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 19 | [INFO] [stdout] 20 | fn create(c: &char, pos_x: &i32, pos_y: &i32, max_x: &i32, max_y: &i32) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/day-10/src/lib.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | for (i,(nx, ny)) in neighbors.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> crates/day-05/src/main.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | let mut result: u64 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-05/src/main.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | let mut maps = map_names. [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `result` is never read [INFO] [stdout] --> crates/day-05/src/main.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let mut result: u64 = 0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-05/src/main.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | let mut maps = map_names. [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> crates/day-05/src/main.rs:70:29 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn map_reader(map_name: &str, reader:Box) -> Option { [INFO] [stdout] | ^^^^ the lifetime is elided here ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 70 | pub fn map_reader(map_name: &str, reader:Box) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `values` [INFO] [stdout] --> crates/day-10/src/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn part_one(values: Vec>) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-10/src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut result: i32 = 0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `values` [INFO] [stdout] --> crates/day-10/src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn part_two(values: Vec>) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-10/src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut result: i32 = 0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `values` [INFO] [stdout] --> crates/day-10/src/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn part_one(values: Vec>) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-10/src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut result: i32 = 0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `values` [INFO] [stdout] --> crates/day-10/src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn part_two(values: Vec>) -> Result { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-10/src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut result: i32 = 0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking num-integer v0.1.45 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking day-08 v0.1.0 (/opt/rustwide/workdir/crates/day-08) [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking day-02 v0.1.0 (/opt/rustwide/workdir/crates/day-02) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/day-02/src/main.rs:98:23 [INFO] [stdout] | [INFO] [stdout] 98 | result += (power_green*power_blue*power_red); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - result += (power_green*power_blue*power_red); [INFO] [stdout] 98 + result += power_green*power_blue*power_red; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> crates/day-02/src/main.rs:125:85 [INFO] [stdout] | [INFO] [stdout] 124 | fn test_part_one() { [INFO] [stdout] | ------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 125 | let result = part_one(read_input("crates/day-02/test_input.txt".to_string())?, 12, 13, 14); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 124 ~ fn test_part_one() -> Result<(), Box> { [INFO] [stdout] 125 | let result = part_one(read_input("crates/day-02/test_input.txt".to_string())?, 12, 13, 14); [INFO] [stdout] 126 | assert_eq!(result, Some(8)); [INFO] [stdout] 127 ~ Ok(()) [INFO] [stdout] 128 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Result` [INFO] [stdout] --> crates/day-02/src/main.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | assert_eq!(result, Some(8)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | Result [INFO] [stdout] | Option<{integer}> [INFO] [stdout] | [INFO] [stdout] note: the foreign item type `Result` doesn't implement `PartialEq>` [INFO] [stdout] --> /rustc/969026c535f4240ff7866ef11207dfda18a26af6/library/core/src/result.rs:550:1 [INFO] [stdout] | [INFO] [stdout] = note: not implement `PartialEq>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> crates/day-02/src/main.rs:131:85 [INFO] [stdout] | [INFO] [stdout] 130 | fn test_part_two() { [INFO] [stdout] | ------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 131 | let result = part_two(read_input("crates/day-02/test_input.txt".to_string())?); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 130 ~ fn test_part_two() -> Result<(), Box> { [INFO] [stdout] 131 | let result = part_two(read_input("crates/day-02/test_input.txt".to_string())?); [INFO] [stdout] 132 | assert_eq!(result, Some(281)); [INFO] [stdout] 133 ~ Ok(()) [INFO] [stdout] 134 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Result` [INFO] [stdout] --> crates/day-02/src/main.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | assert_eq!(result, Some(281)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | Result [INFO] [stdout] | Option<{integer}> [INFO] [stdout] | [INFO] [stdout] note: the foreign item type `Result` doesn't implement `PartialEq>` [INFO] [stdout] --> /rustc/969026c535f4240ff7866ef11207dfda18a26af6/library/core/src/result.rs:550:1 [INFO] [stdout] | [INFO] [stdout] = note: not implement `PartialEq>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-02/src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut line = lines.unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-02/src/main.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut line = lines.unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `day-02` (bin "day-02" test) due to 4 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> crates/day-02/src/main.rs:98:23 [INFO] [stdout] | [INFO] [stdout] 98 | result += (power_green*power_blue*power_red); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - result += (power_green*power_blue*power_red); [INFO] [stdout] 98 + result += power_green*power_blue*power_red; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-02/src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut line = lines.unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/day-02/src/main.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let mut line = lines.unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8aa97ec338f7df56e3ec0f1057de08f3107633d88073125118a84b70abe78895", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8aa97ec338f7df56e3ec0f1057de08f3107633d88073125118a84b70abe78895", kill_on_drop: false }` [INFO] [stdout] 8aa97ec338f7df56e3ec0f1057de08f3107633d88073125118a84b70abe78895