[INFO] cloning repository https://github.com/jelaby/advent-of-code-2023-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jelaby/advent-of-code-2023-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjelaby%2Fadvent-of-code-2023-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjelaby%2Fadvent-of-code-2023-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 679865f23e995c438b3f41ae532d3cf0edcf6d0b [INFO] testing jelaby/advent-of-code-2023-rs against beta-2025-09-21 for beta-1.91-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjelaby%2Fadvent-of-code-2023-rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jelaby/advent-of-code-2023-rs [INFO] finished tweaking git repo https://github.com/jelaby/advent-of-code-2023-rs [INFO] tweaked toml for git repo https://github.com/jelaby/advent-of-code-2023-rs written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jelaby/advent-of-code-2023-rs on toolchain beta-2025-09-21 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jelaby/advent-of-code-2023-rs 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" "+beta-2025-09-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11214321fa08608067246482b9f806e1530c48ede8e05ed0432732edcce896fe [INFO] running `Command { std: "docker" "start" "-a" "11214321fa08608067246482b9f806e1530c48ede8e05ed0432732edcce896fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11214321fa08608067246482b9f806e1530c48ede8e05ed0432732edcce896fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11214321fa08608067246482b9f806e1530c48ede8e05ed0432732edcce896fe", kill_on_drop: false }` [INFO] [stdout] 11214321fa08608067246482b9f806e1530c48ede8e05ed0432732edcce896fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94d0fa19543f46d7842137ebce6a80c4ff69b8d5d6c92b835a5d8faa39233d94 [INFO] running `Command { std: "docker" "start" "-a" "94d0fa19543f46d7842137ebce6a80c4ff69b8d5d6c92b835a5d8faa39233d94", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling num-complex v0.4.4 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling enum-map-derive v0.17.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling enum-map v2.7.3 [INFO] [stderr] Compiling num v0.4.1 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling advent-of-code-2023 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `LowerExp` [INFO] [stdout] --> src/main.rs:3:43 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Debug, Display, Formatter, LowerExp, Write}; [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: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_map` [INFO] [stdout] --> src/main.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | use enum_map::{enum_map, Enum, EnumMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:308:5 [INFO] [stdout] | [INFO] [stdout] 308 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:3:53 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Debug, Display, Formatter, LowerExp, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/main.rs:550:13 [INFO] [stdout] | [INFO] [stdout] 550 | let mut t = Type::SEED; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:722:59 [INFO] [stdout] | [INFO] [stdout] 722 | let value = n.parse::().or_else(|n| Err(ParseError))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/main.rs:759:21 [INFO] [stdout] | [INFO] [stdout] 759 | (5, card) => HandType::FiveOfAKind, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/main.rs:760:21 [INFO] [stdout] | [INFO] [stdout] 760 | (4, card) => HandType::FourOfAKind, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/main.rs:761:21 [INFO] [stdout] | [INFO] [stdout] 761 | (3, card) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/main.rs:768:21 [INFO] [stdout] | [INFO] [stdout] 768 | (2, card) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/main.rs:775:21 [INFO] [stdout] | [INFO] [stdout] 775 | (1, card) => HandType::High, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/main.rs:1082:13 [INFO] [stdout] | [INFO] [stdout] 1082 | for col in 0..p.1 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:1429:16 [INFO] [stdout] | [INFO] [stdout] 1429 | .map(|(i, (records, broken_regions))| find_solutions(&records, &broken_regions)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_fill` is never used [INFO] [stdout] --> src/main.rs:1076:8 [INFO] [stdout] | [INFO] [stdout] 1076 | fn print_fill(map: &Vec>, is_inside: &Vec>, p: &(i64, i64)) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:1274:13 [INFO] [stdout] | [INFO] [stdout] 1274 | solutions_cache.clear(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `solutions_cache` should have an upper case name [INFO] [stdout] --> src/main.rs:1284:16 [INFO] [stdout] | [INFO] [stdout] 1284 | static mut solutions_cache : Lazy> = Lazy::new(|| HashMap::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 1284 - static mut solutions_cache : Lazy> = Lazy::new(|| HashMap::new()); [INFO] [stdout] 1284 + static mut SOLUTIONS_CACHE : Lazy> = Lazy::new(|| HashMap::new()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:1308:13 [INFO] [stdout] | [INFO] [stdout] 1308 | solutions_cache.get(&key).map(|r| *r).unwrap_or_else(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:1310:17 [INFO] [stdout] | [INFO] [stdout] 1310 | solutions_cache.insert(key, r); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.17s [INFO] running `Command { std: "docker" "inspect" "94d0fa19543f46d7842137ebce6a80c4ff69b8d5d6c92b835a5d8faa39233d94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94d0fa19543f46d7842137ebce6a80c4ff69b8d5d6c92b835a5d8faa39233d94", kill_on_drop: false }` [INFO] [stdout] 94d0fa19543f46d7842137ebce6a80c4ff69b8d5d6c92b835a5d8faa39233d94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08b3fd4458a50c5e9f7462a1ba8ff856e3309e074e33cc5dd1ef8f3ef7547d70 [INFO] running `Command { std: "docker" "start" "-a" "08b3fd4458a50c5e9f7462a1ba8ff856e3309e074e33cc5dd1ef8f3ef7547d70", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code-2023 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `LowerExp` [INFO] [stdout] --> src/main.rs:3:43 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Debug, Display, Formatter, LowerExp, Write}; [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: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_map` [INFO] [stdout] --> src/main.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | use enum_map::{enum_map, Enum, EnumMap}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/main.rs:308:5 [INFO] [stdout] | [INFO] [stdout] 308 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/main.rs:3:53 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Debug, Display, Formatter, LowerExp, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> src/main.rs:550:13 [INFO] [stdout] | [INFO] [stdout] 550 | let mut t = Type::SEED; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:722:59 [INFO] [stdout] | [INFO] [stdout] 722 | let value = n.parse::().or_else(|n| Err(ParseError))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/main.rs:759:21 [INFO] [stdout] | [INFO] [stdout] 759 | (5, card) => HandType::FiveOfAKind, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/main.rs:760:21 [INFO] [stdout] | [INFO] [stdout] 760 | (4, card) => HandType::FourOfAKind, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/main.rs:761:21 [INFO] [stdout] | [INFO] [stdout] 761 | (3, card) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/main.rs:768:21 [INFO] [stdout] | [INFO] [stdout] 768 | (2, card) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/main.rs:775:21 [INFO] [stdout] | [INFO] [stdout] 775 | (1, card) => HandType::High, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/main.rs:1082:13 [INFO] [stdout] | [INFO] [stdout] 1082 | for col in 0..p.1 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:1429:16 [INFO] [stdout] | [INFO] [stdout] 1429 | .map(|(i, (records, broken_regions))| find_solutions(&records, &broken_regions)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_fill` is never used [INFO] [stdout] --> src/main.rs:1076:8 [INFO] [stdout] | [INFO] [stdout] 1076 | fn print_fill(map: &Vec>, is_inside: &Vec>, p: &(i64, i64)) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:1274:13 [INFO] [stdout] | [INFO] [stdout] 1274 | solutions_cache.clear(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `solutions_cache` should have an upper case name [INFO] [stdout] --> src/main.rs:1284:16 [INFO] [stdout] | [INFO] [stdout] 1284 | static mut solutions_cache : Lazy> = Lazy::new(|| HashMap::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 1284 - static mut solutions_cache : Lazy> = Lazy::new(|| HashMap::new()); [INFO] [stdout] 1284 + static mut SOLUTIONS_CACHE : Lazy> = Lazy::new(|| HashMap::new()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:1308:13 [INFO] [stdout] | [INFO] [stdout] 1308 | solutions_cache.get(&key).map(|r| *r).unwrap_or_else(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/main.rs:1310:17 [INFO] [stdout] | [INFO] [stdout] 1310 | solutions_cache.insert(key, r); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.83s [INFO] running `Command { std: "docker" "inspect" "08b3fd4458a50c5e9f7462a1ba8ff856e3309e074e33cc5dd1ef8f3ef7547d70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08b3fd4458a50c5e9f7462a1ba8ff856e3309e074e33cc5dd1ef8f3ef7547d70", kill_on_drop: false }` [INFO] [stdout] 08b3fd4458a50c5e9f7462a1ba8ff856e3309e074e33cc5dd1ef8f3ef7547d70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1d65fa8dc49b439f416814f4465b70359564367553e8b22bbb9a6a11dd9f23a5 [INFO] running `Command { std: "docker" "start" "-a" "1d65fa8dc49b439f416814f4465b70359564367553e8b22bbb9a6a11dd9f23a5", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `LowerExp` [INFO] [stdout] [INFO] [stderr] --> src/main.rs:3:43 [INFO] [stdout] running 0 tests [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 3 | use std::fmt::{Debug, Display, Formatter, LowerExp, Write}; [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | ^^^^^^^^ [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ops::Deref` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::ops::Deref; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `enum_map` [INFO] [stderr] --> src/main.rs:13:16 [INFO] [stderr] | [INFO] [stderr] 13 | use enum_map::{enum_map, Enum, EnumMap}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: denote infinite loops with `loop { ... }` [INFO] [stderr] --> src/main.rs:308:5 [INFO] [stderr] | [INFO] [stderr] 308 | while true { [INFO] [stderr] | ^^^^^^^^^^ help: use `loop` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(while_true)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Write` [INFO] [stderr] --> src/main.rs:3:53 [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::{Debug, Display, Formatter, LowerExp, Write}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: value assigned to `t` is never read [INFO] [stderr] --> src/main.rs:550:13 [INFO] [stderr] | [INFO] [stderr] 550 | let mut t = Type::SEED; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/main.rs:722:59 [INFO] [stderr] | [INFO] [stderr] 722 | let value = n.parse::().or_else(|n| Err(ParseError))?; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `card` [INFO] [stderr] --> src/main.rs:759:21 [INFO] [stderr] | [INFO] [stderr] 759 | (5, card) => HandType::FiveOfAKind, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `card` [INFO] [stderr] --> src/main.rs:760:21 [INFO] [stderr] | [INFO] [stderr] 760 | (4, card) => HandType::FourOfAKind, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `card` [INFO] [stderr] --> src/main.rs:761:21 [INFO] [stderr] | [INFO] [stderr] 761 | (3, card) => { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `card` [INFO] [stderr] --> src/main.rs:768:21 [INFO] [stderr] | [INFO] [stderr] 768 | (2, card) => { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `card` [INFO] [stderr] --> src/main.rs:775:21 [INFO] [stderr] | [INFO] [stderr] 775 | (1, card) => HandType::High, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `col` [INFO] [stderr] --> src/main.rs:1082:13 [INFO] [stderr] | [INFO] [stderr] 1082 | for col in 0..p.1 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/main.rs:1429:16 [INFO] [stderr] | [INFO] [stderr] 1429 | .map(|(i, (records, broken_regions))| find_solutions(&records, &broken_regions)) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: function `print_fill` is never used [INFO] [stderr] --> src/main.rs:1076:8 [INFO] [stderr] | [INFO] [stderr] 1076 | fn print_fill(map: &Vec>, is_inside: &Vec>, p: &(i64, i64)) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/main.rs:1274:13 [INFO] [stderr] | [INFO] [stderr] 1274 | solutions_cache.clear(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: static variable `solutions_cache` should have an upper case name [INFO] [stderr] --> src/main.rs:1284:16 [INFO] [stderr] | [INFO] [stderr] 1284 | static mut solutions_cache : Lazy> = Lazy::new(|| HashMap::new()); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] help: convert the identifier to upper case [INFO] [stderr] | [INFO] [stderr] 1284 - static mut solutions_cache : Lazy> = Lazy::new(|| HashMap::new()); [INFO] [stderr] 1284 + static mut SOLUTIONS_CACHE : Lazy> = Lazy::new(|| HashMap::new()); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/main.rs:1308:13 [INFO] [stderr] | [INFO] [stderr] 1308 | solutions_cache.get(&key).map(|r| *r).unwrap_or_else(|| { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/main.rs:1310:17 [INFO] [stderr] | [INFO] [stderr] 1310 | solutions_cache.insert(key, r); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: `advent-of-code-2023` (bin "advent-of-code-2023" test) generated 19 warnings (run `cargo fix --bin "advent-of-code-2023" --tests` to apply 5 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/advent_of_code_2023-12c704ab749d3eef) [INFO] running `Command { std: "docker" "inspect" "1d65fa8dc49b439f416814f4465b70359564367553e8b22bbb9a6a11dd9f23a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d65fa8dc49b439f416814f4465b70359564367553e8b22bbb9a6a11dd9f23a5", kill_on_drop: false }` [INFO] [stdout] 1d65fa8dc49b439f416814f4465b70359564367553e8b22bbb9a6a11dd9f23a5