[INFO] cloning repository https://github.com/jparkhouse/chess_engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jparkhouse/chess_engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjparkhouse%2Fchess_engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjparkhouse%2Fchess_engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fcf95758dc862bf1a59c33764d93264c34e1e2de [INFO] checking jparkhouse/chess_engine against try#8cf44c88fc5805dc578c5c987397615b47d2e2b2 for pr-136764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjparkhouse%2Fchess_engine" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] fatal: could not create work tree dir '/workspace/builds/worker-4-tc2/source': No space left on device [INFO] checking jparkhouse/chess_engine against try#8cf44c88fc5805dc578c5c987397615b47d2e2b2 for pr-136764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjparkhouse%2Fchess_engine" "/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/jparkhouse/chess_engine on toolchain 8cf44c88fc5805dc578c5c987397615b47d2e2b2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jparkhouse/chess_engine [INFO] finished tweaking git repo https://github.com/jparkhouse/chess_engine [INFO] tweaked toml for git repo https://github.com/jparkhouse/chess_engine written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jparkhouse/chess_engine 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" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] Error response from daemon: mkdir /var/lib/docker/overlay2/b60ed08994752ecb3db85381543a9a9d9625860455d7b1a598b20ab7443bde6f-init/work: no space left on device [INFO] checking jparkhouse/chess_engine against try#8cf44c88fc5805dc578c5c987397615b47d2e2b2 for pr-136764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjparkhouse%2Fchess_engine" "/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/jparkhouse/chess_engine on toolchain 8cf44c88fc5805dc578c5c987397615b47d2e2b2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jparkhouse/chess_engine [INFO] finished tweaking git repo https://github.com/jparkhouse/chess_engine [INFO] tweaked toml for git repo https://github.com/jparkhouse/chess_engine written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jparkhouse/chess_engine 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" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 360e877fcae4007c14cdc842d72c5385207c41cb565b0eefbac1524b71a6e6ae [INFO] running `Command { std: "docker" "start" "-a" "360e877fcae4007c14cdc842d72c5385207c41cb565b0eefbac1524b71a6e6ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "360e877fcae4007c14cdc842d72c5385207c41cb565b0eefbac1524b71a6e6ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "360e877fcae4007c14cdc842d72c5385207c41cb565b0eefbac1524b71a6e6ae", kill_on_drop: false }` [INFO] [stdout] 360e877fcae4007c14cdc842d72c5385207c41cb565b0eefbac1524b71a6e6ae [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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b69fcafdb1bf6228ed7fc17a48bdfad9fa52a4a4bdf6854b16929da2805ee873 [INFO] running `Command { std: "docker" "start" "-a" "b69fcafdb1bf6228ed7fc17a48bdfad9fa52a4a4bdf6854b16929da2805ee873", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Compiling thiserror v2.0.9 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.95 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling thiserror-impl v2.0.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking env_logger v0.11.6 [INFO] [stderr] Checking chess-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `shared::MoveError` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:1:92 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::chess_state::{board_bitmask::BoardBitmasks, moves::{chess_move::ChessDirection, shared::MoveError}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/pawn_moves.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shared::MoveError` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:1:92 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::chess_state::{board_bitmask::BoardBitmasks, moves::{chess_move::ChessDirection, shared::MoveError}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/pawn_moves.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_knights` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let local_knights = match white { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_knights` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_captures` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let local_captures = match white { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_captures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_occupied` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let local_occupied = match white { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_occupied` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `invalid_map` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let invalid_map: u64 = match direction { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_invalid_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `knights` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:23:33 [INFO] [stdout] | [INFO] [stdout] 23 | fn helper_calculate_knight_move(knights: u64, captures: u64, occupied: u64, direction: ChessDirection) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_knights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captures` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:23:47 [INFO] [stdout] | [INFO] [stdout] 23 | fn helper_calculate_knight_move(knights: u64, captures: u64, occupied: u64, direction: ChessDirection) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `occupied` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:23:62 [INFO] [stdout] | [INFO] [stdout] 23 | fn helper_calculate_knight_move(knights: u64, captures: u64, occupied: u64, direction: ChessDirection) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_occupied` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_u64` are never used [INFO] [stdout] --> src/bitmask/generic.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Bitmask { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 13 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) fn to_u64(&self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitOpsForPieces` is never used [INFO] [stdout] --> src/bitmask/pieces.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) trait BitOpsForPieces { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitOpsForWhitePieces` is never used [INFO] [stdout] --> src/bitmask/white_pieces.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) trait BitOpsForWhitePieces { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitOpsForBlackPieces` is never used [INFO] [stdout] --> src/bitmask/black_pieces.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) trait BitOpsForBlackPieces { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `XYCoordinatesFromInvalidStr`, `XYCoordinatesFromInvalidLengthStr`, `XYCoordinatesFromEmptyBitmask`, and `XYCoordinatesFromMultiBitBitmask` are never constructed [INFO] [stdout] --> src/chess_state/coordinates.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum CoordinateError { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | XYCoordinatesFromInvalidStr(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | XYCoordinatesFromInvalidLengthStr(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | XYCoordinatesFromEmptyBitmask(u64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | XYCoordinatesFromMultiBitBitmask(u64), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoordinateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_from_value` is never used [INFO] [stdout] --> src/chess_state/coordinates.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub trait CoordinateConversion: Sized { [INFO] [stdout] | -------------------- associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 59 | fn try_from_value(value: T) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_str`, `from_bitmask`, and `to_bitmask` are never used [INFO] [stdout] --> src/chess_state/coordinate_point.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 13 | impl CoordinatePosition { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 14 | pub(crate) fn from_str(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub(crate) fn from_bitmask(bitmask: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub(crate) fn to_bitmask(self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PieceEnum` is never used [INFO] [stdout] --> src/chess_state/chess_pieces.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) enum PieceEnum { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WhitePawns` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | pub(crate) struct WhitePawns; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WhiteKnights` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) struct WhiteKnights; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WhiteBishops` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) struct WhiteBishops; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WhiteRooks` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) struct WhiteRooks; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WhiteQueens` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | pub(crate) struct WhiteQueens; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WhiteKings` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:63:23 [INFO] [stdout] | [INFO] [stdout] 63 | pub(crate) struct WhiteKings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlackPawns` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:69:23 [INFO] [stdout] | [INFO] [stdout] 69 | pub(crate) struct BlackPawns; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlackKnights` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 72 | pub(crate) struct BlackKnights; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlackBishops` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:75:23 [INFO] [stdout] | [INFO] [stdout] 75 | pub(crate) struct BlackBishops; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlackRooks` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:78:23 [INFO] [stdout] | [INFO] [stdout] 78 | pub(crate) struct BlackRooks; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlackQueens` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | pub(crate) struct BlackQueens; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlackKings` is never constructed [INFO] [stdout] --> src/chess_state/chess_pieces.rs:84:23 [INFO] [stdout] | [INFO] [stdout] 84 | pub(crate) struct BlackKings; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BoardBitmasks` is never constructed [INFO] [stdout] --> src/chess_state/board_bitmask.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct BoardBitmasks { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `default`, and `from_board_hash_map` are never used [INFO] [stdout] --> src/chess_state/board_bitmask.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 27 | impl BoardBitmasks { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 28 | /// Initialises a new, empty, chess board and the relevant bitmasks [INFO] [stdout] 29 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub(crate) fn from_board_hash_map(map: &BoardHashMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BoardHashMapError` is never used [INFO] [stdout] --> src/chess_state/board_hash_map.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) enum BoardHashMapError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BoardHashMap` is never constructed [INFO] [stdout] --> src/chess_state/board_hash_map.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) struct BoardHashMap { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `to_iter`, and `get` are never used [INFO] [stdout] --> src/chess_state/board_hash_map.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl BoardHashMap { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 20 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub(crate) fn insert( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub(crate) fn to_iter( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub(crate) fn get(&self, position: CoordinatePosition) -> Option<&PieceEnum> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ChessFlip` is never used [INFO] [stdout] --> src/chess_state/moves/chess_flip.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) trait ChessFlip { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CastleType` is never used [INFO] [stdout] --> src/chess_state/moves/shared.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) enum CastleType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CheckType` is never used [INFO] [stdout] --> src/chess_state/moves/shared.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) enum CheckType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Move` is never used [INFO] [stdout] --> src/chess_state/moves/shared.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) enum Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PawnOnOneOrEight`, `CapturePieceNotFound`, `InvalidPieceType`, and `InvalidDirection` are never constructed [INFO] [stdout] --> src/chess_state/moves/shared.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) enum MoveError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 34 | #[error("Pawn found on rank one or eight (moved backwards or failed promotion")] [INFO] [stdout] 35 | PawnOnOneOrEight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | CapturePieceNotFound(CoordinatePosition), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | InvalidPieceType(String, String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | InvalidDirection(String, String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveError` 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 `get_piece_type_for_capture` and `piece_enum_to_bitmask` are never used [INFO] [stdout] --> src/chess_state/moves/shared.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 50 | impl BoardBitmasks { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 51 | pub(crate) fn get_piece_type_for_capture( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub(crate) fn piece_enum_to_bitmask(&self, piece_type: PieceEnum) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StandardMove` is never constructed [INFO] [stdout] --> src/chess_state/moves/standard_move.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) struct StandardMove { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_uci_move` are never used [INFO] [stdout] --> src/chess_state/moves/standard_move.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 16 | impl StandardMove { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 17 | pub(crate) fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub(crate) fn get_uci_move(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TempMove` is never constructed [INFO] [stdout] --> src/chess_state/moves/temp_move.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) struct TempMove { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unpack_moves` is never used [INFO] [stdout] --> src/chess_state/moves/temp_move.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn unpack_moves u64>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_diagonal_moves_for_direction` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/diagonal_moves.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl BoardBitmasks { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) fn calculate_diagonal_moves_for_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_knight_moves` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | impl BoardBitmasks { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 4 | fn calculate_knight_moves(&self, white: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `helper_calculate_knight_move` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn helper_calculate_knight_move(knights: u64, captures: u64, occupied: u64, direction: ChessDirection) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/pawn_moves.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 23 | impl BoardBitmasks { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 24 | pub(crate) fn calculate_white_pawn_moves( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn calculate_white_pawn_moves_single_step( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn calculate_white_pawn_moves_double_step( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn calculate_white_pawn_moves_capture_left(&self) -> Result, MoveError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | fn calculate_white_pawn_moves_capture_right(&self) -> Result, MoveError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn calculate_white_pawn_moves_en_passant( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | fn calculate_white_pawn_promotions(&self, occupied: u64) -> Result, MoveError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_simple_white_pawn_move` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/pawn_moves.rs:403:4 [INFO] [stdout] | [INFO] [stdout] 403 | fn create_simple_white_pawn_move( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_double_white_pawn_move` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/pawn_moves.rs:419:4 [INFO] [stdout] | [INFO] [stdout] 419 | fn create_double_white_pawn_move( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_pieces_pinned_to_king`, `get_pieces_cardinally_pinned_to_king`, and `get_pieces_diagonally_pinned_to_king` are never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/pinned_to_king.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl BoardBitmasks { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub(crate) fn get_pieces_pinned_to_king(&self, white: bool) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub(crate) fn get_pieces_cardinally_pinned_to_king(&self, white: bool) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub(crate) fn get_pieces_diagonally_pinned_to_king(&self, white: bool) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_for_pin` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/pinned_to_king.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn check_for_pin( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_cardinal_moves_for_direction` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/straight_moves.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl BoardBitmasks { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) fn calculate_cardinal_moves_for_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_unconstrained_white_pawn_attack_maps` is never used [INFO] [stdout] --> src/chess_state/moves/attack_maps.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait WhitePawnAttackMaps { [INFO] [stdout] | ------------------- method in this trait [INFO] [stdout] 4 | fn calculate_unconstrained_white_pawn_attack_maps(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_unconstrained_black_pawn_attack_maps` is never used [INFO] [stdout] --> src/chess_state/moves/attack_maps.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait BlackPawnAttackMaps { [INFO] [stdout] | ------------------- method in this trait [INFO] [stdout] 8 | fn calculate_unconstrained_black_pawn_attack_maps(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_unconstrained_knight_maps` is never used [INFO] [stdout] --> src/chess_state/moves/attack_maps.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait KnightAttackMaps { [INFO] [stdout] | ---------------- method in this trait [INFO] [stdout] 12 | fn calculate_unconstrained_knight_maps(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_unconstrained_bishop_attack_maps` is never used [INFO] [stdout] --> src/chess_state/moves/attack_maps.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait BishopAttackMaps { [INFO] [stdout] | ---------------- method in this trait [INFO] [stdout] 16 | fn calculate_unconstrained_bishop_attack_maps(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_unconstrained_queen_attack_maps` is never used [INFO] [stdout] --> src/chess_state/moves/attack_maps.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait QueenAttackMaps { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] 20 | fn calculate_unconstrained_queen_attack_maps(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_unconstrained_rook_attack_maps` is never used [INFO] [stdout] --> src/chess_state/moves/attack_maps.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait RookAttackMaps { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 24 | fn calculate_unconstrained_rook_attack_maps(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_unconstrained_king_attack_maps` is never used [INFO] [stdout] --> src/chess_state/moves/attack_maps.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait KingAttackMaps { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 28 | fn calculate_unconstrained_king_attack_maps(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `has_one_bit_set` is never used [INFO] [stdout] --> src/shared/mod.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) fn has_one_bit_set(bitmask: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `single_bit_bitmask_to_u8` is never used [INFO] [stdout] --> src/shared/mod.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) fn single_bit_bitmask_to_u8(bitmask: &u64) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multi_bitmask_to_u8s` is never used [INFO] [stdout] --> src/shared/mod.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | pub(crate) fn multi_bitmask_to_u8s(bitmask: &u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_knights` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let local_knights = match white { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_knights` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_captures` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let local_captures = match white { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_captures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_occupied` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let local_occupied = match white { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_occupied` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `invalid_map` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let invalid_map: u64 = match direction { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_invalid_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `knights` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:23:33 [INFO] [stdout] | [INFO] [stdout] 23 | fn helper_calculate_knight_move(knights: u64, captures: u64, occupied: u64, direction: ChessDirection) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_knights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `captures` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:23:47 [INFO] [stdout] | [INFO] [stdout] 23 | fn helper_calculate_knight_move(knights: u64, captures: u64, occupied: u64, direction: ChessDirection) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `occupied` [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:23:62 [INFO] [stdout] | [INFO] [stdout] 23 | fn helper_calculate_knight_move(knights: u64, captures: u64, occupied: u64, direction: ChessDirection) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_occupied` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bitmask/generic.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 12 | impl Bitmask { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 13 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitOpsForPieces` is never used [INFO] [stdout] --> src/bitmask/pieces.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) trait BitOpsForPieces { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `bitand_white_pieces` is never used [INFO] [stdout] --> src/bitmask/white_pieces.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) trait BitOpsForWhitePieces { [INFO] [stdout] | -------------------- method in this trait [INFO] [stdout] 24 | fn bitor_white_pieces(self, rhs: Bitmask) -> Bitmask; [INFO] [stdout] 25 | fn bitand_white_pieces(self, rhs: Bitmask) -> Bitmask; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BitOpsForBlackPieces` is never used [INFO] [stdout] --> src/bitmask/black_pieces.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) trait BitOpsForBlackPieces { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `XYCoordinatesFromInvalidStr` is never constructed [INFO] [stdout] --> src/chess_state/coordinates.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum CoordinateError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | XYCoordinatesFromInvalidStr(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoordinateError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `default` and `from_board_hash_map` are never used [INFO] [stdout] --> src/chess_state/board_bitmask.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 27 | impl BoardBitmasks { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub(crate) fn from_board_hash_map(map: &BoardHashMap) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BoardHashMapError` is never used [INFO] [stdout] --> src/chess_state/board_hash_map.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) enum BoardHashMapError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert`, `to_iter`, and `get` are never used [INFO] [stdout] --> src/chess_state/board_hash_map.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 19 | impl BoardHashMap { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub(crate) fn insert( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub(crate) fn to_iter( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub(crate) fn get(&self, position: CoordinatePosition) -> Option<&PieceEnum> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ShortCastle` and `LongCastle` are never constructed [INFO] [stdout] --> src/chess_state/moves/shared.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) enum CastleType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 15 | ShortCastle, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | LongCastle, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CastleType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Castle` is never constructed [INFO] [stdout] --> src/chess_state/moves/shared.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) enum Move { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 28 | StandardMove(StandardMove), [INFO] [stdout] 29 | Castle(CastleType), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Move` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PawnOnOneOrEight` and `InvalidPieceType` are never constructed [INFO] [stdout] --> src/chess_state/moves/shared.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) enum MoveError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 34 | #[error("Pawn found on rank one or eight (moved backwards or failed promotion")] [INFO] [stdout] 35 | PawnOnOneOrEight, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | InvalidPieceType(String, String, String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MoveError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `piece_enum_to_bitmask` is never used [INFO] [stdout] --> src/chess_state/moves/shared.rs:111:19 [INFO] [stdout] | [INFO] [stdout] 50 | impl BoardBitmasks { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 111 | pub(crate) fn piece_enum_to_bitmask(&self, piece_type: PieceEnum) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TempMove` is never constructed [INFO] [stdout] --> src/chess_state/moves/temp_move.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) struct TempMove { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unpack_moves` is never used [INFO] [stdout] --> src/chess_state/moves/temp_move.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) fn unpack_moves u64>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_diagonal_moves_for_direction` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/diagonal_moves.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl BoardBitmasks { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) fn calculate_diagonal_moves_for_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_knight_moves` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | impl BoardBitmasks { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 4 | fn calculate_knight_moves(&self, white: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `helper_calculate_knight_move` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/knight_moves.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn helper_calculate_knight_move(knights: u64, captures: u64, occupied: u64, direction: ChessDirection) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_white_pawn_moves`, `calculate_white_pawn_moves_en_passant`, and `calculate_white_pawn_promotions` are never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/pawn_moves.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 23 | impl BoardBitmasks { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 24 | pub(crate) fn calculate_white_pawn_moves( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | fn calculate_white_pawn_moves_en_passant( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | fn calculate_white_pawn_promotions(&self, occupied: u64) -> Result, MoveError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_cardinal_moves_for_direction` is never used [INFO] [stdout] --> src/chess_state/moves/calculate_moves/straight_moves.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 14 | impl BoardBitmasks { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) fn calculate_cardinal_moves_for_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_unconstrained_queen_attack_maps` is never used [INFO] [stdout] --> src/chess_state/moves/attack_maps.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait QueenAttackMaps { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] 20 | fn calculate_unconstrained_queen_attack_maps(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_unconstrained_king_attack_maps` is never used [INFO] [stdout] --> src/chess_state/moves/attack_maps.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub trait KingAttackMaps { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 28 | fn calculate_unconstrained_king_attack_maps(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `single_bit_bitmask_to_u8` is never used [INFO] [stdout] --> src/shared/mod.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | pub(crate) fn single_bit_bitmask_to_u8(bitmask: &u64) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multi_bitmask_to_u8s` is never used [INFO] [stdout] --> src/shared/mod.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | pub(crate) fn multi_bitmask_to_u8s(bitmask: &u64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.70s [INFO] running `Command { std: "docker" "inspect" "b69fcafdb1bf6228ed7fc17a48bdfad9fa52a4a4bdf6854b16929da2805ee873", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b69fcafdb1bf6228ed7fc17a48bdfad9fa52a4a4bdf6854b16929da2805ee873", kill_on_drop: false }` [INFO] [stdout] b69fcafdb1bf6228ed7fc17a48bdfad9fa52a4a4bdf6854b16929da2805ee873