[INFO] cloning repository https://github.com/zchown/chessEngine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zchown/chessEngine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzchown%2FchessEngine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzchown%2FchessEngine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aabac23195d3461bc2e37517a3b685072c8d64d0 [INFO] checking zchown/chessEngine against master#fd17deacce374a4185c882795be162e17b557050 for pr-138001 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzchown%2FchessEngine" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zchown/chessEngine on toolchain fd17deacce374a4185c882795be162e17b557050 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fd17deacce374a4185c882795be162e17b557050" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zchown/chessEngine [INFO] finished tweaking git repo https://github.com/zchown/chessEngine [INFO] tweaked toml for git repo https://github.com/zchown/chessEngine written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zchown/chessEngine 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" "+fd17deacce374a4185c882795be162e17b557050" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: build [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+fd17deacce374a4185c882795be162e17b557050" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a722fc6782baaa0e43abbd0a0b4da72b74f293ac5348013a5ed89d7ed9b84ef7 [INFO] running `Command { std: "docker" "start" "-a" "a722fc6782baaa0e43abbd0a0b4da72b74f293ac5348013a5ed89d7ed9b84ef7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a722fc6782baaa0e43abbd0a0b4da72b74f293ac5348013a5ed89d7ed9b84ef7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a722fc6782baaa0e43abbd0a0b4da72b74f293ac5348013a5ed89d7ed9b84ef7", kill_on_drop: false }` [INFO] [stdout] a722fc6782baaa0e43abbd0a0b4da72b74f293ac5348013a5ed89d7ed9b84ef7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+fd17deacce374a4185c882795be162e17b557050" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b96ac7b4d73763373dd1cbb3fa184182a87b8d7d3d078455c0e5d37cbba95c92 [INFO] running `Command { std: "docker" "start" "-a" "b96ac7b4d73763373dd1cbb3fa184182a87b8d7d3d078455c0e5d37cbba95c92", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: build [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking if_chain v1.0.2 [INFO] [stderr] Checking strum v0.26.2 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Compiling strum_macros v0.26.2 [INFO] [stderr] Checking rustChess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `ALL_SQUARES` should have an upper camel case name [INFO] [stdout] --> src/defs.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | pub enum ALL_SQUARES { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AllSquares` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::bitboard` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::board::bitboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ALL_SQUARES` should have an upper camel case name [INFO] [stdout] --> src/defs.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | pub enum ALL_SQUARES { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AllSquares` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::bitboard` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::board::bitboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/board.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn print_bitboards(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get_pieces(&self, piece: usize, color: usize) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn get_all_pieces(&self) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn remove_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn add_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn move_piece(&mut self, piece: Piece, from: Square, to: Square) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn init(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 83 | [INFO] [stdout] 84 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_bitboard` is never used [INFO] [stdout] --> src/board/bitboard.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn print_bitboard(bb: Bitboard) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_bits` is never used [INFO] [stdout] --> src/board/bitboard.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn count_bits(bb: Bitboard) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_lsb` is never used [INFO] [stdout] --> src/board/bitboard.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn get_lsb(bb: Bitboard) -> Square { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_bit` is never used [INFO] [stdout] --> src/board/bitboard.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn set_bit(bb: &mut Bitboard, sq: Square) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_bit` is never used [INFO] [stdout] --> src/board/bitboard.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn clear_bit(bb: &mut Bitboard, sq: Square) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pop_bit` is never used [INFO] [stdout] --> src/board/bitboard.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn pop_bit(bb: &mut Bitboard, sq: Square) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitboard_to_array` is never used [INFO] [stdout] --> src/board/bitboard.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn bitboard_to_array(bb: Bitboard) -> [bool; 64] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FEN_NR_OF_PARTS` is never used [INFO] [stdout] --> src/board/fen.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const FEN_NR_OF_PARTS: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LIST_OF_PIECES` is never used [INFO] [stdout] --> src/board/fen.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const LIST_OF_PIECES: &str = "kqrbnpKQRBNP"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EP_SQUARES_WHITE` is never used [INFO] [stdout] --> src/board/fen.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const EP_SQUARES_WHITE: RangeInclusive = ALL_SQUARES::A3 as Square..=ALL_SQUARES::H3 as Square; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EP_SQUARES_BLACK` is never used [INFO] [stdout] --> src/board/fen.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const EP_SQUARES_BLACK: RangeInclusive = ALL_SQUARES::A6 as Square..=ALL_SQUARES::H6 as Square; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WHITE_OR_BLACK` is never used [INFO] [stdout] --> src/board/fen.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const WHITE_OR_BLACK: &str = "wb"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPLITTER` is never used [INFO] [stdout] --> src/board/fen.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const SPLITTER: char = '/'; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DASH` is never used [INFO] [stdout] --> src/board/fen.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const DASH: char = '-'; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EM_DASH` is never used [INFO] [stdout] --> src/board/fen.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const EM_DASH: char = '–'; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPACE` is never used [INFO] [stdout] --> src/board/fen.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const SPACE: char = ' '; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/board/fen.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum FenError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 23 | IncorrectLength, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | Part1, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | Part2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | Part3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | Part4, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | Part5, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | Part6, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FenResult` is never used [INFO] [stdout] --> src/board/fen.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 47 | pub type FenResult = Result<(), FenError>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SplitResult` is never used [INFO] [stdout] --> src/board/fen.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | pub type SplitResult = Result, FenError>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FenPartParser` is never used [INFO] [stdout] --> src/board/fen.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | type FenPartParser = fn(board: &mut Board, part: &str) -> FenResult; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_fen` is never used [INFO] [stdout] --> src/board/fen.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Board { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 52 | pub fn parse_fen(&mut self, fen_string: Option<&str>) -> FenResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_fen_string` is never used [INFO] [stdout] --> src/board/fen.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn split_fen_string(fen_string: Option<&str>) -> SplitResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_part_parsers` is never used [INFO] [stdout] --> src/board/fen.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn create_part_parsers() -> [FenPartParser; FEN_NR_OF_PARTS] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pieces` is never used [INFO] [stdout] --> src/board/fen.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn pieces(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `color` is never used [INFO] [stdout] --> src/board/fen.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn color(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `castling` is never used [INFO] [stdout] --> src/board/fen.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn castling(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `en_passant` is never used [INFO] [stdout] --> src/board/fen.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 216 | fn en_passant(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `half_move_clock` is never used [INFO] [stdout] --> src/board/fen.rs:240:4 [INFO] [stdout] | [INFO] [stdout] 240 | fn half_move_clock(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `full_move_number` is never used [INFO] [stdout] --> src/board/fen.rs:253:4 [INFO] [stdout] | [INFO] [stdout] 253 | fn full_move_number(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `CASTLING_PERMISSIONS`, `FILES`, and `RANKS` are never used [INFO] [stdout] --> src/defs.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 7 | impl NrOf { [INFO] [stdout] | --------- associated constants in this implementation [INFO] [stdout] 8 | pub const PIECE_TYPES: usize = 6; [INFO] [stdout] 9 | pub const CASTLING_PERMISSIONS: usize = 16; // 0-15 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub const SQUARES: usize = 64; [INFO] [stdout] 11 | pub const FILES: usize = 8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub const RANKS: usize = 8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FEN_START_POSITION` is never used [INFO] [stdout] --> src/defs.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const FEN_START_POSITION: &str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_MOVES` is never used [INFO] [stdout] --> src/defs.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const MAX_MOVES: u8 = 100; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Piece` is never used [INFO] [stdout] --> src/defs.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub type Piece = usize; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY` is never used [INFO] [stdout] --> src/defs.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const EMPTY: u64 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ALL` is never used [INFO] [stdout] --> src/defs.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 26 | impl Castling { [INFO] [stdout] | ------------- associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub const ALL: u8 = 0b1111; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_string` and `as_char` are never used [INFO] [stdout] --> src/defs.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl Pieces { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 46 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn as_char(&self) -> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_string` is never used [INFO] [stdout] --> src/defs.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 114 | impl Colors { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 115 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_bb_squares` is never used [INFO] [stdout] --> src/defs.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | const fn init_bb_squares() -> [Bitboard; NrOf::SQUARES] { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BB_SQUARES` is never used [INFO] [stdout] --> src/defs.rs:133:11 [INFO] [stdout] | [INFO] [stdout] 133 | pub const BB_SQUARES: [Bitboard; NrOf::SQUARES] = init_bb_squares(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_string` is never used [INFO] [stdout] --> src/defs.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 147 | impl ALL_SQUARES { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 148 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_A_FILE` is never used [INFO] [stdout] --> src/moves.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const NOT_A_FILE: Bitboard = 0xfefefefefefefefe; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_H_FILE` is never used [INFO] [stdout] --> src/moves.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const NOT_H_FILE: Bitboard = 0x7f7f7f7f7f7f7f7f; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_HG_FILE` is never used [INFO] [stdout] --> src/moves.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const NOT_HG_FILE: Bitboard = 0x3f3f3f3f3f3f3f3f; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_AB_FILE` is never used [INFO] [stdout] --> src/moves.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const NOT_AB_FILE: Bitboard = 0xfcfcfcfcfcfcfcfc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_FIRST_RANK` is never used [INFO] [stdout] --> src/moves.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const NOT_FIRST_RANK: Bitboard = 0xffffffffffffff00; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_EIGHTH_RANK` is never used [INFO] [stdout] --> src/moves.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const NOT_EIGHTH_RANK: Bitboard = 0x00ffffffffffffff; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DARK_SQUARES` is never used [INFO] [stdout] --> src/moves.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const DARK_SQUARES: Bitboard = 0xaa55aa55aa55aa55; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AttackTable` is never constructed [INFO] [stdout] --> src/moves.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AttackTable{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/moves.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl AttackTable { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 27 | pub fn new() -> AttackTable { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn init_pawns(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn init_knights(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn init_kings(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn init_sliders(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn get_bishop_attacks(&self, sq: Square, occ: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn get_rook_attacks(&self, sq: Square, occ: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_queen_attacks(&self, sq: Square, occ: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pawn_attacks` is never used [INFO] [stdout] --> src/moves.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn pawn_attacks(color: Color, sq: Square) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_attacks` is never used [INFO] [stdout] --> src/moves.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn knight_attacks(sq: Square) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `king_attacks` is never used [INFO] [stdout] --> src/moves.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn king_attacks(sq: Square) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BISHOP_RELEVANT_BITS` is never used [INFO] [stdout] --> src/sorcery.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const BISHOP_RELEVANT_BITS: [i32; 64] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOK_RELEVANT_BITS` is never used [INFO] [stdout] --> src/sorcery.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const ROOK_RELEVANT_BITS: [i32; 64] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sorcerer` is never constructed [INFO] [stdout] --> src/sorcery.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Sorcerer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_random_u32_number`, `get_random_u64_number`, `generate_magic_num`, `find_magic_number`, and `init_magic_numbers` are never used [INFO] [stdout] --> src/sorcery.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Sorcerer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 38 | pub fn new() -> Sorcerer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn get_random_u32_number(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_random_u64_number(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn generate_magic_num(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn find_magic_number(&mut self, sq: Square, relevant_bits: i32, bishop: bool) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn init_magic_numbers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mask_bishop_attacks` is never used [INFO] [stdout] --> src/sorcery.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn mask_bishop_attacks(sq: Square) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mask_rook_attacks` is never used [INFO] [stdout] --> src/sorcery.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn mask_rook_attacks(sq: Square) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_attacks` is never used [INFO] [stdout] --> src/sorcery.rs:149:4 [INFO] [stdout] | [INFO] [stdout] 149 | fn calc_attacks(rank_dir: isize, file_dir: isize, target_rank: usize, target_file: usize, attacks: &mut Bitboard) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_attacks_with_blocks` is never used [INFO] [stdout] --> src/sorcery.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn calc_attacks_with_blocks(rank_dir: isize, file_dir: isize, target_rank: usize, target_file: usize, attacks: &mut Bitboard, blocks: Bit... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bishop_attacks` is never used [INFO] [stdout] --> src/sorcery.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn bishop_attacks(sq: Square, blocks: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rook_attacks` is never used [INFO] [stdout] --> src/sorcery.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn rook_attacks(sq: Square, blocks: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_occupancy` is never used [INFO] [stdout] --> src/sorcery.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn set_occupancy(index: Bitboard, bits_in_mask: usize, attack_mask: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOK_MAGICS` is never used [INFO] [stdout] --> src/magics.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const ROOK_MAGICS: [u64; 64] = [ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BISHOP_MAGICS` is never used [INFO] [stdout] --> src/magics.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | pub const BISHOP_MAGICS: [u64; 64] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/board.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 23 | pub fn new() -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn print_bitboards(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get_pieces(&self, piece: usize, color: usize) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn get_all_pieces(&self) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn remove_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn add_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn move_piece(&mut self, piece: Piece, from: Square, to: Square) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn init(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 83 | [INFO] [stdout] 84 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_bitboard` is never used [INFO] [stdout] --> src/board/bitboard.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn print_bitboard(bb: Bitboard) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_bits` is never used [INFO] [stdout] --> src/board/bitboard.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn count_bits(bb: Bitboard) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_lsb` is never used [INFO] [stdout] --> src/board/bitboard.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn get_lsb(bb: Bitboard) -> Square { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_bit` is never used [INFO] [stdout] --> src/board/bitboard.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn set_bit(bb: &mut Bitboard, sq: Square) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_bit` is never used [INFO] [stdout] --> src/board/bitboard.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn clear_bit(bb: &mut Bitboard, sq: Square) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pop_bit` is never used [INFO] [stdout] --> src/board/bitboard.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn pop_bit(bb: &mut Bitboard, sq: Square) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitboard_to_array` is never used [INFO] [stdout] --> src/board/bitboard.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn bitboard_to_array(bb: Bitboard) -> [bool; 64] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FEN_NR_OF_PARTS` is never used [INFO] [stdout] --> src/board/fen.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const FEN_NR_OF_PARTS: usize = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LIST_OF_PIECES` is never used [INFO] [stdout] --> src/board/fen.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const LIST_OF_PIECES: &str = "kqrbnpKQRBNP"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EP_SQUARES_WHITE` is never used [INFO] [stdout] --> src/board/fen.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const EP_SQUARES_WHITE: RangeInclusive = ALL_SQUARES::A3 as Square..=ALL_SQUARES::H3 as Square; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EP_SQUARES_BLACK` is never used [INFO] [stdout] --> src/board/fen.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const EP_SQUARES_BLACK: RangeInclusive = ALL_SQUARES::A6 as Square..=ALL_SQUARES::H6 as Square; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WHITE_OR_BLACK` is never used [INFO] [stdout] --> src/board/fen.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const WHITE_OR_BLACK: &str = "wb"; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPLITTER` is never used [INFO] [stdout] --> src/board/fen.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const SPLITTER: char = '/'; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DASH` is never used [INFO] [stdout] --> src/board/fen.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const DASH: char = '-'; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EM_DASH` is never used [INFO] [stdout] --> src/board/fen.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const EM_DASH: char = '–'; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPACE` is never used [INFO] [stdout] --> src/board/fen.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const SPACE: char = ' '; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/board/fen.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum FenError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 23 | IncorrectLength, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 24 | Part1, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 25 | Part2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | Part3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | Part4, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | Part5, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | Part6, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FenResult` is never used [INFO] [stdout] --> src/board/fen.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 47 | pub type FenResult = Result<(), FenError>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SplitResult` is never used [INFO] [stdout] --> src/board/fen.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | pub type SplitResult = Result, FenError>; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `FenPartParser` is never used [INFO] [stdout] --> src/board/fen.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | type FenPartParser = fn(board: &mut Board, part: &str) -> FenResult; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_fen` is never used [INFO] [stdout] --> src/board/fen.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Board { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 52 | pub fn parse_fen(&mut self, fen_string: Option<&str>) -> FenResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_fen_string` is never used [INFO] [stdout] --> src/board/fen.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn split_fen_string(fen_string: Option<&str>) -> SplitResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_part_parsers` is never used [INFO] [stdout] --> src/board/fen.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn create_part_parsers() -> [FenPartParser; FEN_NR_OF_PARTS] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pieces` is never used [INFO] [stdout] --> src/board/fen.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn pieces(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `color` is never used [INFO] [stdout] --> src/board/fen.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn color(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `castling` is never used [INFO] [stdout] --> src/board/fen.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn castling(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `en_passant` is never used [INFO] [stdout] --> src/board/fen.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 216 | fn en_passant(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `half_move_clock` is never used [INFO] [stdout] --> src/board/fen.rs:240:4 [INFO] [stdout] | [INFO] [stdout] 240 | fn half_move_clock(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `full_move_number` is never used [INFO] [stdout] --> src/board/fen.rs:253:4 [INFO] [stdout] | [INFO] [stdout] 253 | fn full_move_number(board: &mut Board, part: &str) -> FenResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `CASTLING_PERMISSIONS`, `FILES`, and `RANKS` are never used [INFO] [stdout] --> src/defs.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 7 | impl NrOf { [INFO] [stdout] | --------- associated constants in this implementation [INFO] [stdout] 8 | pub const PIECE_TYPES: usize = 6; [INFO] [stdout] 9 | pub const CASTLING_PERMISSIONS: usize = 16; // 0-15 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub const SQUARES: usize = 64; [INFO] [stdout] 11 | pub const FILES: usize = 8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub const RANKS: usize = 8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FEN_START_POSITION` is never used [INFO] [stdout] --> src/defs.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub const FEN_START_POSITION: &str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_MOVES` is never used [INFO] [stdout] --> src/defs.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub const MAX_MOVES: u8 = 100; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Piece` is never used [INFO] [stdout] --> src/defs.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub type Piece = usize; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EMPTY` is never used [INFO] [stdout] --> src/defs.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const EMPTY: u64 = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ALL` is never used [INFO] [stdout] --> src/defs.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 26 | impl Castling { [INFO] [stdout] | ------------- associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub const ALL: u8 = 0b1111; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_string` and `as_char` are never used [INFO] [stdout] --> src/defs.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl Pieces { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 46 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn as_char(&self) -> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_string` is never used [INFO] [stdout] --> src/defs.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 114 | impl Colors { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 115 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_bb_squares` is never used [INFO] [stdout] --> src/defs.rs:123:10 [INFO] [stdout] | [INFO] [stdout] 123 | const fn init_bb_squares() -> [Bitboard; NrOf::SQUARES] { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BB_SQUARES` is never used [INFO] [stdout] --> src/defs.rs:133:11 [INFO] [stdout] | [INFO] [stdout] 133 | pub const BB_SQUARES: [Bitboard; NrOf::SQUARES] = init_bb_squares(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_string` is never used [INFO] [stdout] --> src/defs.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 147 | impl ALL_SQUARES { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 148 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_A_FILE` is never used [INFO] [stdout] --> src/moves.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const NOT_A_FILE: Bitboard = 0xfefefefefefefefe; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_H_FILE` is never used [INFO] [stdout] --> src/moves.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const NOT_H_FILE: Bitboard = 0x7f7f7f7f7f7f7f7f; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_HG_FILE` is never used [INFO] [stdout] --> src/moves.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const NOT_HG_FILE: Bitboard = 0x3f3f3f3f3f3f3f3f; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_AB_FILE` is never used [INFO] [stdout] --> src/moves.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const NOT_AB_FILE: Bitboard = 0xfcfcfcfcfcfcfcfc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_FIRST_RANK` is never used [INFO] [stdout] --> src/moves.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const NOT_FIRST_RANK: Bitboard = 0xffffffffffffff00; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NOT_EIGHTH_RANK` is never used [INFO] [stdout] --> src/moves.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const NOT_EIGHTH_RANK: Bitboard = 0x00ffffffffffffff; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DARK_SQUARES` is never used [INFO] [stdout] --> src/moves.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub const DARK_SQUARES: Bitboard = 0xaa55aa55aa55aa55; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AttackTable` is never constructed [INFO] [stdout] --> src/moves.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AttackTable{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/board/fen.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | parser(&mut temp, &part); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 63 | let _ = parser(&mut temp, &part); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/moves.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl AttackTable { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 27 | pub fn new() -> AttackTable { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn init_pawns(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | fn init_knights(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn init_kings(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn init_sliders(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn get_bishop_attacks(&self, sq: Square, occ: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn get_rook_attacks(&self, sq: Square, occ: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_queen_attacks(&self, sq: Square, occ: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pawn_attacks` is never used [INFO] [stdout] --> src/moves.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn pawn_attacks(color: Color, sq: Square) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_attacks` is never used [INFO] [stdout] --> src/moves.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn knight_attacks(sq: Square) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `king_attacks` is never used [INFO] [stdout] --> src/moves.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn king_attacks(sq: Square) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BISHOP_RELEVANT_BITS` is never used [INFO] [stdout] --> src/sorcery.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const BISHOP_RELEVANT_BITS: [i32; 64] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOK_RELEVANT_BITS` is never used [INFO] [stdout] --> src/sorcery.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub const ROOK_RELEVANT_BITS: [i32; 64] = [ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sorcerer` is never constructed [INFO] [stdout] --> src/sorcery.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Sorcerer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_random_u32_number`, `get_random_u64_number`, `generate_magic_num`, `find_magic_number`, and `init_magic_numbers` are never used [INFO] [stdout] --> src/sorcery.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Sorcerer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 38 | pub fn new() -> Sorcerer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn get_random_u32_number(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_random_u64_number(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn generate_magic_num(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn find_magic_number(&mut self, sq: Square, relevant_bits: i32, bishop: bool) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn init_magic_numbers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mask_bishop_attacks` is never used [INFO] [stdout] --> src/sorcery.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn mask_bishop_attacks(sq: Square) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mask_rook_attacks` is never used [INFO] [stdout] --> src/sorcery.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn mask_rook_attacks(sq: Square) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_attacks` is never used [INFO] [stdout] --> src/sorcery.rs:149:4 [INFO] [stdout] | [INFO] [stdout] 149 | fn calc_attacks(rank_dir: isize, file_dir: isize, target_rank: usize, target_file: usize, attacks: &mut Bitboard) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_attacks_with_blocks` is never used [INFO] [stdout] --> src/sorcery.rs:159:4 [INFO] [stdout] | [INFO] [stdout] 159 | fn calc_attacks_with_blocks(rank_dir: isize, file_dir: isize, target_rank: usize, target_file: usize, attacks: &mut Bitboard, blocks: Bit... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bishop_attacks` is never used [INFO] [stdout] --> src/sorcery.rs:173:8 [INFO] [stdout] | [INFO] [stdout] 173 | pub fn bishop_attacks(sq: Square, blocks: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rook_attacks` is never used [INFO] [stdout] --> src/sorcery.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn rook_attacks(sq: Square, blocks: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_occupancy` is never used [INFO] [stdout] --> src/sorcery.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn set_occupancy(index: Bitboard, bits_in_mask: usize, attack_mask: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOK_MAGICS` is never used [INFO] [stdout] --> src/magics.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const ROOK_MAGICS: [u64; 64] = [ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BISHOP_MAGICS` is never used [INFO] [stdout] --> src/magics.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | pub const BISHOP_MAGICS: [u64; 64] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/board/fen.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | parser(&mut temp, &part); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 63 | let _ = parser(&mut temp, &part); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.41s [INFO] running `Command { std: "docker" "inspect" "b96ac7b4d73763373dd1cbb3fa184182a87b8d7d3d078455c0e5d37cbba95c92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b96ac7b4d73763373dd1cbb3fa184182a87b8d7d3d078455c0e5d37cbba95c92", kill_on_drop: false }` [INFO] [stdout] b96ac7b4d73763373dd1cbb3fa184182a87b8d7d3d078455c0e5d37cbba95c92