[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] 1d558070f124dca8996edbcd48c51e4a28dafd61 [INFO] checking zchown/chessEngine against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzchown%2FchessEngine" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zchown/chessEngine on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "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-3-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2fa403df70fd52f4529ebf8f9a3b0be5b7a09874db13b5d93290e3fba3be952 [INFO] running `Command { std: "docker" "start" "-a" "d2fa403df70fd52f4529ebf8f9a3b0be5b7a09874db13b5d93290e3fba3be952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2fa403df70fd52f4529ebf8f9a3b0be5b7a09874db13b5d93290e3fba3be952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2fa403df70fd52f4529ebf8f9a3b0be5b7a09874db13b5d93290e3fba3be952", kill_on_drop: false }` [INFO] [stdout] d2fa403df70fd52f4529ebf8f9a3b0be5b7a09874db13b5d93290e3fba3be952 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f016846ab6fb99d78df793534925be12205507970a92bb91431b1c86a650e9d [INFO] running `Command { std: "docker" "start" "-a" "9f016846ab6fb99d78df793534925be12205507970a92bb91431b1c86a650e9d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [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: unused import: `EMPTY` [INFO] [stdout] --> src/board/fen.rs:4:97 [INFO] [stdout] | [INFO] [stdout] 4 | defs::{Castling, Square, FEN_START_POSITION, MAX_MOVES, Colors, Color, Pieces, ALL_SQUARES, EMPTY}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/board.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bitboard_to_array`, `clear_bit`, `count_bits`, `fen::FenResult`, `get_bit`, `pop_bit`, `set_bit` [INFO] [stdout] --> src/board.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fen::FenResult, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | bitboard::{Bitboard, print_bitboard, get_bit, set_bit, clear_bit, pop_bit, count_bits, bitboard_to_array}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FEN_START_POSITION`, `Pieces` [INFO] [stdout] --> src/board.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::defs::{Colors, Color, Pieces, BB_SQUARES, EMPTY, NrOf, Piece, Square, FEN_START_POSITION}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ALL_SQUARES` should have an upper camel case name [INFO] [stdout] --> src/defs.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | 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 imports: `Board`, `Castling`, `EMPTY`, `Piece`, `Pieces`, `count_bits`, `get_bit`, `get_lsb`, `pop_bit`, `print_bitboard` [INFO] [stdout] --> src/moves.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | board::{Board}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | board::bitboard::{Bitboard, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 4 | defs::{Castling, NrOf, Piece, Square, EMPTY, Colors, Color, Pieces, BB_SQUARES}, [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BB_SQUARES`, `Board`, `Castling`, `Color`, `Colors`, `EMPTY`, `Piece`, `Pieces`, `print_bitboard` [INFO] [stdout] --> src/sorcery.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | board::{Board}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | board::bitboard::{Bitboard, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | defs::{Castling, Colors, Color, ALL_SQUARES, Pieces, BB_SQUARES, NrOf, Piece, Square, EMPTY}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BB_SQUARES`, `Colors` [INFO] [stdout] --> src/main.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use defs::{Square, Colors, BB_SQUARES, ALL_SQUARES}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NOT_EIGHTH_RANK`, `NOT_FIRST_RANK`, `Sorcerer`, `count_bits`, `get_bit`, `get_lsb`, `pop_bit` [INFO] [stdout] --> src/main.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | board::bitboard::{Bitboard, set_bit, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 11 | moves::{AttackTable, NOT_EIGHTH_RANK, NOT_FIRST_RANK}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | sorcery::{Sorcerer}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EMPTY` [INFO] [stdout] --> src/board/fen.rs:4:97 [INFO] [stdout] | [INFO] [stdout] 4 | defs::{Castling, Square, FEN_START_POSITION, MAX_MOVES, Colors, Color, Pieces, ALL_SQUARES, EMPTY}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/board.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bitboard_to_array`, `clear_bit`, `count_bits`, `fen::FenResult`, `get_bit`, `pop_bit`, `set_bit` [INFO] [stdout] --> src/board.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fen::FenResult, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | bitboard::{Bitboard, print_bitboard, get_bit, set_bit, clear_bit, pop_bit, count_bits, bitboard_to_array}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FEN_START_POSITION`, `Pieces` [INFO] [stdout] --> src/board.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::defs::{Colors, Color, Pieces, BB_SQUARES, EMPTY, NrOf, Piece, Square, FEN_START_POSITION}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ALL_SQUARES` should have an upper camel case name [INFO] [stdout] --> src/defs.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | 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 imports: `Board`, `Castling`, `EMPTY`, `Piece`, `Pieces`, `count_bits`, `get_bit`, `get_lsb`, `pop_bit`, `print_bitboard` [INFO] [stdout] --> src/moves.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | board::{Board}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | board::bitboard::{Bitboard, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 4 | defs::{Castling, NrOf, Piece, Square, EMPTY, Colors, Color, Pieces, BB_SQUARES}, [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BB_SQUARES`, `Board`, `Castling`, `Color`, `Colors`, `EMPTY`, `Piece`, `Pieces`, `print_bitboard` [INFO] [stdout] --> src/sorcery.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | board::{Board}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | board::bitboard::{Bitboard, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | defs::{Castling, Colors, Color, ALL_SQUARES, Pieces, BB_SQUARES, NrOf, Piece, Square, EMPTY}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BB_SQUARES`, `Colors` [INFO] [stdout] --> src/main.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use defs::{Square, Colors, BB_SQUARES, ALL_SQUARES}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NOT_EIGHTH_RANK`, `NOT_FIRST_RANK`, `Sorcerer`, `count_bits`, `get_bit`, `get_lsb`, `pop_bit` [INFO] [stdout] --> src/main.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | board::bitboard::{Bitboard, set_bit, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 11 | moves::{AttackTable, NOT_EIGHTH_RANK, NOT_FIRST_RANK}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | sorcery::{Sorcerer}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pawns` [INFO] [stdout] --> src/moves.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | let mut pawns: [[Bitboard; NrOf::SQUARES]; NrOf::COLORS] = [[0; NrOf::SQUARES]; NrOf::COLORS]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pawns` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/moves.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut pawns: [[Bitboard; NrOf::SQUARES]; NrOf::COLORS] = [[0; NrOf::SQUARES]; NrOf::COLORS]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attack_mask_bishop` [INFO] [stdout] --> src/moves.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | let attack_mask_bishop: Bitboard = self.bishop_masks[sq]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attack_mask_bishop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attack_mask_rook` [INFO] [stdout] --> src/moves.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | let attack_mask_rook: Bitboard = self.rook_masks[sq]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attack_mask_rook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/board.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 27 | pub fn new() -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn print_bitboards(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_pieces(&self, piece: usize, color: usize) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_all_pieces(&self) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn remove_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn add_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn move_piece(&mut self, piece: Piece, from: Square, to: Square) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn init(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | [INFO] [stdout] 90 | 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 `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 `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 `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 constant `CASTLING_PERMISSIONS` is never used [INFO] [stdout] --> src/defs.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 7 | impl NrOf { [INFO] [stdout] | --------- associated constant 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] [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: struct `Castling` is never constructed [INFO] [stdout] --> src/defs.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Castling; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `WK`, `WQ`, `BK`, `BQ`, and `ALL` are never used [INFO] [stdout] --> src/defs.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 26 | impl Castling { [INFO] [stdout] | ------------- associated constants in this implementation [INFO] [stdout] 27 | pub const WK: u8 = 1; [INFO] [stdout] | ^^ [INFO] [stdout] 28 | pub const WQ: u8 = 2; [INFO] [stdout] | ^^ [INFO] [stdout] 29 | pub const BK: u8 = 4; [INFO] [stdout] | ^^ [INFO] [stdout] 30 | pub const BQ: u8 = 8; [INFO] [stdout] | ^^ [INFO] [stdout] 31 | pub const ALL: u8 = 15; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Pieces` is never used [INFO] [stdout] --> src/defs.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum Pieces { [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] 58 | 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:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl Colors { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 80 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_string` is never used [INFO] [stdout] --> src/defs.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl ALL_SQUARES { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 169 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DARK_SQUARES` is never used [INFO] [stdout] --> src/moves.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const DARK_SQUARES: Bitboard = 0xaa55aa55aa55aa55; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sorcerer` is never constructed [INFO] [stdout] --> src/sorcery.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | 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:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Sorcerer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 39 | pub fn new() -> Sorcerer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_random_u32_number(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn get_random_u64_number(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn generate_magic_num(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn find_magic_number(&mut self, sq: Square, relevant_bits: i32, bishop: bool) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn init_magic_numbers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pawns` [INFO] [stdout] --> src/moves.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | let mut pawns: [[Bitboard; NrOf::SQUARES]; NrOf::COLORS] = [[0; NrOf::SQUARES]; NrOf::COLORS]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pawns` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/moves.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut pawns: [[Bitboard; NrOf::SQUARES]; NrOf::COLORS] = [[0; NrOf::SQUARES]; NrOf::COLORS]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attack_mask_bishop` [INFO] [stdout] --> src/moves.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | let attack_mask_bishop: Bitboard = self.bishop_masks[sq]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attack_mask_bishop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attack_mask_rook` [INFO] [stdout] --> src/moves.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | let attack_mask_rook: Bitboard = self.rook_masks[sq]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attack_mask_rook` [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/board.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 27 | pub fn new() -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn print_bitboards(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_pieces(&self, piece: usize, color: usize) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_all_pieces(&self) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn remove_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn add_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn move_piece(&mut self, piece: Piece, from: Square, to: Square) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn init(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | [INFO] [stdout] 90 | 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 `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 `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 `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 constant `CASTLING_PERMISSIONS` is never used [INFO] [stdout] --> src/defs.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 7 | impl NrOf { [INFO] [stdout] | --------- associated constant 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] [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: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Castling` is never constructed [INFO] [stdout] --> src/defs.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Castling; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `WK`, `WQ`, `BK`, `BQ`, and `ALL` are never used [INFO] [stdout] --> src/defs.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 26 | impl Castling { [INFO] [stdout] | ------------- associated constants in this implementation [INFO] [stdout] 27 | pub const WK: u8 = 1; [INFO] [stdout] | ^^ [INFO] [stdout] 28 | pub const WQ: u8 = 2; [INFO] [stdout] | ^^ [INFO] [stdout] 29 | pub const BK: u8 = 4; [INFO] [stdout] | ^^ [INFO] [stdout] 30 | pub const BQ: u8 = 8; [INFO] [stdout] | ^^ [INFO] [stdout] 31 | pub const ALL: u8 = 15; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Pieces` is never used [INFO] [stdout] --> src/defs.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum Pieces { [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] 58 | 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:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl Colors { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 80 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_string` is never used [INFO] [stdout] --> src/defs.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl ALL_SQUARES { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 169 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DARK_SQUARES` is never used [INFO] [stdout] --> src/moves.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const DARK_SQUARES: Bitboard = 0xaa55aa55aa55aa55; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sorcerer` is never constructed [INFO] [stdout] --> src/sorcery.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | 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:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Sorcerer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 39 | pub fn new() -> Sorcerer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_random_u32_number(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn get_random_u64_number(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn generate_magic_num(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn find_magic_number(&mut self, sq: Square, relevant_bits: i32, bishop: bool) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn init_magic_numbers(&mut self) { [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: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.27s [INFO] running `Command { std: "docker" "inspect" "9f016846ab6fb99d78df793534925be12205507970a92bb91431b1c86a650e9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f016846ab6fb99d78df793534925be12205507970a92bb91431b1c86a650e9d", kill_on_drop: false }` [INFO] [stdout] 9f016846ab6fb99d78df793534925be12205507970a92bb91431b1c86a650e9d [INFO] checking zchown/chessEngine against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzchown%2FchessEngine" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zchown/chessEngine on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "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-3-tc2/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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ddc9cd42edb2f385132bc988d635f99f00bc45486d8eff9b0663d24e8137b84 [INFO] running `Command { std: "docker" "start" "-a" "4ddc9cd42edb2f385132bc988d635f99f00bc45486d8eff9b0663d24e8137b84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ddc9cd42edb2f385132bc988d635f99f00bc45486d8eff9b0663d24e8137b84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ddc9cd42edb2f385132bc988d635f99f00bc45486d8eff9b0663d24e8137b84", kill_on_drop: false }` [INFO] [stdout] 4ddc9cd42edb2f385132bc988d635f99f00bc45486d8eff9b0663d24e8137b84 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f882b2b0a1a39556609788f059834c6d41a625b801a5ed9ccefd0c10fba538a7 [INFO] running `Command { std: "docker" "start" "-a" "f882b2b0a1a39556609788f059834c6d41a625b801a5ed9ccefd0c10fba538a7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [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: unused import: `EMPTY` [INFO] [stdout] --> src/board/fen.rs:4:97 [INFO] [stdout] | [INFO] [stdout] 4 | defs::{Castling, Square, FEN_START_POSITION, MAX_MOVES, Colors, Color, Pieces, ALL_SQUARES, EMPTY}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/board.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bitboard_to_array`, `clear_bit`, `count_bits`, `fen::FenResult`, `get_bit`, `pop_bit`, `set_bit` [INFO] [stdout] --> src/board.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fen::FenResult, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | bitboard::{Bitboard, print_bitboard, get_bit, set_bit, clear_bit, pop_bit, count_bits, bitboard_to_array}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FEN_START_POSITION`, `Pieces` [INFO] [stdout] --> src/board.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::defs::{Colors, Color, Pieces, BB_SQUARES, EMPTY, NrOf, Piece, Square, FEN_START_POSITION}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ALL_SQUARES` should have an upper camel case name [INFO] [stdout] --> src/defs.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | 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 imports: `Board`, `Castling`, `EMPTY`, `Piece`, `Pieces`, `count_bits`, `get_bit`, `get_lsb`, `pop_bit`, `print_bitboard` [INFO] [stdout] --> src/moves.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | board::{Board}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | board::bitboard::{Bitboard, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 4 | defs::{Castling, NrOf, Piece, Square, EMPTY, Colors, Color, Pieces, BB_SQUARES}, [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BB_SQUARES`, `Board`, `Castling`, `Color`, `Colors`, `EMPTY`, `Piece`, `Pieces`, `print_bitboard` [INFO] [stdout] --> src/sorcery.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | board::{Board}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | board::bitboard::{Bitboard, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | defs::{Castling, Colors, Color, ALL_SQUARES, Pieces, BB_SQUARES, NrOf, Piece, Square, EMPTY}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BB_SQUARES`, `Colors` [INFO] [stdout] --> src/main.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use defs::{Square, Colors, BB_SQUARES, ALL_SQUARES}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NOT_EIGHTH_RANK`, `NOT_FIRST_RANK`, `Sorcerer`, `count_bits`, `get_bit`, `get_lsb`, `pop_bit` [INFO] [stdout] --> src/main.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | board::bitboard::{Bitboard, set_bit, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 11 | moves::{AttackTable, NOT_EIGHTH_RANK, NOT_FIRST_RANK}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | sorcery::{Sorcerer}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EMPTY` [INFO] [stdout] --> src/board/fen.rs:4:97 [INFO] [stdout] | [INFO] [stdout] 4 | defs::{Castling, Square, FEN_START_POSITION, MAX_MOVES, Colors, Color, Pieces, ALL_SQUARES, EMPTY}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/board.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `bitboard_to_array`, `clear_bit`, `count_bits`, `fen::FenResult`, `get_bit`, `pop_bit`, `set_bit` [INFO] [stdout] --> src/board.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | fen::FenResult, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | bitboard::{Bitboard, print_bitboard, get_bit, set_bit, clear_bit, pop_bit, count_bits, bitboard_to_array}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FEN_START_POSITION`, `Pieces` [INFO] [stdout] --> src/board.rs:12:34 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::defs::{Colors, Color, Pieces, BB_SQUARES, EMPTY, NrOf, Piece, Square, FEN_START_POSITION}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ALL_SQUARES` should have an upper camel case name [INFO] [stdout] --> src/defs.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | 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 imports: `Board`, `Castling`, `EMPTY`, `Piece`, `Pieces`, `count_bits`, `get_bit`, `get_lsb`, `pop_bit`, `print_bitboard` [INFO] [stdout] --> src/moves.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | board::{Board}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | board::bitboard::{Bitboard, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 4 | defs::{Castling, NrOf, Piece, Square, EMPTY, Colors, Color, Pieces, BB_SQUARES}, [INFO] [stdout] | ^^^^^^^^ ^^^^^ ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BB_SQUARES`, `Board`, `Castling`, `Color`, `Colors`, `EMPTY`, `Piece`, `Pieces`, `print_bitboard` [INFO] [stdout] --> src/sorcery.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | board::{Board}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | board::bitboard::{Bitboard, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | defs::{Castling, Colors, Color, ALL_SQUARES, Pieces, BB_SQUARES, NrOf, Piece, Square, EMPTY}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^^ ^^^^^^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BB_SQUARES`, `Colors` [INFO] [stdout] --> src/main.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | use defs::{Square, Colors, BB_SQUARES, ALL_SQUARES}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NOT_EIGHTH_RANK`, `NOT_FIRST_RANK`, `Sorcerer`, `count_bits`, `get_bit`, `get_lsb`, `pop_bit` [INFO] [stdout] --> src/main.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | board::bitboard::{Bitboard, set_bit, get_bit, get_lsb, count_bits, print_bitboard, pop_bit}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] 11 | moves::{AttackTable, NOT_EIGHTH_RANK, NOT_FIRST_RANK}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | sorcery::{Sorcerer}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pawns` [INFO] [stdout] --> src/moves.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | let mut pawns: [[Bitboard; NrOf::SQUARES]; NrOf::COLORS] = [[0; NrOf::SQUARES]; NrOf::COLORS]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pawns` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/moves.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut pawns: [[Bitboard; NrOf::SQUARES]; NrOf::COLORS] = [[0; NrOf::SQUARES]; NrOf::COLORS]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attack_mask_bishop` [INFO] [stdout] --> src/moves.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | let attack_mask_bishop: Bitboard = self.bishop_masks[sq]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attack_mask_bishop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attack_mask_rook` [INFO] [stdout] --> src/moves.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | let attack_mask_rook: Bitboard = self.rook_masks[sq]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attack_mask_rook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/board.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 27 | pub fn new() -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn print_bitboards(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_pieces(&self, piece: usize, color: usize) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_all_pieces(&self) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn remove_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn add_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn move_piece(&mut self, piece: Piece, from: Square, to: Square) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn init(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | [INFO] [stdout] 90 | 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 `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 `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 `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 constant `CASTLING_PERMISSIONS` is never used [INFO] [stdout] --> src/defs.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 7 | impl NrOf { [INFO] [stdout] | --------- associated constant 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] [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: struct `Castling` is never constructed [INFO] [stdout] --> src/defs.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Castling; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `WK`, `WQ`, `BK`, `BQ`, and `ALL` are never used [INFO] [stdout] --> src/defs.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 26 | impl Castling { [INFO] [stdout] | ------------- associated constants in this implementation [INFO] [stdout] 27 | pub const WK: u8 = 1; [INFO] [stdout] | ^^ [INFO] [stdout] 28 | pub const WQ: u8 = 2; [INFO] [stdout] | ^^ [INFO] [stdout] 29 | pub const BK: u8 = 4; [INFO] [stdout] | ^^ [INFO] [stdout] 30 | pub const BQ: u8 = 8; [INFO] [stdout] | ^^ [INFO] [stdout] 31 | pub const ALL: u8 = 15; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Pieces` is never used [INFO] [stdout] --> src/defs.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum Pieces { [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] 58 | 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:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl Colors { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 80 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_string` is never used [INFO] [stdout] --> src/defs.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl ALL_SQUARES { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 169 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DARK_SQUARES` is never used [INFO] [stdout] --> src/moves.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const DARK_SQUARES: Bitboard = 0xaa55aa55aa55aa55; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sorcerer` is never constructed [INFO] [stdout] --> src/sorcery.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | 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:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Sorcerer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 39 | pub fn new() -> Sorcerer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_random_u32_number(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn get_random_u64_number(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn generate_magic_num(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn find_magic_number(&mut self, sq: Square, relevant_bits: i32, bishop: bool) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn init_magic_numbers(&mut self) { [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: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pawns` [INFO] [stdout] --> src/moves.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | let mut pawns: [[Bitboard; NrOf::SQUARES]; NrOf::COLORS] = [[0; NrOf::SQUARES]; NrOf::COLORS]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pawns` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/moves.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut pawns: [[Bitboard; NrOf::SQUARES]; NrOf::COLORS] = [[0; NrOf::SQUARES]; NrOf::COLORS]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attack_mask_bishop` [INFO] [stdout] --> src/moves.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | let attack_mask_bishop: Bitboard = self.bishop_masks[sq]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attack_mask_bishop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attack_mask_rook` [INFO] [stdout] --> src/moves.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | let attack_mask_rook: Bitboard = self.rook_masks[sq]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attack_mask_rook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/board.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 27 | pub fn new() -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn print_bitboards(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_pieces(&self, piece: usize, color: usize) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_all_pieces(&self) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn remove_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn add_piece(&mut self, piece: Piece, square: Square, color: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn move_piece(&mut self, piece: Piece, from: Square, to: Square) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn init(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 89 | [INFO] [stdout] 90 | 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 `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 `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 `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 constant `CASTLING_PERMISSIONS` is never used [INFO] [stdout] --> src/defs.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 7 | impl NrOf { [INFO] [stdout] | --------- associated constant 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] [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: struct `Castling` is never constructed [INFO] [stdout] --> src/defs.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Castling; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `WK`, `WQ`, `BK`, `BQ`, and `ALL` are never used [INFO] [stdout] --> src/defs.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 26 | impl Castling { [INFO] [stdout] | ------------- associated constants in this implementation [INFO] [stdout] 27 | pub const WK: u8 = 1; [INFO] [stdout] | ^^ [INFO] [stdout] 28 | pub const WQ: u8 = 2; [INFO] [stdout] | ^^ [INFO] [stdout] 29 | pub const BK: u8 = 4; [INFO] [stdout] | ^^ [INFO] [stdout] 30 | pub const BQ: u8 = 8; [INFO] [stdout] | ^^ [INFO] [stdout] 31 | pub const ALL: u8 = 15; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Pieces` is never used [INFO] [stdout] --> src/defs.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | pub enum Pieces { [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] 58 | 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:80:12 [INFO] [stdout] | [INFO] [stdout] 79 | impl Colors { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 80 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_string` is never used [INFO] [stdout] --> src/defs.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl ALL_SQUARES { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 169 | pub fn as_string(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.51s [INFO] [stdout] warning: constant `DARK_SQUARES` is never used [INFO] [stdout] --> src/moves.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub const DARK_SQUARES: Bitboard = 0xaa55aa55aa55aa55; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sorcerer` is never constructed [INFO] [stdout] --> src/sorcery.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | 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:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Sorcerer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 39 | pub fn new() -> Sorcerer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn get_random_u32_number(&mut self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn get_random_u64_number(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn generate_magic_num(&mut self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn find_magic_number(&mut self, sq: Square, relevant_bits: i32, bishop: bool) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn init_magic_numbers(&mut self) { [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: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f882b2b0a1a39556609788f059834c6d41a625b801a5ed9ccefd0c10fba538a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f882b2b0a1a39556609788f059834c6d41a625b801a5ed9ccefd0c10fba538a7", kill_on_drop: false }` [INFO] [stdout] f882b2b0a1a39556609788f059834c6d41a625b801a5ed9ccefd0c10fba538a7