[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 try#a7ce54db9b096bd1098d07c645b489195a667c9f 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-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jelaby/advent-of-code-2023-rs on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "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-tc2/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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d99df6d5e0cd2788f2a3f21509fbe07b686ecf95af8528223b1593ed9dfaea2d [INFO] running `Command { std: "docker" "start" "-a" "d99df6d5e0cd2788f2a3f21509fbe07b686ecf95af8528223b1593ed9dfaea2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d99df6d5e0cd2788f2a3f21509fbe07b686ecf95af8528223b1593ed9dfaea2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d99df6d5e0cd2788f2a3f21509fbe07b686ecf95af8528223b1593ed9dfaea2d", kill_on_drop: false }` [INFO] [stdout] d99df6d5e0cd2788f2a3f21509fbe07b686ecf95af8528223b1593ed9dfaea2d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 70a8ef0e37ded4d39a3b3fb5272791e1abc1d8dea9ca7dd65e44cb968a561e43 [INFO] running `Command { std: "docker" "start" "-a" "70a8ef0e37ded4d39a3b3fb5272791e1abc1d8dea9ca7dd65e44cb968a561e43", 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-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [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 regex-automata v0.4.3 [INFO] [stderr] Compiling enum-map-derive v0.17.0 [INFO] [stderr] Compiling enum-map v2.7.3 [INFO] [stderr] Compiling num v0.4.1 [INFO] [stderr] Compiling derive_more v0.99.17 [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.83s [INFO] running `Command { std: "docker" "inspect" "70a8ef0e37ded4d39a3b3fb5272791e1abc1d8dea9ca7dd65e44cb968a561e43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70a8ef0e37ded4d39a3b3fb5272791e1abc1d8dea9ca7dd65e44cb968a561e43", kill_on_drop: false }` [INFO] [stdout] 70a8ef0e37ded4d39a3b3fb5272791e1abc1d8dea9ca7dd65e44cb968a561e43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08dfc298e37e9730dad3abbdcbf388a9da58b3b2b1808023dac1f473c29199be [INFO] running `Command { std: "docker" "start" "-a" "08dfc298e37e9730dad3abbdcbf388a9da58b3b2b1808023dac1f473c29199be", 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.92s [INFO] running `Command { std: "docker" "inspect" "08dfc298e37e9730dad3abbdcbf388a9da58b3b2b1808023dac1f473c29199be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08dfc298e37e9730dad3abbdcbf388a9da58b3b2b1808023dac1f473c29199be", kill_on_drop: false }` [INFO] [stdout] 08dfc298e37e9730dad3abbdcbf388a9da58b3b2b1808023dac1f473c29199be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cc59924660a02620fcb2d5527307b0eac8687c3fa4afd4f6703ca4167ce1c398 [INFO] running `Command { std: "docker" "start" "-a" "cc59924660a02620fcb2d5527307b0eac8687c3fa4afd4f6703ca4167ce1c398", 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.05s [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" "cc59924660a02620fcb2d5527307b0eac8687c3fa4afd4f6703ca4167ce1c398", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc59924660a02620fcb2d5527307b0eac8687c3fa4afd4f6703ca4167ce1c398", kill_on_drop: false }` [INFO] [stdout] cc59924660a02620fcb2d5527307b0eac8687c3fa4afd4f6703ca4167ce1c398