[INFO] cloning repository https://github.com/philippfriese/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/philippfriese/Advent-of-Code-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphilippfriese%2FAdvent-of-Code-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphilippfriese%2FAdvent-of-Code-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6da0d9b098df058e37c27fed2f2a4717b35f3ada [INFO] checking philippfriese/Advent-of-Code-2023 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphilippfriese%2FAdvent-of-Code-2023" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/philippfriese/Advent-of-Code-2023 [INFO] finished tweaking git repo https://github.com/philippfriese/Advent-of-Code-2023 [INFO] tweaked toml for git repo https://github.com/philippfriese/Advent-of-Code-2023 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/philippfriese/Advent-of-Code-2023 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/philippfriese/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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 260ed87fa563d75a4aa4f8f96e65fd0ceed9ca996a19078005fe342478ea443e [INFO] running `Command { std: "docker" "start" "-a" "260ed87fa563d75a4aa4f8f96e65fd0ceed9ca996a19078005fe342478ea443e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "260ed87fa563d75a4aa4f8f96e65fd0ceed9ca996a19078005fe342478ea443e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "260ed87fa563d75a4aa4f8f96e65fd0ceed9ca996a19078005fe342478ea443e", kill_on_drop: false }` [INFO] [stdout] 260ed87fa563d75a4aa4f8f96e65fd0ceed9ca996a19078005fe342478ea443e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cb35f40a644f13679b4c7bae7aa7bef0d6479b844e4f6b63f895844aba49c56 [INFO] running `Command { std: "docker" "start" "-a" "6cb35f40a644f13679b4c7bae7aa7bef0d6479b844e4f6b63f895844aba49c56", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking aoc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/task_01/task_01.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/task_02/task_02.rs:79:46 [INFO] [stdout] | [INFO] [stdout] 79 | game.sets.iter().for_each(|set| r &= (*set <= constraint)); [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] 79 - game.sets.iter().for_each(|set| r &= (*set <= constraint)); [INFO] [stdout] 79 + game.sets.iter().for_each(|set| r &= *set <= constraint ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/task_01/task_01.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/task_02/task_02.rs:79:46 [INFO] [stdout] | [INFO] [stdout] 79 | game.sets.iter().for_each(|set| r &= (*set <= constraint)); [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] 79 - game.sets.iter().for_each(|set| r &= (*set <= constraint)); [INFO] [stdout] 79 + game.sets.iter().for_each(|set| r &= *set <= constraint ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/task_01/task_01.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut local_line = line.to_string(); [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: `valid` [INFO] [stdout] --> src/task_03/task_03.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let valid = grid_base.as_mut_slice(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_valid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first` is never used [INFO] [stdout] --> src/task_01/task_01.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn first(test: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace` is never used [INFO] [stdout] --> src/task_01/task_01.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn replace(line: &str) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `second` is never used [INFO] [stdout] --> src/task_01/task_01.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn second(test: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Set` is never constructed [INFO] [stdout] --> src/task_02/task_02.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Set { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `merge` and `power` are never used [INFO] [stdout] --> src/task_02/task_02.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Set { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 45 | fn merge(&self, other: &Set) -> Set { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn power(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/task_02/task_02.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first` is never used [INFO] [stdout] --> src/task_02/task_02.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn first(test: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `second` is never used [INFO] [stdout] --> src/task_02/task_02.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn second(test: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc` (bin "aoc") due to 5 previous errors; 12 warnings emitted [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/task_02/task_02.rs:27:53 [INFO] [stdout] | [INFO] [stdout] 27 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 28 | | let mut set = Set { [INFO] [stdout] 29 | | red: 0, [INFO] [stdout] 30 | | green: 0, [INFO] [stdout] ... | [INFO] [stdout] 40 | | Ok(set) [INFO] [stdout] 41 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/task_02/task_02.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | Ok(set) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/task_02/task_02.rs:66:53 [INFO] [stdout] | [INFO] [stdout] 66 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 67 | | let parts = s.split(":").collect::>(); [INFO] [stdout] 68 | | let id = parts[0].split(" ").skip(1).next().unwrap().parse().unwrap(); [INFO] [stdout] 69 | | let sets = parts[1].split(";").map(|part| part.parse::().unwrap()).collect(); [INFO] [stdout] 70 | | Ok(Game { id, sets } ) [INFO] [stdout] 71 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/task_02/task_02.rs:69:51 [INFO] [stdout] | [INFO] [stdout] 69 | let sets = parts[1].split(";").map(|part| part.parse::().unwrap()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/task_02/task_02.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | Ok(Game { id, sets } ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/task_01/task_01.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut local_line = line.to_string(); [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: `valid` [INFO] [stdout] --> src/task_03/task_03.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let valid = grid_base.as_mut_slice(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_valid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first` is never used [INFO] [stdout] --> src/task_01/task_01.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn first(test: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `replace` is never used [INFO] [stdout] --> src/task_01/task_01.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn replace(line: &str) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `second` is never used [INFO] [stdout] --> src/task_01/task_01.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn second(test: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Set` is never constructed [INFO] [stdout] --> src/task_02/task_02.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Set { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `merge` and `power` are never used [INFO] [stdout] --> src/task_02/task_02.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Set { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 45 | fn merge(&self, other: &Set) -> Set { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn power(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/task_02/task_02.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first` is never used [INFO] [stdout] --> src/task_02/task_02.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn first(test: bool) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `second` is never used [INFO] [stdout] --> src/task_02/task_02.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn second(test: bool) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/task_02/task_02.rs:27:53 [INFO] [stdout] | [INFO] [stdout] 27 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 28 | | let mut set = Set { [INFO] [stdout] 29 | | red: 0, [INFO] [stdout] 30 | | green: 0, [INFO] [stdout] ... | [INFO] [stdout] 40 | | Ok(set) [INFO] [stdout] 41 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/task_02/task_02.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | Ok(set) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/task_02/task_02.rs:66:53 [INFO] [stdout] | [INFO] [stdout] 66 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 67 | | let parts = s.split(":").collect::>(); [INFO] [stdout] 68 | | let id = parts[0].split(" ").skip(1).next().unwrap().parse().unwrap(); [INFO] [stdout] 69 | | let sets = parts[1].split(";").map(|part| part.parse::().unwrap()).collect(); [INFO] [stdout] 70 | | Ok(Game { id, sets } ) [INFO] [stdout] 71 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/task_02/task_02.rs:69:51 [INFO] [stdout] | [INFO] [stdout] 69 | let sets = parts[1].split(";").map(|part| part.parse::().unwrap()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/task_02/task_02.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | Ok(Game { id, sets } ) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc` (bin "aoc" test) due to 5 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6cb35f40a644f13679b4c7bae7aa7bef0d6479b844e4f6b63f895844aba49c56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cb35f40a644f13679b4c7bae7aa7bef0d6479b844e4f6b63f895844aba49c56", kill_on_drop: false }` [INFO] [stdout] 6cb35f40a644f13679b4c7bae7aa7bef0d6479b844e4f6b63f895844aba49c56