[INFO] cloning repository https://github.com/lunarised/AdventOfCode2024 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lunarised/AdventOfCode2024" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flunarised%2FAdventOfCode2024", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flunarised%2FAdventOfCode2024'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e52895160a60144eb972414ea6e31dc36b4b8229 [INFO] checking lunarised/AdventOfCode2024 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flunarised%2FAdventOfCode2024" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lunarised/AdventOfCode2024 [INFO] finished tweaking git repo https://github.com/lunarised/AdventOfCode2024 [INFO] tweaked toml for git repo https://github.com/lunarised/AdventOfCode2024 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lunarised/AdventOfCode2024 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lunarised/AdventOfCode2024 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74df8d1d2343f64027da91583a45cbdd70d837fb6bea49268e902c34d435c331 [INFO] running `Command { std: "docker" "start" "-a" "74df8d1d2343f64027da91583a45cbdd70d837fb6bea49268e902c34d435c331", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74df8d1d2343f64027da91583a45cbdd70d837fb6bea49268e902c34d435c331", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74df8d1d2343f64027da91583a45cbdd70d837fb6bea49268e902c34d435c331", kill_on_drop: false }` [INFO] [stdout] 74df8d1d2343f64027da91583a45cbdd70d837fb6bea49268e902c34d435c331 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 76dad6849762f6060879d6cbf45ebc4d8438d769bc4c5a19da146ee65c8c9f6b [INFO] running `Command { std: "docker" "start" "-a" "76dad6849762f6060879d6cbf45ebc4d8438d769bc4c5a19da146ee65c8c9f6b", kill_on_drop: false }` [INFO] [stderr] Checking AoC2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::error` [INFO] [stdout] --> src/day02.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::error; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/day02.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | while(safe){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - while(safe){ [INFO] [stdout] 48 + while safe { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/day02.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | match (new_value) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - match (new_value) { [INFO] [stdout] 50 + match new_value { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day02.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | if (new_value_int > last && direction == 0) {direction = 1;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - if (new_value_int > last && direction == 0) {direction = 1;} [INFO] [stdout] 58 + if new_value_int > last && direction == 0 {direction = 1;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day02.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | if (new_value_int < last && direction == 0) {direction = -1;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - if (new_value_int < last && direction == 0) {direction = -1;} [INFO] [stdout] 59 + if new_value_int < last && direction == 0 {direction = -1;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day02.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | if (new_value_int > last && direction == -1) {return false} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - if (new_value_int > last && direction == -1) {return false} [INFO] [stdout] 62 + if new_value_int > last && direction == -1 {return false} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day02.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | if (new_value_int < last && direction == 1) {return false} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - if (new_value_int < last && direction == 1) {return false} [INFO] [stdout] 63 + if new_value_int < last && direction == 1 {return false} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day02.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | if ((new_value_int - last).abs() > 3) { return false;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if ((new_value_int - last).abs() > 3) { return false;} [INFO] [stdout] 65 + if (new_value_int - last).abs() > 3 { return false;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/day02.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | return (check_safe(left_remove) || check_safe(right_remove)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - return (check_safe(left_remove) || check_safe(right_remove)); [INFO] [stdout] 115 + return check_safe(left_remove) || check_safe(right_remove); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/day02.rs:127:20 [INFO] [stdout] | [INFO] [stdout] 127 | return (check_safe(left_remove) || check_safe(right_remove)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - return (check_safe(left_remove) || check_safe(right_remove)); [INFO] [stdout] 127 + return check_safe(left_remove) || check_safe(right_remove); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::error` [INFO] [stdout] --> src/day02.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::error; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/day02.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | while(safe){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - while(safe){ [INFO] [stdout] 48 + while safe { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/day02.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | match (new_value) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - match (new_value) { [INFO] [stdout] 50 + match new_value { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day02.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | if (new_value_int > last && direction == 0) {direction = 1;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - if (new_value_int > last && direction == 0) {direction = 1;} [INFO] [stdout] 58 + if new_value_int > last && direction == 0 {direction = 1;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day02.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | if (new_value_int < last && direction == 0) {direction = -1;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - if (new_value_int < last && direction == 0) {direction = -1;} [INFO] [stdout] 59 + if new_value_int < last && direction == 0 {direction = -1;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day02.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | if (new_value_int > last && direction == -1) {return false} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 62 - if (new_value_int > last && direction == -1) {return false} [INFO] [stdout] 62 + if new_value_int > last && direction == -1 {return false} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day02.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | if (new_value_int < last && direction == 1) {return false} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - if (new_value_int < last && direction == 1) {return false} [INFO] [stdout] 63 + if new_value_int < last && direction == 1 {return false} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day02.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | if ((new_value_int - last).abs() > 3) { return false;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if ((new_value_int - last).abs() > 3) { return false;} [INFO] [stdout] 65 + if (new_value_int - last).abs() > 3 { return false;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/day02.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | return (check_safe(left_remove) || check_safe(right_remove)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - return (check_safe(left_remove) || check_safe(right_remove)); [INFO] [stdout] 115 + return check_safe(left_remove) || check_safe(right_remove); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/day02.rs:127:20 [INFO] [stdout] | [INFO] [stdout] 127 | return (check_safe(left_remove) || check_safe(right_remove)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - return (check_safe(left_remove) || check_safe(right_remove)); [INFO] [stdout] 127 + return check_safe(left_remove) || check_safe(right_remove); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day02.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut values = line.split_whitespace(); [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: `new_value` [INFO] [stdout] --> src/day02.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | Some(new_value) => {} , [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_value` [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] --> src/day02.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut safe = true; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `error_index` is never read [INFO] [stdout] --> src/day02.rs:110:30 [INFO] [stdout] | [INFO] [stdout] 110 | if direction == -1 { error_index = i as i32; [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 `error_index` is never read [INFO] [stdout] --> src/day02.rs:122:28 [INFO] [stdout] | [INFO] [stdout] 122 | if direction == 1 {error_index = i as i32; [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] --> src/day02.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let mut values = line.split_whitespace(); [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: `new_value` [INFO] [stdout] --> src/day02.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | Some(new_value) => {} , [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_value` [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] --> src/day02.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut safe = true; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `error_index` is never read [INFO] [stdout] --> src/day02.rs:110:30 [INFO] [stdout] | [INFO] [stdout] 110 | if direction == -1 { error_index = i as i32; [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 `error_index` is never read [INFO] [stdout] --> src/day02.rs:122:28 [INFO] [stdout] | [INFO] [stdout] 122 | if direction == 1 {error_index = i as i32; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "76dad6849762f6060879d6cbf45ebc4d8438d769bc4c5a19da146ee65c8c9f6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76dad6849762f6060879d6cbf45ebc4d8438d769bc4c5a19da146ee65c8c9f6b", kill_on_drop: false }` [INFO] [stdout] 76dad6849762f6060879d6cbf45ebc4d8438d769bc4c5a19da146ee65c8c9f6b