[INFO] cloning repository https://github.com/dev0Guy/ChessGame [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dev0Guy/ChessGame" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev0Guy%2FChessGame", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev0Guy%2FChessGame'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 89e2ed5d3a8724ef4e21a7c0de6ccf90ac9182ef [INFO] linting dev0Guy/ChessGame against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev0Guy%2FChessGame" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dev0Guy/ChessGame [INFO] finished tweaking git repo https://github.com/dev0Guy/ChessGame [INFO] tweaked toml for git repo https://github.com/dev0Guy/ChessGame written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dev0Guy/ChessGame on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dev0Guy/ChessGame 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded which v7.0.1 [INFO] [stderr] Downloaded clearscreen v4.0.1 [INFO] [stderr] Downloaded bitflags v2.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 59bb91c64a4e05779a5125e7f57e31ac22263a7fc8483ef23696adbb39687ca0 [INFO] running `Command { std: "docker" "start" "-a" "59bb91c64a4e05779a5125e7f57e31ac22263a7fc8483ef23696adbb39687ca0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "59bb91c64a4e05779a5125e7f57e31ac22263a7fc8483ef23696adbb39687ca0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59bb91c64a4e05779a5125e7f57e31ac22263a7fc8483ef23696adbb39687ca0", kill_on_drop: false }` [INFO] [stdout] 59bb91c64a4e05779a5125e7f57e31ac22263a7fc8483ef23696adbb39687ca0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89e3263d2f81d76cb5b6356be81388f2ed369e8fa1f17b7f222cd7f0b5ed3e27 [INFO] running `Command { std: "docker" "start" "-a" "89e3263d2f81d76cb5b6356be81388f2ed369e8fa1f17b7f222cd7f0b5ed3e27", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rustix v0.38.43 [INFO] [stderr] Checking bitflags v2.7.0 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Checking log v0.4.25 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling terminfo v0.9.0 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking signal-hook v0.3.17 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking which v7.0.1 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking thiserror v2.0.11 [INFO] [stderr] Checking clearscreen v4.0.1 [INFO] [stderr] Checking ChessGame v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/gui/cmd.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | const FILE_NAMES_ROW: &'static str = " A B C D E F G H"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/gui/cmd.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | const MOVE_REGEX: &'static str = r"^move\s+([a-h][1-8])\s+([a-h][1-8])$"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/gui/cmd.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | const SHOW_REGEX: &'static str = r"^show\s+([a-h][1-8])$"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/gui/cmd.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | const FILE_NAMES_ROW: &'static str = " A B C D E F G H"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/gui/cmd.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | const MOVE_REGEX: &'static str = r"^move\s+([a-h][1-8])\s+([a-h][1-8])$"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/gui/cmd.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | const SHOW_REGEX: &'static str = r"^show\s+([a-h][1-8])$"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/engine/game.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | Checkmate(Color), [INFO] [stdout] | --------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GameResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 - Checkmate(Color), [INFO] [stdout] 10 + Checkmate(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHOW_REGEX` is never used [INFO] [stdout] --> src/gui/cmd.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const SHOW_REGEX: &'static str = r"^show\s+([a-h][1-8])$"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/bitboard.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | /// on the chessboard. Bit 0 represents `a1`, and bit 63 represents `h8`. [INFO] [stdout] | ^^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] = note: `#[warn(clippy::doc_overindented_list_items)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/bitboard.rs:77:6 [INFO] [stdout] | [INFO] [stdout] 77 | impl<'a, 'b> ops::BitOr<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 77 - impl<'a, 'b> ops::BitOr<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] 77 + impl ops::BitOr<&BitBoard> for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/bitboard.rs:93:6 [INFO] [stdout] | [INFO] [stdout] 93 | impl<'a, 'b> ops::BitAnd<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 93 - impl<'a, 'b> ops::BitAnd<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] 93 + impl ops::BitAnd<&BitBoard> for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/bitboard.rs:109:6 [INFO] [stdout] | [INFO] [stdout] 109 | impl<'a, 'b> ops::BitXor<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 109 - impl<'a, 'b> ops::BitXor<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] 109 + impl ops::BitXor<&BitBoard> for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/bitboard.rs:125:6 [INFO] [stdout] | [INFO] [stdout] 125 | impl<'a> ops::Not for &'a BitBoard { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 125 - impl<'a> ops::Not for &'a BitBoard { [INFO] [stdout] 125 + impl ops::Not for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/bitboard.rs:141:6 [INFO] [stdout] | [INFO] [stdout] 141 | impl<'a> ops::Shl for &'a BitBoard { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 141 - impl<'a> ops::Shl for &'a BitBoard { [INFO] [stdout] 141 + impl ops::Shl for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/bitboard.rs:157:6 [INFO] [stdout] | [INFO] [stdout] 157 | impl<'a> ops::Shr for &'a BitBoard { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 157 - impl<'a> ops::Shr for &'a BitBoard { [INFO] [stdout] 157 + impl ops::Shr for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `pieces::PieceIter` [INFO] [stdout] --> src/engine/game.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 303 | / (Piece::iter()) [INFO] [stdout] 304 | | .into_iter() [INFO] [stdout] | |________________________^ help: consider removing `.into_iter()`: `(Piece::iter())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/engine/game.rs:328:25 [INFO] [stdout] | [INFO] [stdout] 328 | let piece_bit = &self.pieces_location[side_index][piece_idx] & (&BitBoard::from(square)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] = note: `#[warn(clippy::op_ref)]` on by default [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 328 - let piece_bit = &self.pieces_location[side_index][piece_idx] & (&BitBoard::from(square)); [INFO] [stdout] 328 + let piece_bit = self.pieces_location[side_index][piece_idx] & BitBoard::from(square); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Piece` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:357:45 [INFO] [stdout] | [INFO] [stdout] 357 | let piece_idx = usize::from(piece.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try removing the `clone` call: `piece` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Square` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:359:92 [INFO] [stdout] | [INFO] [stdout] 359 | let (movement, capture) = self.compute_attack_threat_and_move_to_given(square.clone(), piece, side); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try dereferencing it: `*square` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[[BitBoard; 6]; 2]` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:487:30 [INFO] [stdout] | [INFO] [stdout] 487 | pieces_movement: self.pieces_movement.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.pieces_movement` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[[BitBoard; 6]; 2]` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:488:30 [INFO] [stdout] | [INFO] [stdout] 488 | pieces_location: self.pieces_location.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.pieces_location` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[[BitBoard; 6]; 2]` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:489:38 [INFO] [stdout] | [INFO] [stdout] 489 | pieces_capture_movement: self.pieces_capture_movement.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.pieces_capture_movement` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[[bool; 2]; 2]` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:490:30 [INFO] [stdout] | [INFO] [stdout] 490 | castling_rights: self.castling_rights.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.castling_rights` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/engine/game.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | Checkmate(Color), [INFO] [stdout] | --------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `GameResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 - Checkmate(Color), [INFO] [stdout] 10 + Checkmate(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SHOW_REGEX` is never used [INFO] [stdout] --> src/gui/cmd.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const SHOW_REGEX: &'static str = r"^show\s+([a-h][1-8])$"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/bitboard.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | /// on the chessboard. Bit 0 represents `a1`, and bit 63 represents `h8`. [INFO] [stdout] | ^^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] = note: `#[warn(clippy::doc_overindented_list_items)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/bitboard.rs:77:6 [INFO] [stdout] | [INFO] [stdout] 77 | impl<'a, 'b> ops::BitOr<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 77 - impl<'a, 'b> ops::BitOr<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] 77 + impl ops::BitOr<&BitBoard> for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/bitboard.rs:93:6 [INFO] [stdout] | [INFO] [stdout] 93 | impl<'a, 'b> ops::BitAnd<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 93 - impl<'a, 'b> ops::BitAnd<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] 93 + impl ops::BitAnd<&BitBoard> for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/bitboard.rs:109:6 [INFO] [stdout] | [INFO] [stdout] 109 | impl<'a, 'b> ops::BitXor<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 109 - impl<'a, 'b> ops::BitXor<&'b BitBoard> for &'a BitBoard { [INFO] [stdout] 109 + impl ops::BitXor<&BitBoard> for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/bitboard.rs:125:6 [INFO] [stdout] | [INFO] [stdout] 125 | impl<'a> ops::Not for &'a BitBoard { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 125 - impl<'a> ops::Not for &'a BitBoard { [INFO] [stdout] 125 + impl ops::Not for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/bitboard.rs:141:6 [INFO] [stdout] | [INFO] [stdout] 141 | impl<'a> ops::Shl for &'a BitBoard { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 141 - impl<'a> ops::Shl for &'a BitBoard { [INFO] [stdout] 141 + impl ops::Shl for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/bitboard.rs:157:6 [INFO] [stdout] | [INFO] [stdout] 157 | impl<'a> ops::Shr for &'a BitBoard { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 157 - impl<'a> ops::Shr for &'a BitBoard { [INFO] [stdout] 157 + impl ops::Shr for &BitBoard { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/bitboard.rs:220:20 [INFO] [stdout] | [INFO] [stdout] 220 | assert_eq!(&a & &b, expected); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] = note: `#[warn(clippy::op_ref)]` on by default [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 220 - assert_eq!(&a & &b, expected); [INFO] [stdout] 220 + assert_eq!(a & b, expected); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/bitboard.rs:230:20 [INFO] [stdout] | [INFO] [stdout] 230 | assert_eq!(&a | &b, expected); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 230 - assert_eq!(&a | &b, expected); [INFO] [stdout] 230 + assert_eq!(a | b, expected); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/bitboard.rs:240:20 [INFO] [stdout] | [INFO] [stdout] 240 | assert_eq!(&a ^ &b, expected); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 240 - assert_eq!(&a ^ &b, expected); [INFO] [stdout] 240 + assert_eq!(a ^ b, expected); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `bitboard::BitBoard` [INFO] [stdout] --> src/pieces/knight.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | let expected = BitBoard::from(b3) | BitBoard::from(c2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider removing `BitBoard::from()`: `b3` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `bitboard::BitBoard` [INFO] [stdout] --> src/pieces/knight.rs:79:45 [INFO] [stdout] | [INFO] [stdout] 79 | let expected = BitBoard::from(b3) | BitBoard::from(c2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider removing `BitBoard::from()`: `c2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/pieces/queen.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | expected = expected | (BitBoard::from(File::D) & !queen); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `expected |= (BitBoard::from(File::D) & !queen)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/pieces/queen.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | expected = expected | (BitBoard::from(Rank::Four) & !queen); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `expected |= (BitBoard::from(Rank::Four) & !queen)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/pieces/queen.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | expected = expected | BitBoard::from(square); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `expected |= BitBoard::from(square)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `pieces::PieceIter` [INFO] [stdout] --> src/engine/game.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 303 | / (Piece::iter()) [INFO] [stdout] 304 | | .into_iter() [INFO] [stdout] | |________________________^ help: consider removing `.into_iter()`: `(Piece::iter())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needlessly taken reference of both operands [INFO] [stdout] --> src/engine/game.rs:328:25 [INFO] [stdout] | [INFO] [stdout] 328 | let piece_bit = &self.pieces_location[side_index][piece_idx] & (&BitBoard::from(square)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stdout] help: use the values directly [INFO] [stdout] | [INFO] [stdout] 328 - let piece_bit = &self.pieces_location[side_index][piece_idx] & (&BitBoard::from(square)); [INFO] [stdout] 328 + let piece_bit = self.pieces_location[side_index][piece_idx] & BitBoard::from(square); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Piece` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:357:45 [INFO] [stdout] | [INFO] [stdout] 357 | let piece_idx = usize::from(piece.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try removing the `clone` call: `piece` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `Square` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:359:92 [INFO] [stdout] | [INFO] [stdout] 359 | let (movement, capture) = self.compute_attack_threat_and_move_to_given(square.clone(), piece, side); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try dereferencing it: `*square` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[[BitBoard; 6]; 2]` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:487:30 [INFO] [stdout] | [INFO] [stdout] 487 | pieces_movement: self.pieces_movement.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.pieces_movement` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[[BitBoard; 6]; 2]` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:488:30 [INFO] [stdout] | [INFO] [stdout] 488 | pieces_location: self.pieces_location.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.pieces_location` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[[BitBoard; 6]; 2]` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:489:38 [INFO] [stdout] | [INFO] [stdout] 489 | pieces_capture_movement: self.pieces_capture_movement.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.pieces_capture_movement` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[[bool; 2]; 2]` which implements the `Copy` trait [INFO] [stdout] --> src/engine/game.rs:490:30 [INFO] [stdout] | [INFO] [stdout] 490 | castling_rights: self.castling_rights.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.castling_rights` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/engine/game.rs:535:17 [INFO] [stdout] | [INFO] [stdout] 535 | assert!(!result.is_ok(), "king_side castling shouldn't be allowed."); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `result.is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/engine/game.rs:550:17 [INFO] [stdout] | [INFO] [stdout] 550 | assert!(!result.is_ok(), "king_side castling shouldn't be allowed."); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `result.is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/engine/game.rs:566:17 [INFO] [stdout] | [INFO] [stdout] 566 | assert!(!result.is_ok(), "king_side castling shouldn't be allowed."); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `result.is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/engine/game.rs:582:17 [INFO] [stdout] | [INFO] [stdout] 582 | assert!(!result.is_ok(), "king_side castling shouldn't be allowed."); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `result.is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.26s [INFO] running `Command { std: "docker" "inspect" "89e3263d2f81d76cb5b6356be81388f2ed369e8fa1f17b7f222cd7f0b5ed3e27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89e3263d2f81d76cb5b6356be81388f2ed369e8fa1f17b7f222cd7f0b5ed3e27", kill_on_drop: false }` [INFO] [stdout] 89e3263d2f81d76cb5b6356be81388f2ed369e8fa1f17b7f222cd7f0b5ed3e27