[INFO] cloning repository https://github.com/Logta/life_game_wasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Logta/life_game_wasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLogta%2Flife_game_wasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLogta%2Flife_game_wasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4eb2f580aecee9372973c8c1a6a6df7cb1cad064 [INFO] checking Logta/life_game_wasm/4eb2f580aecee9372973c8c1a6a6df7cb1cad064 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLogta%2Flife_game_wasm" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Logta/life_game_wasm on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Logta/life_game_wasm [INFO] finished tweaking git repo https://github.com/Logta/life_game_wasm [INFO] tweaked toml for git repo https://github.com/Logta/life_game_wasm written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Logta/life_game_wasm 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f33f63088dd919b8d20d56ca1f430189dafb204290ae0e4799ec573962c15df [INFO] running `Command { std: "docker" "start" "-a" "0f33f63088dd919b8d20d56ca1f430189dafb204290ae0e4799ec573962c15df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f33f63088dd919b8d20d56ca1f430189dafb204290ae0e4799ec573962c15df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f33f63088dd919b8d20d56ca1f430189dafb204290ae0e4799ec573962c15df", kill_on_drop: false }` [INFO] [stdout] 0f33f63088dd919b8d20d56ca1f430189dafb204290ae0e4799ec573962c15df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 85fb7eb88aa5c4d53660aa44e3c2fae2947b5e6a95804c93249b29b6b98a4f8f [INFO] running `Command { std: "docker" "start" "-a" "85fb7eb88aa5c4d53660aa44e3c2fae2947b5e6a95804c93249b29b6b98a4f8f", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (1 fix) [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.88 [INFO] [stderr] Compiling bumpalo v3.14.0 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.88 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.88 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.38 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.88 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.88 [INFO] [stderr] Checking js-sys v0.3.65 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking futures-executor v0.3.29 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Checking wasm-timer v0.2.5 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.38 [INFO] [stderr] Checking web-sys v0.3.65 [INFO] [stderr] Checking wasm-bindgen-test v0.3.38 [INFO] [stderr] Checking rust-webpack-template v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/player.rs (3 fixes) [INFO] [stderr] Fixed src/lib.rs (1 fix) [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let p = Player::init(standard_rule::StandardRule {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/lib.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let table = document.create_element("life-game-table").unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/field.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | _ => Color::White, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/field.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 28 | Color::White => Color::Black, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 29 | Color::Black => Color::White, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 30 | _ => Color::White, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/field.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | _ => Color::White, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/field.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 38 | Color::White => Color::Black, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 39 | Color::Black => Color::White, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 40 | _ => Color::White, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `play_cell` is never used [INFO] [stdout] --> src/field.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Field { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn play_cell(mut self, x: usize, y: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/field.rs (2 fixes) [INFO] [stderr] Migrating tests/app.rs from 2021 edition to 2024 [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let p = Player::init(standard_rule::StandardRule {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/lib.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let table = document.create_element("life-game-table").unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/field.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | _ => Color::White, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/field.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 26 | Color::White => Color::Black, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 27 | Color::Black => Color::White, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 28 | _ => Color::White, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/field.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => Color::White, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/field.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 36 | Color::White => Color::Black, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 37 | Color::Black => Color::White, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 38 | _ => Color::White, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_yaml` is never used [INFO] [stdout] --> src/config.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn load_yaml(path: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_PATH` is never used [INFO] [stdout] --> src/config.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const CONFIG_PATH: &str = "./src/config/config.yaml"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `board`, `max_row`, and `max_column` are never read [INFO] [stdout] --> src/field.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Field { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | pub board: Vec>, // [y][x] [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | pub max_row: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | pub max_column: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invert_cell_state` and `play_cell` are never used [INFO] [stdout] --> src/field.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Field { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn invert_cell_state(mut self, x: usize, y: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn play_cell(mut self, x: usize, y: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `field` and `generation` are never read [INFO] [stdout] --> src/player.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | pub field: Field, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | pub generation: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invert`, `step`, and `play` are never used [INFO] [stdout] --> src/player.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Player { [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn invert(mut self, x: usize, y: usize) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn step(mut self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn play(mut self, generation: u64) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `burth`, `stay`, and `target_cells` are never used [INFO] [stdout] --> src/rules/rule_trait.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Rule { [INFO] [stdout] | ---- associated functions in this trait [INFO] [stdout] 4 | fn burth(vec: Vec) -> bool; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | fn stay(vec: Vec) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | fn target_cells(x: usize, y: usize, max_rows: usize, max_columns: usize) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed tests/app.rs (3 fixes) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.48s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] [stderr] Checking rust-webpack-template v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let p = Player::init(standard_rule::StandardRule {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/lib.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let table = document.create_element("life-game-table").unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `load_yaml` in this scope [INFO] [stdout] --> src/field.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | let confs = load_yaml(CONFIG_PATH); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 46 + use crate::config::load_yaml; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CONFIG_PATH` in this scope [INFO] [stdout] --> src/field.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | let confs = load_yaml(CONFIG_PATH); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 46 + use crate::config::CONFIG_PATH; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p` [INFO] [stdout] --> src/lib.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let p = Player::init(standard_rule::StandardRule {}); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/lib.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let table = document.create_element("life-game-table").unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/field.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | _ => Color::White, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/field.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 26 | Color::White => Color::Black, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 27 | Color::Black => Color::White, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 28 | _ => Color::White, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/field.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => Color::White, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/field.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 36 | Color::White => Color::Black, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 37 | Color::Black => Color::White, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 38 | _ => Color::White, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_yaml` is never used [INFO] [stdout] --> src/config.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn load_yaml(path: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_PATH` is never used [INFO] [stdout] --> src/config.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const CONFIG_PATH: &str = "./src/config/config.yaml"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `board`, `max_row`, and `max_column` are never read [INFO] [stdout] --> src/field.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Field { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | pub board: Vec>, // [y][x] [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | pub max_row: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | pub max_column: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Field` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invert_cell_state` and `play_cell` are never used [INFO] [stdout] --> src/field.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Field { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn invert_cell_state(mut self, x: usize, y: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn play_cell(mut self, x: usize, y: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `field` and `generation` are never read [INFO] [stdout] --> src/player.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | pub field: Field, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | pub generation: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `invert`, `step`, and `play` are never used [INFO] [stdout] --> src/player.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Player { [INFO] [stdout] | ----------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn invert(mut self, x: usize, y: usize) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn step(mut self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn play(mut self, generation: u64) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `burth`, `stay`, and `target_cells` are never used [INFO] [stdout] --> src/rules/rule_trait.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Rule { [INFO] [stdout] | ---- associated functions in this trait [INFO] [stdout] 4 | fn burth(vec: Vec) -> bool; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | fn stay(vec: Vec) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | fn target_cells(x: usize, y: usize, max_rows: usize, max_columns: usize) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/field.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | _ => Color::White, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/field.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 26 | Color::White => Color::Black, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 27 | Color::Black => Color::White, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 28 | _ => Color::White, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/field.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => Color::White, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/field.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 36 | Color::White => Color::Black, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 37 | Color::Black => Color::White, [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] 38 | _ => Color::White, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-webpack-template` (lib test) due to 3 previous errors; 4 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "85fb7eb88aa5c4d53660aa44e3c2fae2947b5e6a95804c93249b29b6b98a4f8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85fb7eb88aa5c4d53660aa44e3c2fae2947b5e6a95804c93249b29b6b98a4f8f", kill_on_drop: false }` [INFO] [stdout] 85fb7eb88aa5c4d53660aa44e3c2fae2947b5e6a95804c93249b29b6b98a4f8f