[INFO] cloning repository https://github.com/currently-coding/chess-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/currently-coding/chess-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcurrently-coding%2Fchess-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcurrently-coding%2Fchess-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8b3ab491a3c03ac8673cee63c37d8d7384d99b01 [INFO] checking currently-coding/chess-engine against try#7df376b035b3d12ff0386ad8b45b76dbe020257b for pr-142712 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcurrently-coding%2Fchess-engine" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/currently-coding/chess-engine [INFO] finished tweaking git repo https://github.com/currently-coding/chess-engine [INFO] tweaked toml for git repo https://github.com/currently-coding/chess-engine written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/currently-coding/chess-engine on toolchain 7df376b035b3d12ff0386ad8b45b76dbe020257b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/currently-coding/chess-engine already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b0c8379e7b54b1b09947bb41961d17265d1e5f0ec4dba7d1d3d641422e376be8 [INFO] running `Command { std: "docker" "start" "-a" "b0c8379e7b54b1b09947bb41961d17265d1e5f0ec4dba7d1d3d641422e376be8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b0c8379e7b54b1b09947bb41961d17265d1e5f0ec4dba7d1d3d641422e376be8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0c8379e7b54b1b09947bb41961d17265d1e5f0ec4dba7d1d3d641422e376be8", kill_on_drop: false }` [INFO] [stdout] b0c8379e7b54b1b09947bb41961d17265d1e5f0ec4dba7d1d3d641422e376be8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+7df376b035b3d12ff0386ad8b45b76dbe020257b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec10db4a5a58db5758c88a0fc8fd09c2f1d452a3a169178f0b344e4eef8c1718 [INFO] running `Command { std: "docker" "start" "-a" "ec10db4a5a58db5758c88a0fc8fd09c2f1d452a3a169178f0b344e4eef8c1718", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking rust_chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/board/gamestate.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `zobrist::*` [INFO] [stdout] --> src/board/gamestate.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{moves::*, zobrist::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gamestate` [INFO] [stdout] --> src/board/history.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{gamestate, GameState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Square` and `Squares` [INFO] [stdout] --> src/board/moves.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{pieces::Pieces, Square, Squares}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/board/playmove.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | gamestate::{self, GameState}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::moves::Move` [INFO] [stdout] --> src/move_generator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::board::moves::Move; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Kingside` [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | Castle::{Kingside, Queenside}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/board/gamestate.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `zobrist::*` [INFO] [stdout] --> src/board/gamestate.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{moves::*, zobrist::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gamestate` [INFO] [stdout] --> src/board/history.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::{gamestate, GameState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Square` and `Squares` [INFO] [stdout] --> src/board/moves.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{pieces::Pieces, Square, Squares}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/board/playmove.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | gamestate::{self, GameState}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::board::moves::Move` [INFO] [stdout] --> src/move_generator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::board::moves::Move; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Kingside` [INFO] [stdout] --> src/main.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | Castle::{Kingside, Queenside}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut mg = MoveGenerator::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut board = Board::fen(Some(String::from( [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut board = Board::fen(Some(String::from("1k6/8/8/8/8/8/8/R2K3R w - - 0 1"))); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testing` is never used [INFO] [stdout] --> src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn testing() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `user` is never used [INFO] [stdout] --> src/main.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn user() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/board.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 108 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn occupancy(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | pub fn get_pieces(&self, side: u8, piece: Pieces) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn get_side(&self, side: u8) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn king(&self, side: u8) -> Square { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | pub fn debug_piece_list(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 351 | pub fn debug_bb(&self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | pub fn debug_all(&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 368 | pub fn is_dark_square(&self, square: Square) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | pub fn draw_by_insufficient_material(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 392 | fn has_bishop_pair(&self, side: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | fn get_piece_bb(&self, side: u8, piece: Pieces) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 414 | pub fn get_bitboards(&self, side: u8) -> [u64; NrOf::PIECE_TYPES] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPLITTER` is never used [INFO] [stdout] --> src/board/fen.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const SPLITTER: char = '/'; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `debug` is never used [INFO] [stdout] --> src/board/gamestate.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl GameState { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub(crate) fn debug(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/board/history.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl GameHistory { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn push(&mut self, new_state: GameState) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn count(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn unmake(&mut self) -> GameState { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn get_ref(&self, num: usize) -> Option<&GameState> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn previous(&self) -> Option<&GameState> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `piece`, `from`, `to`, and `kind` are never used [INFO] [stdout] --> src/board/moves.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Move { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn piece(&self) -> Pieces { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn from(&self) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn to(&self) -> u8 { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn kind(&self) -> MoveType { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/board/playmove.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 18 | pub fn remove_piece(&mut self, side: u8, piece: Pieces, square: Square) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn put_piece(&mut self, side: u8, piece: Pieces, square: Square) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn regular_move(&mut self, side: u8, piece: Pieces, from: Square, to: Square) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn set_ep_square(&mut self, square: Square) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn clear_ep_square(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn switch_side(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn update_castling_permissions(&mut self, new_permissions: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn unmake(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn make(&mut self, m: Move) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn capture_move(&mut self, piece: Pieces, from: Square, to: Square, captured_piece: Pieces) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn promotion_move(&mut self, piece: Pieces, square: Square, promoted_piece: Pieces) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | fn castle(&mut self, direction: moves::Castle) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_rook_start_squares` is never used [INFO] [stdout] --> src/board/playmove.rs:216:4 [INFO] [stdout] | [INFO] [stdout] 216 | fn get_rook_start_squares(state: &GameState) -> [Square; 2] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_fen` is never used [INFO] [stdout] --> src/cli.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn get_fen() -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square_to_index` is never used [INFO] [stdout] --> src/cli.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn square_to_index(sq: &str) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_move` is never used [INFO] [stdout] --> src/cli.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn get_move() -> Move { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Bitboard` is never used [INFO] [stdout] --> src/defs.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Bitboard = u64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EN_PASSANT_END_SQUARES_WHITE` is never used [INFO] [stdout] --> src/defs.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const EN_PASSANT_END_SQUARES_WHITE: RangeInclusive = Squares::A4..=Squares::H4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EN_PASSANT_END_SQUARES_BLACK` is never used [INFO] [stdout] --> src/defs.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub const EN_PASSANT_END_SQUARES_BLACK: RangeInclusive = Squares::A5..=Squares::H5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_bitboard` is never used [INFO] [stdout] --> src/helper.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn print_bitboard(bitboard: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_bit` is never used [INFO] [stdout] --> src/helper.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn next_bit(bitboard: &mut u64) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square_num_to_algebraic` is never used [INFO] [stdout] --> src/helper.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn square_num_to_algebraic<'a>(square: u8) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pawn`, `knight`, `bishop`, `rook`, and `king` are never used [INFO] [stdout] --> src/move_generator.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl MoveGenerator { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn pawn(&self) -> [[u64; NrOf::SQUARES]; NrOf::SIDES] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn knight(&self) -> [u64; NrOf::SQUARES] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn bishop(&self) -> [u64; NrOf::SQUARES] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn rook(&self) -> [u64; NrOf::SQUARES] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn king(&self) -> [u64; NrOf::SQUARES] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut mg = MoveGenerator::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut board = Board::fen(Some(String::from( [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let mut board = Board::fen(Some(String::from("1k6/8/8/8/8/8/8/R2K3R w - - 0 1"))); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testing` is never used [INFO] [stdout] --> src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn testing() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `user` is never used [INFO] [stdout] --> src/main.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn user() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `occupancy`, `get_side`, `debug_piece_list`, and `debug_all` are never used [INFO] [stdout] --> src/board.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 108 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn occupancy(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn get_side(&self, side: u8) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | pub fn debug_piece_list(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | pub fn debug_all(&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPLITTER` is never used [INFO] [stdout] --> src/board/fen.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const SPLITTER: char = '/'; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `debug` is never used [INFO] [stdout] --> src/board/gamestate.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl GameState { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub(crate) fn debug(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pop`, `count`, `get_ref`, `len`, and `previous` are never used [INFO] [stdout] --> src/board/history.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl GameHistory { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn pop(&mut self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn count(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn get_ref(&self, num: usize) -> Option<&GameState> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn previous(&self) -> Option<&GameState> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_fen` is never used [INFO] [stdout] --> src/cli.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn get_fen() -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `square_to_index` is never used [INFO] [stdout] --> src/cli.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn square_to_index(sq: &str) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_move` is never used [INFO] [stdout] --> src/cli.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | pub(crate) fn get_move() -> Move { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Bitboard` is never used [INFO] [stdout] --> src/defs.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type Bitboard = u64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_bitboard` is never used [INFO] [stdout] --> src/helper.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn print_bitboard(bitboard: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `pawn`, `knight`, `bishop`, `rook`, and `king` are never used [INFO] [stdout] --> src/move_generator.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl MoveGenerator { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn pawn(&self) -> [[u64; NrOf::SQUARES]; NrOf::SIDES] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn knight(&self) -> [u64; NrOf::SQUARES] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn bishop(&self) -> [u64; NrOf::SQUARES] { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn rook(&self) -> [u64; NrOf::SQUARES] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn king(&self) -> [u64; NrOf::SQUARES] { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.61s [INFO] running `Command { std: "docker" "inspect" "ec10db4a5a58db5758c88a0fc8fd09c2f1d452a3a169178f0b344e4eef8c1718", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec10db4a5a58db5758c88a0fc8fd09c2f1d452a3a169178f0b344e4eef8c1718", kill_on_drop: false }` [INFO] [stdout] ec10db4a5a58db5758c88a0fc8fd09c2f1d452a3a169178f0b344e4eef8c1718