[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/343514051da11cac71df75215e4d230ee906b256 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdg01099%2Fadvent-of-code-2023" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dg01099/advent-of-code-2023 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-2-tc1/source/Cargo.toml [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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-complex v0.4.4 [INFO] [stderr] Downloaded num v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c7a7e0ad6a431863f3d69ba3ebc233b556161024cadd4d000c66920c0ee90fc8 [INFO] running `Command { std: "docker" "start" "-a" "c7a7e0ad6a431863f3d69ba3ebc233b556161024cadd4d000c66920c0ee90fc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7a7e0ad6a431863f3d69ba3ebc233b556161024cadd4d000c66920c0ee90fc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7a7e0ad6a431863f3d69ba3ebc233b556161024cadd4d000c66920c0ee90fc8", kill_on_drop: false }` [INFO] [stdout] c7a7e0ad6a431863f3d69ba3ebc233b556161024cadd4d000c66920c0ee90fc8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50d517621c91d44ecf0d906f3eb742a7fbde4903cd55692718d86219db05513d [INFO] running `Command { std: "docker" "start" "-a" "50d517621c91d44ecf0d906f3eb742a7fbde4903cd55692718d86219db05513d", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [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 diff v0.1.13 [INFO] [stderr] Checking day-05 v0.1.0 (/opt/rustwide/workdir/crates/day-05) [INFO] [stderr] Checking day-04 v0.1.0 (/opt/rustwide/workdir/crates/day-04) [INFO] [stderr] Checking day-06 v0.1.0 (/opt/rustwide/workdir/crates/day-06) [INFO] [stderr] Checking day-07 v0.1.0 (/opt/rustwide/workdir/crates/day-07) [INFO] [stderr] Checking day-09 v0.1.0 (/opt/rustwide/workdir/crates/day-09) [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] [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)]` 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)]` 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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [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)]` 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 `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)]` 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 `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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day-10 v0.1.0 (/opt/rustwide/workdir/crates/day-10) [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: 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: 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: 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [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)]` 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)]` 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: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [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)]` 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)]` 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: 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)]` 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: 1 warning emitted [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [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)]` 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 `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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [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)]` 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)]` 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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [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)]` 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)]` 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)]` 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)]` 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: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking aho-corasick v1.1.2 [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)]` 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: 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)]` 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)]` 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] warning: 3 warnings emitted [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: the trait `FromResidual>>` is not implemented for `()` [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/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:527: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: the trait `FromResidual>>` is not implemented for `()` [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/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:527: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)]` 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] error: aborting due to 4 previous errors; 3 warnings emitted [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 5 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "50d517621c91d44ecf0d906f3eb742a7fbde4903cd55692718d86219db05513d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50d517621c91d44ecf0d906f3eb742a7fbde4903cd55692718d86219db05513d", kill_on_drop: false }` [INFO] [stdout] 50d517621c91d44ecf0d906f3eb742a7fbde4903cd55692718d86219db05513d