[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 master#336209eef13882bd1e211b24779584cb7ef911eb for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faidant%2Fadvent-of-code-2024" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aidant/advent-of-code-2024 on toolchain 336209eef13882bd1e211b24779584cb7ef911eb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3-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-3-tc1/source/Cargo.toml [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" "+336209eef13882bd1e211b24779584cb7ef911eb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b1377d5381792f01ef026a45be0e8ae67ae14c3f99e1cae323a9211c6eb6ee6 [INFO] running `Command { std: "docker" "start" "-a" "1b1377d5381792f01ef026a45be0e8ae67ae14c3f99e1cae323a9211c6eb6ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b1377d5381792f01ef026a45be0e8ae67ae14c3f99e1cae323a9211c6eb6ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b1377d5381792f01ef026a45be0e8ae67ae14c3f99e1cae323a9211c6eb6ee6", kill_on_drop: false }` [INFO] [stdout] 1b1377d5381792f01ef026a45be0e8ae67ae14c3f99e1cae323a9211c6eb6ee6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+336209eef13882bd1e211b24779584cb7ef911eb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 70d7f355ddb9f310c4c7a6e139c034a2e745d69a73983816082c20449c61a2d6 [INFO] running `Command { std: "docker" "start" "-a" "70d7f355ddb9f310c4c7a6e139c034a2e745d69a73983816082c20449c61a2d6", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling anyhow v1.0.93 [INFO] [stderr] Checking regex-syntax v0.8.5 [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)]` 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: `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)]` 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 variable: `is_valid` [INFO] [stdout] --> src/day_5_print_queue.rs:46:13 [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)]` 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: 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)]` on by default [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: unused variable: `is_valid` [INFO] [stdout] --> src/day_5_print_queue.rs:46:13 [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)]` 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: 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)]` on by default [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 4.95s [INFO] running `Command { std: "docker" "inspect" "70d7f355ddb9f310c4c7a6e139c034a2e745d69a73983816082c20449c61a2d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70d7f355ddb9f310c4c7a6e139c034a2e745d69a73983816082c20449c61a2d6", kill_on_drop: false }` [INFO] [stdout] 70d7f355ddb9f310c4c7a6e139c034a2e745d69a73983816082c20449c61a2d6