[INFO] cloning repository https://github.com/Kezahh/AOC_2024 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kezahh/AOC_2024" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKezahh%2FAOC_2024", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKezahh%2FAOC_2024'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9fc770487dfc23c2c909274c9cc4ae01b492eb86 [INFO] documenting Kezahh/AOC_2024 against try#a394c9cd9ec93787f09a7ac445b14cc674a94549 for pr-151918 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKezahh%2FAOC_2024" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Kezahh/AOC_2024 [INFO] finished tweaking git repo https://github.com/Kezahh/AOC_2024 [INFO] tweaked toml for git repo https://github.com/Kezahh/AOC_2024 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Kezahh/AOC_2024 on toolchain a394c9cd9ec93787f09a7ac445b14cc674a94549 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a394c9cd9ec93787f09a7ac445b14cc674a94549" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Kezahh/AOC_2024 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" "+a394c9cd9ec93787f09a7ac445b14cc674a94549" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+a394c9cd9ec93787f09a7ac445b14cc674a94549" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a4355919512dc4f42e5855a0a58b5fc9c0dcff53e04d31c7370a0b61914d82b [INFO] running `Command { std: "docker" "start" "-a" "8a4355919512dc4f42e5855a0a58b5fc9c0dcff53e04d31c7370a0b61914d82b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a4355919512dc4f42e5855a0a58b5fc9c0dcff53e04d31c7370a0b61914d82b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a4355919512dc4f42e5855a0a58b5fc9c0dcff53e04d31c7370a0b61914d82b", kill_on_drop: false }` [INFO] [stdout] 8a4355919512dc4f42e5855a0a58b5fc9c0dcff53e04d31c7370a0b61914d82b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+a394c9cd9ec93787f09a7ac445b14cc674a94549" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9da65cc270c111e1332b90ebc9c2223b3acdbe0073d52bf9080bc41f6bab50b8 [INFO] running `Command { std: "docker" "start" "-a" "9da65cc270c111e1332b90ebc9c2223b3acdbe0073d52bf9080bc41f6bab50b8", kill_on_drop: false }` [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Documenting AOC_2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_4.rs:147:20 [INFO] [stdout] | [INFO] [stdout] 147 | if (row < XMAS_LENGTH - 1) { [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] 147 - if (row < XMAS_LENGTH - 1) { [INFO] [stdout] 147 + if row < XMAS_LENGTH - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_4.rs:152:20 [INFO] [stdout] | [INFO] [stdout] 152 | if (row + XMAS_LENGTH > self.row_count()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 152 - if (row + XMAS_LENGTH > self.row_count()) { [INFO] [stdout] 152 + if row + XMAS_LENGTH > self.row_count() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_4.rs:157:20 [INFO] [stdout] | [INFO] [stdout] 157 | if (col < XMAS_LENGTH - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 157 - if (col < XMAS_LENGTH - 1) { [INFO] [stdout] 157 + if col < XMAS_LENGTH - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_4.rs:162:20 [INFO] [stdout] | [INFO] [stdout] 162 | if (col + XMAS_LENGTH > self.col_count()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 162 - if (col + XMAS_LENGTH > self.col_count()) { [INFO] [stdout] 162 + if col + XMAS_LENGTH > self.col_count() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_6.rs:352:20 [INFO] [stdout] | [INFO] [stdout] 352 | if (guard_on_map) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - if (guard_on_map) { [INFO] [stdout] 352 + if guard_on_map { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day_6.rs:357:26 [INFO] [stdout] | [INFO] [stdout] 357 | for r in (row..(row + new_distance + 1)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 357 - for r in (row..(row + new_distance + 1)) { [INFO] [stdout] 357 + for r in row..(row + new_distance + 1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_6.rs:361:20 [INFO] [stdout] | [INFO] [stdout] 361 | if (guard_on_map) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 361 - if (guard_on_map) { [INFO] [stdout] 361 + if guard_on_map { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day_6.rs:366:26 [INFO] [stdout] | [INFO] [stdout] 366 | for c in ((col - new_distance)..col) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 366 - for c in ((col - new_distance)..col) { [INFO] [stdout] 366 + for c in (col - new_distance)..col { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_6.rs:370:20 [INFO] [stdout] | [INFO] [stdout] 370 | if (guard_on_map) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 370 - if (guard_on_map) { [INFO] [stdout] 370 + if guard_on_map { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day_6.rs:375:26 [INFO] [stdout] | [INFO] [stdout] 375 | for c in (col..(col + new_distance + 1)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 375 - for c in (col..(col + new_distance + 1)) { [INFO] [stdout] 375 + for c in col..(col + new_distance + 1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_6.rs:379:20 [INFO] [stdout] | [INFO] [stdout] 379 | if (guard_on_map) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 379 - if (guard_on_map) { [INFO] [stdout] 379 + if guard_on_map { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day_6.rs:459:34 [INFO] [stdout] | [INFO] [stdout] 459 | for r in (row..(row + new_distance + 1)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 459 - for r in (row..(row + new_distance + 1)) { [INFO] [stdout] 459 + for r in row..(row + new_distance + 1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day_6.rs:466:34 [INFO] [stdout] | [INFO] [stdout] 466 | for c in ((col - new_distance)..col) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 466 - for c in ((col - new_distance)..col) { [INFO] [stdout] 466 + for c in (col - new_distance)..col { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/day_6.rs:473:34 [INFO] [stdout] | [INFO] [stdout] 473 | for c in (col..(col + new_distance + 1)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 473 - for c in (col..(col + new_distance + 1)) { [INFO] [stdout] 473 + for c in col..(col + new_distance + 1) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day_9.rs:147:22 [INFO] [stdout] | [INFO] [stdout] 147 | final_sum += (x * i); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 147 - final_sum += (x * i); [INFO] [stdout] 147 + final_sum += x * i ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day_9.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | let max_index: usize = (original.len() / 2); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 159 - let max_index: usize = (original.len() / 2); [INFO] [stdout] 159 + let max_index: usize = original.len() / 2 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day_14.rs:52:28 [INFO] [stdout] | [INFO] [stdout] 52 | let mid_width: usize = (width / 2); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - let mid_width: usize = (width / 2); [INFO] [stdout] 52 + let mid_width: usize = width / 2 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/day_14.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | let mid_height: usize = (height / 2); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - let mid_height: usize = (height / 2); [INFO] [stdout] 53 + let mid_height: usize = height / 2 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/day_14.rs:100:15 [INFO] [stdout] | [INFO] [stdout] 100 | while (!found_tree) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 100 - while (!found_tree) { [INFO] [stdout] 100 + while !found_tree { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/day_17.rs:152:119 [INFO] [stdout] | [INFO] [stdout] 152 | fn do_program(program: Vec, register_a: &mut i64, register_b: &mut i64, register_c: &mut i64, part_2: bool) -> (String) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 152 - fn do_program(program: Vec, register_a: &mut i64, register_b: &mut i64, register_c: &mut i64, part_2: bool) -> (String) { [INFO] [stdout] 152 + fn do_program(program: Vec, register_a: &mut i64, register_b: &mut i64, register_c: &mut i64, part_2: bool) -> String { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/day_24.rs:404:12 [INFO] [stdout] | [INFO] [stdout] 404 | if (g.inputs[0] == inputs[0] && g.inputs[1] == inputs[1] || g.inputs[1] == inputs[0] && g.inputs[0] == inputs[1]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 404 - if (g.inputs[0] == inputs[0] && g.inputs[1] == inputs[1] || g.inputs[1] == inputs[0] && g.inputs[0] == inputs[1]) { [INFO] [stdout] 404 + if g.inputs[0] == inputs[0] && g.inputs[1] == inputs[1] || g.inputs[1] == inputs[0] && g.inputs[0] == inputs[1] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/day_24.rs:412:12 [INFO] [stdout] | [INFO] [stdout] 412 | return (gate.gate_type == GateType::XOR && ( [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 415 | )); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 412 ~ return gate.gate_type == GateType::XOR && ( [INFO] [stdout] 413 | (gate.inputs[0].starts_with("x") && gate.inputs[1].starts_with("y")) || [INFO] [stdout] 414 | (gate.inputs[1].starts_with("x") && gate.inputs[0].starts_with("y")) [INFO] [stdout] 415 ~ ) ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.11s [INFO] [stderr] Generated /opt/rustwide/target/doc/AOC_2024/index.html [INFO] running `Command { std: "docker" "inspect" "9da65cc270c111e1332b90ebc9c2223b3acdbe0073d52bf9080bc41f6bab50b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9da65cc270c111e1332b90ebc9c2223b3acdbe0073d52bf9080bc41f6bab50b8", kill_on_drop: false }` [INFO] [stdout] 9da65cc270c111e1332b90ebc9c2223b3acdbe0073d52bf9080bc41f6bab50b8