[INFO] cloning repository https://github.com/13christopherb/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/13christopherb/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F13christopherb%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F13christopherb%2Fchess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb36a895dd62edd6830da05326e253ce4f185e8e [INFO] checking 13christopherb/chess against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F13christopherb%2Fchess" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/13christopherb/chess [INFO] finished tweaking git repo https://github.com/13christopherb/chess [INFO] tweaked toml for git repo https://github.com/13christopherb/chess written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/13christopherb/chess on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/13christopherb/chess 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.lto [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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d47a1bc9403f621799004773f7f25efdb4b2483df75150f2d95da5c900d17f1d [INFO] running `Command { std: "docker" "start" "-a" "d47a1bc9403f621799004773f7f25efdb4b2483df75150f2d95da5c900d17f1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d47a1bc9403f621799004773f7f25efdb4b2483df75150f2d95da5c900d17f1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d47a1bc9403f621799004773f7f25efdb4b2483df75150f2d95da5c900d17f1d", kill_on_drop: false }` [INFO] [stdout] d47a1bc9403f621799004773f7f25efdb4b2483df75150f2d95da5c900d17f1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bde910901c5cc94007a3401c735a76f15eb77fa6a35744ee5dd200da9f6f4353 [INFO] running `Command { std: "docker" "start" "-a" "bde910901c5cc94007a3401c735a76f15eb77fa6a35744ee5dd200da9f6f4353", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.lto [INFO] [stderr] Compiling libc v0.2.124 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `MFLAG_EP` and `MFLAG_PS` [INFO] [stdout] --> src/game_board/board.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::moves::gamemove::{GameMove, MFLAG_EP, MFLAG_PS}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_all_moves` [INFO] [stdout] --> src/game_board/board.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::moves::movegen::{generate_all_moves, square_is_attacked}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/game_board/bitboard.rs:71:23 [INFO] [stdout] | [INFO] [stdout] 71 | self.board ^= (self.set_mask[to as usize] | self.set_mask[from as usize]) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - self.board ^= (self.set_mask[to as usize] | self.set_mask[from as usize]) [INFO] [stdout] 71 + self.board ^= self.set_mask[to as usize] | self.set_mask[from as usize] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fr2sq` and `init_file_rank_arrays` [INFO] [stdout] --> src/moves/movegen.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::utils::square_utils::{fr2sq, init_file_rank_arrays}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `check_board` [INFO] [stdout] --> src/moves/movegen.rs:5:39 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::game_board::board::{Board, check_board}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/moves/movegen.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | if (pos.en_passant != NO_SQ) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 242 - if (pos.en_passant != NO_SQ) { [INFO] [stdout] 242 + if pos.en_passant != NO_SQ { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/utils/io.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/utils/io.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt, io}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/alphabeta/pvtable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::MaybeUninit` [INFO] [stdout] --> src/alphabeta/pvtable.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::mem::MaybeUninit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MFLAG_EP` and `MFLAG_PS` [INFO] [stdout] --> src/game_board/board.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::moves::gamemove::{GameMove, MFLAG_EP, MFLAG_PS}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate_all_moves` [INFO] [stdout] --> src/game_board/board.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::moves::movegen::{generate_all_moves, square_is_attacked}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BP` [INFO] [stdout] --> src/game_board/board.rs:780:25 [INFO] [stdout] | [INFO] [stdout] 780 | BLACK, BLACK_S, BP, BQ_CASTLE, BR, EMPTY, WHITE, WHITE_S, WK_CASTLE, WP, WQ, WQ_CASTLE, WR, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `check_board` [INFO] [stdout] --> src/game_board/board.rs:785:36 [INFO] [stdout] | [INFO] [stdout] 785 | use crate::game_board::board::{check_board, Board, GameMove}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::moves::validate::is_sq_on_board` [INFO] [stdout] --> src/game_board/board.rs:786:9 [INFO] [stdout] | [INFO] [stdout] 786 | use crate::moves::validate::is_sq_on_board; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/game_board/bitboard.rs:71:23 [INFO] [stdout] | [INFO] [stdout] 71 | self.board ^= (self.set_mask[to as usize] | self.set_mask[from as usize]) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - self.board ^= (self.set_mask[to as usize] | self.set_mask[from as usize]) [INFO] [stdout] 71 + self.board ^= self.set_mask[to as usize] | self.set_mask[from as usize] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fr2sq` and `init_file_rank_arrays` [INFO] [stdout] --> src/moves/movegen.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::utils::square_utils::{fr2sq, init_file_rank_arrays}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `check_board` [INFO] [stdout] --> src/moves/movegen.rs:5:39 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::game_board::board::{Board, check_board}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/moves/movegen.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | if (pos.en_passant != NO_SQ) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 242 - if (pos.en_passant != NO_SQ) { [INFO] [stdout] 242 + if pos.en_passant != NO_SQ { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/moves/movegen.rs:441:9 [INFO] [stdout] | [INFO] [stdout] 441 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::hashkeys::BoardHasher` [INFO] [stdout] --> src/utils/piece_utils.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::utils::hashkeys::BoardHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/utils/io.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/utils/io.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt, io}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/alphabeta/pvtable.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::MaybeUninit` [INFO] [stdout] --> src/alphabeta/pvtable.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::mem::MaybeUninit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/moves/gamemove.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut output = String::from(""); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/moves/gamemove.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut output = String::from(""); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/moves/movegen.rs:104:19 [INFO] [stdout] | [INFO] [stdout] 104 | fn add_quiet_move(pos: &Board, mve: GameMove, list: &mut Vec) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/moves/movegen.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | fn add_capture_move(pos: &Board, mve: GameMove, list: &mut Vec) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/hashkeys.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut sq = 0; [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/alphabeta/pvtable.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut table = vec![PVEntry{ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIDE_CHARS` is never used [INFO] [stdout] --> src/game_board/board.rs:645:15 [INFO] [stdout] | [INFO] [stdout] 645 | const SIDE_CHARS: [char; 3] = ['w', 'b', '-']; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RANK_CHARS` is never used [INFO] [stdout] --> src/game_board/board.rs:646:15 [INFO] [stdout] | [INFO] [stdout] 646 | const RANK_CHARS: [char; 8] = ['1', '2', '3', '4', '5', '6', '7', '8']; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FILE_CHARS` is never used [INFO] [stdout] --> src/game_board/board.rs:647:15 [INFO] [stdout] | [INFO] [stdout] 647 | const FILE_CHARS: [char; 8] = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_POSITION_MOVES` is never used [INFO] [stdout] --> src/moves/movegen.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const MAX_POSITION_MOVES: u32 = 256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `squares_are_attacked` is never used [INFO] [stdout] --> src/moves/movegen.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn squares_are_attacked(squares: &[usize], side: u8, pces: &[u8; 120]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `squares_are_empty` is never used [INFO] [stdout] --> src/moves/movegen.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn squares_are_empty(squares: &[usize], pces: &[u8; 120]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_side_valid` is never used [INFO] [stdout] --> src/moves/validate.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn is_side_valid(side:u8) -> bool { side == WHITE || side == BLACK } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_filerank_valid` is never used [INFO] [stdout] --> src/moves/validate.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn is_filerank_valid(fr: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_piece_valid` is never used [INFO] [stdout] --> src/moves/validate.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn is_piece_valid(pce: u8) -> bool { pce <= BK } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_piece` is never used [INFO] [stdout] --> src/moves/validate.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn is_piece(pce: u8) -> bool { (WP..=BK).contains(&pce) } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/game_board/board.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | self.pieces[usize::try_from(self.sq120(i)).unwrap()] = pieces::EMPTY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/utils/hashkeys.rs:53:66 [INFO] [stdout] | [INFO] [stdout] 53 | final_key ^= self.piece_keys[pieces::EMPTY as usize][usize::try_from(en_passant).unwrap()]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chess` (lib) due to 2 previous errors; 26 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `white_pawn_bb` [INFO] [stdout] --> src/game_board/board.rs:801:13 [INFO] [stdout] | [INFO] [stdout] 801 | let white_pawn_bb: u64 = 0x0000_0000_0000_FF00; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_white_pawn_bb` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_board/board.rs:1150:13 [INFO] [stdout] | [INFO] [stdout] 1150 | let mut mov = GameMove::new(A2, A4, 0, 0, 0x80000); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_board/board.rs:1334:13 [INFO] [stdout] | [INFO] [stdout] 1334 | for i in 0..moves.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/moves/gamemove.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut output = String::from(""); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/moves/gamemove.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut output = String::from(""); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/moves/movegen.rs:104:19 [INFO] [stdout] | [INFO] [stdout] 104 | fn add_quiet_move(pos: &Board, mve: GameMove, list: &mut Vec) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/moves/movegen.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | fn add_capture_move(pos: &Board, mve: GameMove, list: &mut Vec) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/moves/movegen.rs:752:13 [INFO] [stdout] | [INFO] [stdout] 752 | let mut pces = init_pces(); [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/utils/hashkeys.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut sq = 0; [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/alphabeta/pvtable.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut table = vec![PVEntry{ [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/alphabeta/pvtable.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let mut table = PVTable::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIDE_CHARS` is never used [INFO] [stdout] --> src/game_board/board.rs:645:15 [INFO] [stdout] | [INFO] [stdout] 645 | const SIDE_CHARS: [char; 3] = ['w', 'b', '-']; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RANK_CHARS` is never used [INFO] [stdout] --> src/game_board/board.rs:646:15 [INFO] [stdout] | [INFO] [stdout] 646 | const RANK_CHARS: [char; 8] = ['1', '2', '3', '4', '5', '6', '7', '8']; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FILE_CHARS` is never used [INFO] [stdout] --> src/game_board/board.rs:647:15 [INFO] [stdout] | [INFO] [stdout] 647 | const FILE_CHARS: [char; 8] = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_make_and_undo` is never used [INFO] [stdout] --> src/game_board/board.rs:1258:8 [INFO] [stdout] | [INFO] [stdout] 1258 | fn test_make_and_undo() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_POSITION_MOVES` is never used [INFO] [stdout] --> src/moves/movegen.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const MAX_POSITION_MOVES: u32 = 256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `squares_are_attacked` is never used [INFO] [stdout] --> src/moves/movegen.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn squares_are_attacked(squares: &[usize], side: u8, pces: &[u8; 120]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `squares_are_empty` is never used [INFO] [stdout] --> src/moves/movegen.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn squares_are_empty(squares: &[usize], pces: &[u8; 120]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_white_pawn_capture` is never used [INFO] [stdout] --> src/moves/movegen.rs:468:8 [INFO] [stdout] | [INFO] [stdout] 468 | fn test_white_pawn_capture() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_side_valid` is never used [INFO] [stdout] --> src/moves/validate.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn is_side_valid(side:u8) -> bool { side == WHITE || side == BLACK } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_filerank_valid` is never used [INFO] [stdout] --> src/moves/validate.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn is_filerank_valid(fr: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_piece_valid` is never used [INFO] [stdout] --> src/moves/validate.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn is_piece_valid(pce: u8) -> bool { pce <= BK } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_piece` is never used [INFO] [stdout] --> src/moves/validate.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn is_piece(pce: u8) -> bool { (WP..=BK).contains(&pce) } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/game_board/board.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | self.pieces[usize::try_from(self.sq120(i)).unwrap()] = pieces::EMPTY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/moves/movegen.rs:669:18 [INFO] [stdout] | [INFO] [stdout] 669 | pces[usize::try_from(sq64_to_sq120[i]).unwrap()] = pieces::EMPTY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_move__does_not_exist` should have a snake case name [INFO] [stdout] --> src/moves/movegen.rs:858:8 [INFO] [stdout] | [INFO] [stdout] 858 | fn test_move__does_not_exist() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_move_does_not_exist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/utils/hashkeys.rs:53:66 [INFO] [stdout] | [INFO] [stdout] 53 | final_key ^= self.piece_keys[pieces::EMPTY as usize][usize::try_from(en_passant).unwrap()]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chess` (lib test) due to 3 previous errors; 39 warnings emitted [INFO] running `Command { std: "docker" "inspect" "bde910901c5cc94007a3401c735a76f15eb77fa6a35744ee5dd200da9f6f4353", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bde910901c5cc94007a3401c735a76f15eb77fa6a35744ee5dd200da9f6f4353", kill_on_drop: false }` [INFO] [stdout] bde910901c5cc94007a3401c735a76f15eb77fa6a35744ee5dd200da9f6f4353