[INFO] cloning repository https://github.com/Mailosz/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mailosz/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMailosz%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMailosz%2Fchess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d9278000b65a870c0956c184eced29322f2a5101 [INFO] checking Mailosz/chess against try#09335b6f1bff25ec39f47f1533e126fbe1ca5f5d for pr-139493-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMailosz%2Fchess" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Mailosz/chess [INFO] finished tweaking git repo https://github.com/Mailosz/chess [INFO] tweaked toml for git repo https://github.com/Mailosz/chess written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Mailosz/chess on toolchain 09335b6f1bff25ec39f47f1533e126fbe1ca5f5d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09335b6f1bff25ec39f47f1533e126fbe1ca5f5d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Mailosz/chess 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" "+09335b6f1bff25ec39f47f1533e126fbe1ca5f5d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+09335b6f1bff25ec39f47f1533e126fbe1ca5f5d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 04b8fe6719ed9d5ca6a25c8452c98fcc4ae75bb3da1679f6c83a2a20e5c5ed86 [INFO] running `Command { std: "docker" "start" "-a" "04b8fe6719ed9d5ca6a25c8452c98fcc4ae75bb3da1679f6c83a2a20e5c5ed86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04b8fe6719ed9d5ca6a25c8452c98fcc4ae75bb3da1679f6c83a2a20e5c5ed86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04b8fe6719ed9d5ca6a25c8452c98fcc4ae75bb3da1679f6c83a2a20e5c5ed86", kill_on_drop: false }` [INFO] [stdout] 04b8fe6719ed9d5ca6a25c8452c98fcc4ae75bb3da1679f6c83a2a20e5c5ed86 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+09335b6f1bff25ec39f47f1533e126fbe1ca5f5d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45275aeed8206b025311601b3e045868af549b988fff2b947751038ad0d48d82 [INFO] running `Command { std: "docker" "start" "-a" "45275aeed8206b025311601b3e045868af549b988fff2b947751038ad0d48d82", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.95 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling wasm-bindgen v0.2.95 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.95 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.95 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.95 [INFO] [stderr] Checking chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage` [INFO] [stdout] --> src/lib.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage` [INFO] [stdout] --> src/lib.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage` [INFO] [stdout] --> src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow` and `cell::RefCell` [INFO] [stdout] --> src/lib.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{borrow::Borrow, cell::RefCell}; [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 imports: `IntoWasmAbi`, `OptionIntoWasmAbi`, and `ReturnWasmAbi` [INFO] [stdout] --> src/lib.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | use wasm_bindgen::{convert::{IntoWasmAbi, OptionIntoWasmAbi, ReturnWasmAbi, WasmAbi}, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | if (position < 56) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if (position < 56) { [INFO] [stdout] 27 + if position < 56 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | if (position < 16 && position >= 8 && board.squares[(position + 16) as usize] == Piece::Empty) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if (position < 16 && position >= 8 && board.squares[(position + 16) as usize] == Piece::Empty) { [INFO] [stdout] 32 + if position < 16 && position >= 8 && board.squares[(position + 16) as usize] == Piece::Empty { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | if (position >= 8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if (position >= 8) { [INFO] [stdout] 45 + if position >= 8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | if (position >= 48 && position < 56 && board.squares[(position - 16) as usize] == Piece::Empty) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - if (position >= 48 && position < 56 && board.squares[(position - 16) as usize] == Piece::Empty) { [INFO] [stdout] 50 + if position >= 48 && position < 56 && board.squares[(position - 16) as usize] == Piece::Empty { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WasmAbi` [INFO] [stdout] --> src/lib.rs:6:77 [INFO] [stdout] | [INFO] [stdout] 6 | use wasm_bindgen::{convert::{IntoWasmAbi, OptionIntoWasmAbi, ReturnWasmAbi, WasmAbi}, prelude::*}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SpecialX`, `SpecialW`, and `SpecialB` are never constructed [INFO] [stdout] --> src/game/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Piece { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | Empty = 0b0000, [INFO] [stdout] 5 | SpecialX = 0b0001, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | SpecialW= 0b0111, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | SpecialB= 0b1110, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Black` is never constructed [INFO] [stdout] --> src/game/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum PlayerColor { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 26 | White = 1, [INFO] [stdout] 27 | Black = 0 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerColor` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `turn` and `player` are never read [INFO] [stdout] --> src/game/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 38 | pub turn : u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | pub player : PlayerColor, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | CURRENT_GAME.replace(Game::new()); [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: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage` [INFO] [stdout] --> src/lib.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage` [INFO] [stdout] --> src/lib.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage` [INFO] [stdout] --> src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | #[wasm_bindgen] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::Borrow` and `cell::RefCell` [INFO] [stdout] --> src/lib.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{borrow::Borrow, cell::RefCell}; [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 imports: `IntoWasmAbi`, `OptionIntoWasmAbi`, and `ReturnWasmAbi` [INFO] [stdout] --> src/lib.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | use wasm_bindgen::{convert::{IntoWasmAbi, OptionIntoWasmAbi, ReturnWasmAbi, WasmAbi}, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | if (position < 56) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if (position < 56) { [INFO] [stdout] 27 + if position < 56 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | if (position < 16 && position >= 8 && board.squares[(position + 16) as usize] == Piece::Empty) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if (position < 16 && position >= 8 && board.squares[(position + 16) as usize] == Piece::Empty) { [INFO] [stdout] 32 + if position < 16 && position >= 8 && board.squares[(position + 16) as usize] == Piece::Empty { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | if (position >= 8) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if (position >= 8) { [INFO] [stdout] 45 + if position >= 8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | if (position >= 48 && position < 56 && board.squares[(position - 16) as usize] == Piece::Empty) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - if (position >= 48 && position < 56 && board.squares[(position - 16) as usize] == Piece::Empty) { [INFO] [stdout] 50 + if position >= 48 && position < 56 && board.squares[(position - 16) as usize] == Piece::Empty { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WasmAbi` [INFO] [stdout] --> src/lib.rs:6:77 [INFO] [stdout] | [INFO] [stdout] 6 | use wasm_bindgen::{convert::{IntoWasmAbi, OptionIntoWasmAbi, ReturnWasmAbi, WasmAbi}, prelude::*}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SpecialX`, `SpecialW`, and `SpecialB` are never constructed [INFO] [stdout] --> src/game/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Piece { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | Empty = 0b0000, [INFO] [stdout] 5 | SpecialX = 0b0001, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | SpecialW= 0b0111, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | SpecialB= 0b1110, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Black` is never constructed [INFO] [stdout] --> src/game/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum PlayerColor { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 26 | White = 1, [INFO] [stdout] 27 | Black = 0 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PlayerColor` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `turn` and `player` are never read [INFO] [stdout] --> src/game/mod.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 38 | pub turn : u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | pub player : PlayerColor, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | CURRENT_GAME.replace(Game::new()); [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.52s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.95 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "45275aeed8206b025311601b3e045868af549b988fff2b947751038ad0d48d82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45275aeed8206b025311601b3e045868af549b988fff2b947751038ad0d48d82", kill_on_drop: false }` [INFO] [stdout] 45275aeed8206b025311601b3e045868af549b988fff2b947751038ad0d48d82