[INFO] cloning repository https://github.com/aidant/advent-of-code-2024 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aidant/advent-of-code-2024" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faidant%2Fadvent-of-code-2024", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faidant%2Fadvent-of-code-2024'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d0d5314ba4b1d0606adcdc0baaf08d72ed2cc99 [INFO] checking aidant/advent-of-code-2024 against 8006091eb71ae7d9e9bccb66c6122c9d68af4466 for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faidant%2Fadvent-of-code-2024" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/aidant/advent-of-code-2024 [INFO] finished tweaking git repo https://github.com/aidant/advent-of-code-2024 [INFO] tweaked toml for git repo https://github.com/aidant/advent-of-code-2024 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/aidant/advent-of-code-2024 on toolchain 8006091eb71ae7d9e9bccb66c6122c9d68af4466 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/aidant/advent-of-code-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" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 040f1fc988c552cd0081eed45c7b5a4f3e1743dd2f47a92c0146154c48b70060 [INFO] running `Command { std: "docker" "start" "040f1fc988c552cd0081eed45c7b5a4f3e1743dd2f47a92c0146154c48b70060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "040f1fc988c552cd0081eed45c7b5a4f3e1743dd2f47a92c0146154c48b70060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "040f1fc988c552cd0081eed45c7b5a4f3e1743dd2f47a92c0146154c48b70060" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "040f1fc988c552cd0081eed45c7b5a4f3e1743dd2f47a92c0146154c48b70060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "040f1fc988c552cd0081eed45c7b5a4f3e1743dd2f47a92c0146154c48b70060" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking advent-of-code-2024 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/day_5_print_queue.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | 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: unused import: `anyhow::anyhow` [INFO] [stdout] --> src/day_6_guard_gallivant.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use anyhow::anyhow; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `test::Bencher` [INFO] [stdout] --> src/day_6_guard_gallivant.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | use test::Bencher; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/day_5_print_queue.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | 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: unused import: `anyhow::anyhow` [INFO] [stdout] --> src/day_6_guard_gallivant.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use anyhow::anyhow; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::usize`: all constants in this module replaced by associated constants on the type [INFO] [stdout] --> src/day_4_ceres_search.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `std::usize`: all constants in this module replaced by associated constants on the type [INFO] [stdout] --> src/day_4_ceres_search.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_5_print_queue.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut is_valid = true; [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: `is_valid` [INFO] [stdout] --> src/day_5_print_queue.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut is_valid = true; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_valid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rules_before` [INFO] [stdout] --> src/day_5_print_queue.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let rules_before = Vec::<(u8, u8)>::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rules_before` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rules_after` [INFO] [stdout] --> src/day_5_print_queue.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let rules_after = Vec::<(u8, u8)>::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rules_after` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_index` [INFO] [stdout] --> src/day_5_print_queue.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | for page_index in 0..middle_index { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/day_5_print_queue.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | for &(a, b) in rules {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_5_print_queue.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | for &(a, b) in rules {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_index` [INFO] [stdout] --> src/day_5_print_queue.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | for page_index in middle_index..update.len() { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/day_5_print_queue.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | for &(a, b) in rules {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_5_print_queue.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | for &(a, b) in rules {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/day_6_guard_gallivant.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 57 | let mut chars_history = chars.clone().to_owned(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` 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: feature `test` is declared but not used [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(test)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day_5_print_queue.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut is_valid = true; [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: `is_valid` [INFO] [stdout] --> src/day_5_print_queue.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut is_valid = true; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_valid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rules_before` [INFO] [stdout] --> src/day_5_print_queue.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let rules_before = Vec::<(u8, u8)>::new(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rules_before` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rules_after` [INFO] [stdout] --> src/day_5_print_queue.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let rules_after = Vec::<(u8, u8)>::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rules_after` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_index` [INFO] [stdout] --> src/day_5_print_queue.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | for page_index in 0..middle_index { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/day_5_print_queue.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | for &(a, b) in rules {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_5_print_queue.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | for &(a, b) in rules {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page_index` [INFO] [stdout] --> src/day_5_print_queue.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | for page_index in middle_index..update.len() { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_page_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/day_5_print_queue.rs:58:15 [INFO] [stdout] | [INFO] [stdout] 58 | for &(a, b) in rules {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_5_print_queue.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 58 | for &(a, b) in rules {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/day_6_guard_gallivant.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 57 | let mut chars_history = chars.clone().to_owned(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.71s [INFO] running `Command { std: "docker" "inspect" "040f1fc988c552cd0081eed45c7b5a4f3e1743dd2f47a92c0146154c48b70060", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "040f1fc988c552cd0081eed45c7b5a4f3e1743dd2f47a92c0146154c48b70060", kill_on_drop: false }` [INFO] [stdout] 040f1fc988c552cd0081eed45c7b5a4f3e1743dd2f47a92c0146154c48b70060