[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 master#ebf0cf75d368c035f4c7e7246d203bd469ee4a51 for pr-137940-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjelaby%2Fadvent-of-code-2023-rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jelaby/advent-of-code-2023-rs on toolchain ebf0cf75d368c035f4c7e7246d203bd469ee4a51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc1/source/Cargo.toml [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" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num v0.4.1 [INFO] [stderr] Downloaded num-complex v0.4.4 [INFO] [stderr] Downloaded num-integer v0.1.45 [INFO] [stderr] Downloaded derive_more v0.99.17 [INFO] [stderr] Downloaded enum-map v2.7.3 [INFO] [stderr] Downloaded semver v1.0.20 [INFO] [stderr] Downloaded num-rational v0.4.1 [INFO] [stderr] Downloaded enum-map-derive v0.17.0 [INFO] [stderr] Downloaded num-bigint v0.4.4 [INFO] [stderr] Downloaded num-iter v0.1.43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d701a77a2f21f2bf34d265c1d8c7e51817a12b59fd896b5d0982e3cca5b966c3 [INFO] running `Command { std: "docker" "start" "-a" "d701a77a2f21f2bf34d265c1d8c7e51817a12b59fd896b5d0982e3cca5b966c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d701a77a2f21f2bf34d265c1d8c7e51817a12b59fd896b5d0982e3cca5b966c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d701a77a2f21f2bf34d265c1d8c7e51817a12b59fd896b5d0982e3cca5b966c3", kill_on_drop: false }` [INFO] [stdout] d701a77a2f21f2bf34d265c1d8c7e51817a12b59fd896b5d0982e3cca5b966c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a9bf0076ba34243ab183e0f3b3830cafff401921850ccde709b41ee35cf26a60 [INFO] running `Command { std: "docker" "start" "-a" "a9bf0076ba34243ab183e0f3b3830cafff401921850ccde709b41ee35cf26a60", 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 regex-syntax v0.8.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling num-complex v0.4.4 [INFO] [stderr] Compiling enum-map-derive v0.17.0 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling enum-map v2.7.3 [INFO] [stderr] Compiling derive_more v0.99.17 [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)]` 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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [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)]` 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] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `SOLUTIONS_CACHE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 is discouraged [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.45s [INFO] running `Command { std: "docker" "inspect" "a9bf0076ba34243ab183e0f3b3830cafff401921850ccde709b41ee35cf26a60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9bf0076ba34243ab183e0f3b3830cafff401921850ccde709b41ee35cf26a60", kill_on_drop: false }` [INFO] [stdout] a9bf0076ba34243ab183e0f3b3830cafff401921850ccde709b41ee35cf26a60 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2431d4afd881779c64338c95ce8abee87eac930e7c109fb106dcfb755bc343b3 [INFO] running `Command { std: "docker" "start" "-a" "2431d4afd881779c64338c95ce8abee87eac930e7c109fb106dcfb755bc343b3", 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)]` 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)]` 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)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [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)]` 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] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `SOLUTIONS_CACHE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 is discouraged [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.77s [INFO] running `Command { std: "docker" "inspect" "2431d4afd881779c64338c95ce8abee87eac930e7c109fb106dcfb755bc343b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2431d4afd881779c64338c95ce8abee87eac930e7c109fb106dcfb755bc343b3", kill_on_drop: false }` [INFO] [stdout] 2431d4afd881779c64338c95ce8abee87eac930e7c109fb106dcfb755bc343b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+ebf0cf75d368c035f4c7e7246d203bd469ee4a51" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7062b4cd2264da611f5924bee6460c671f39794667d3799cc5fbcdaf76645c98 [INFO] running `Command { std: "docker" "start" "-a" "7062b4cd2264da611f5924bee6460c671f39794667d3799cc5fbcdaf76645c98", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `LowerExp` [INFO] [stderr] --> src/main.rs:3:43 [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::{Debug, Display, Formatter, LowerExp, Write}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` 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)]` 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)]` 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)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [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)]` 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] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `SOLUTIONS_CACHE` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [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 is discouraged [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 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/advent_of_code_2023-44aaf49ffb22b148) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7062b4cd2264da611f5924bee6460c671f39794667d3799cc5fbcdaf76645c98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7062b4cd2264da611f5924bee6460c671f39794667d3799cc5fbcdaf76645c98", kill_on_drop: false }` [INFO] [stdout] 7062b4cd2264da611f5924bee6460c671f39794667d3799cc5fbcdaf76645c98