[INFO] cloning repository https://github.com/TriForMine/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/TriForMine/chess-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTriForMine%2Fchess-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTriForMine%2Fchess-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 54fa8bbace2005adcc32e204d3c47f0f46a08a41 [INFO] checking TriForMine/chess-engine/54fa8bbace2005adcc32e204d3c47f0f46a08a41 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTriForMine%2Fchess-engine" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TriForMine/chess-engine on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TriForMine/chess-engine [INFO] finished tweaking git repo https://github.com/TriForMine/chess-engine [INFO] tweaked toml for git repo https://github.com/TriForMine/chess-engine written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/TriForMine/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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c82f07809d1f7c427e5d084ea1bb1d1aee4dda4e42d9f6acdfda9940935ffd5c [INFO] running `Command { std: "docker" "start" "-a" "c82f07809d1f7c427e5d084ea1bb1d1aee4dda4e42d9f6acdfda9940935ffd5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c82f07809d1f7c427e5d084ea1bb1d1aee4dda4e42d9f6acdfda9940935ffd5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c82f07809d1f7c427e5d084ea1bb1d1aee4dda4e42d9f6acdfda9940935ffd5c", kill_on_drop: false }` [INFO] [stdout] c82f07809d1f7c427e5d084ea1bb1d1aee4dda4e42d9f6acdfda9940935ffd5c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dccd9d37e5f4f8720d38ac0c1d29aa89942e1530cd3690f535b306a65490334e [INFO] running `Command { std: "docker" "start" "-a" "dccd9d37e5f4f8720d38ac0c1d29aa89942e1530cd3690f535b306a65490334e", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling crossbeam-epoch v0.9.15 [INFO] [stderr] Compiling rustix v0.38.21 [INFO] [stderr] Checking linux-raw-sys v0.4.11 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling rayon-core v1.12.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking is-terminal v0.4.9 [INFO] [stderr] Checking colored v2.0.4 [INFO] [stderr] Checking rayon v1.8.0 [INFO] [stderr] Checking chess-engine v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/move.rs (2 fixes) [INFO] [stderr] Fixed src/cache/bishop.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stderr] Fixed src/evaluate.rs (2 fixes) [INFO] [stderr] Fixed src/cache/rook.rs (1 fix) [INFO] [stderr] Fixed src/board.rs (1 fix) [INFO] [stdout] warning: unused variable: `is_checkmate` [INFO] [stdout] --> src/board.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | let is_checkmate = self.is_checkmate(self.turn); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_checkmate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_stalemate` [INFO] [stdout] --> src/board.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | let is_stalemate = self.is_stalemate(self.turn); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stalemate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fen` [INFO] [stdout] --> src/engine.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let fen = self.board.to_fen(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fen` [INFO] [stdout] --> src/engine.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let fen = self.board.to_fen(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let m = engine.run(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from`, `from_bitboard`, `trailing_zeros`, `in_bounds`, and `set_index` are never used [INFO] [stdout] --> src/bitboard.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl BitBoard { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn from(board: u64) -> BitBoard { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn from_bitboard(bit_board: BitBoard) -> BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn trailing_zeros(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn in_bounds(coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn set_index(&mut self, index: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/board.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn get_current_player(&self) -> &OneSideBoard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn is_draw(&self, color: bool) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | pub fn get_piece_index(&self, index: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | pub fn has_piece(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn is_white(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn is_black(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn is_empty(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn is_opponent(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_piece_index` and `has_piece` are never used [INFO] [stdout] --> src/board.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 417 | impl OneSideBoard { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 443 | pub fn get_piece_index(&self, index: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub fn has_piece(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `in_bounds` is never used [INFO] [stdout] --> src/coord.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Coord { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn in_bounds(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_fen` is never used [INFO] [stdout] --> src/engine.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Engine { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn from_fen(fen: &str) -> Engine { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_capture` is never used [INFO] [stdout] --> src/move.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Move { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn is_capture(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_index` is never used [INFO] [stdout] --> src/piece.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl PieceEnum { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn to_index(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/piece.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl Piece { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn is_black(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn is_pawn(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn is_knight(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn is_bishop(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn is_rook(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn is_queen(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn is_king(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/evaluate.rs (1 fix) [INFO] [stdout] warning: unused variable: `is_checkmate` [INFO] [stdout] --> src/board.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | let is_checkmate = self.is_checkmate(self.turn); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_checkmate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.20s [INFO] [stdout] warning: unused variable: `is_stalemate` [INFO] [stdout] --> src/board.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | let is_stalemate = self.is_stalemate(self.turn); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stalemate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fen` [INFO] [stdout] --> src/engine.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let fen = self.board.to_fen(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fen` [INFO] [stdout] --> src/engine.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let fen = self.board.to_fen(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let m = engine.run(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from`, `from_bitboard`, `trailing_zeros`, `in_bounds`, and `set_index` are never used [INFO] [stdout] --> src/bitboard.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl BitBoard { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn from(board: u64) -> BitBoard { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn from_bitboard(bit_board: BitBoard) -> BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn trailing_zeros(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn in_bounds(coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn set_index(&mut self, index: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/board.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn get_current_player(&self) -> &OneSideBoard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn is_draw(&self, color: bool) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | pub fn get_piece_index(&self, index: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | pub fn has_piece(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn is_white(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn is_black(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn is_empty(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn is_opponent(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_piece_index` and `has_piece` are never used [INFO] [stdout] --> src/board.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 417 | impl OneSideBoard { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 443 | pub fn get_piece_index(&self, index: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub fn has_piece(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `in_bounds` is never used [INFO] [stdout] --> src/coord.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Coord { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn in_bounds(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_fen` is never used [INFO] [stdout] --> src/engine.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Engine { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn from_fen(fen: &str) -> Engine { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_capture` is never used [INFO] [stdout] --> src/move.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Move { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn is_capture(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_index` is never used [INFO] [stdout] --> src/piece.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl PieceEnum { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn to_index(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/piece.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl Piece { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn is_black(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn is_pawn(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn is_knight(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn is_bishop(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn is_rook(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn is_queen(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn is_king(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking chess-engine v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Board` [INFO] [stdout] --> src/evaluate.rs:147:21 [INFO] [stdout] | [INFO] [stdout] 147 | let board = Board::new_game(); [INFO] [stdout] | ^^^^^ use of undeclared type `Board` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 142 + use crate::board::Board; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/evaluate.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_checkmate` [INFO] [stdout] --> src/board.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | let is_checkmate = self.is_checkmate(self.turn); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_checkmate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_stalemate` [INFO] [stdout] --> src/board.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | let is_stalemate = self.is_stalemate(self.turn); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stalemate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fen` [INFO] [stdout] --> src/engine.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let fen = self.board.to_fen(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fen` [INFO] [stdout] --> src/engine.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let fen = self.board.to_fen(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let m = engine.run(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from`, `from_bitboard`, `trailing_zeros`, `in_bounds`, and `set_index` are never used [INFO] [stdout] --> src/bitboard.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl BitBoard { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn from(board: u64) -> BitBoard { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn from_bitboard(bit_board: BitBoard) -> BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn trailing_zeros(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn in_bounds(coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn set_index(&mut self, index: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/board.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn get_current_player(&self) -> &OneSideBoard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn is_draw(&self, color: bool) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | pub fn get_piece_index(&self, index: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | pub fn has_piece(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn is_white(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn is_black(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn is_empty(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 297 | pub fn is_opponent(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_piece_index` and `has_piece` are never used [INFO] [stdout] --> src/board.rs:443:12 [INFO] [stdout] | [INFO] [stdout] 417 | impl OneSideBoard { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 443 | pub fn get_piece_index(&self, index: u8) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub fn has_piece(&self, coord: Coord) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `in_bounds` is never used [INFO] [stdout] --> src/coord.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Coord { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn in_bounds(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_fen` is never used [INFO] [stdout] --> src/engine.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Engine { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn from_fen(fen: &str) -> Engine { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_capture` is never used [INFO] [stdout] --> src/move.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Move { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn is_capture(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_index` is never used [INFO] [stdout] --> src/piece.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl PieceEnum { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn to_index(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/piece.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl Piece { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn is_black(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn is_pawn(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn is_knight(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn is_bishop(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn is_rook(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn is_queen(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn is_king(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_checkmate` [INFO] [stdout] --> src/board.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | let is_checkmate = self.is_checkmate(self.turn); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_checkmate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_stalemate` [INFO] [stdout] --> src/board.rs:347:13 [INFO] [stdout] | [INFO] [stdout] 347 | let is_stalemate = self.is_stalemate(self.turn); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_stalemate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fen` [INFO] [stdout] --> src/engine.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let fen = self.board.to_fen(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fen` [INFO] [stdout] --> src/engine.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | let fen = self.board.to_fen(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let m = engine.run(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chess-engine` (bin "chess-engine" test) due to 2 previous errors; 6 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "dccd9d37e5f4f8720d38ac0c1d29aa89942e1530cd3690f535b306a65490334e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dccd9d37e5f4f8720d38ac0c1d29aa89942e1530cd3690f535b306a65490334e", kill_on_drop: false }` [INFO] [stdout] dccd9d37e5f4f8720d38ac0c1d29aa89942e1530cd3690f535b306a65490334e