[INFO] cloning repository https://github.com/LelouchFR/chess-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LelouchFR/chess-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLelouchFR%2Fchess-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLelouchFR%2Fchess-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d495711c267cba30c0f8dd4f583073f94a42b135 [INFO] checking LelouchFR/chess-rs/d495711c267cba30c0f8dd4f583073f94a42b135 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLelouchFR%2Fchess-rs" "/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/LelouchFR/chess-rs 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/LelouchFR/chess-rs [INFO] finished tweaking git repo https://github.com/LelouchFR/chess-rs [INFO] tweaked toml for git repo https://github.com/LelouchFR/chess-rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/LelouchFR/chess-rs 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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e37430efdf2387ecb73d3249dfb8314276a3bbab7f9bff650b321d5b2befc68d [INFO] running `Command { std: "docker" "start" "-a" "e37430efdf2387ecb73d3249dfb8314276a3bbab7f9bff650b321d5b2befc68d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e37430efdf2387ecb73d3249dfb8314276a3bbab7f9bff650b321d5b2befc68d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e37430efdf2387ecb73d3249dfb8314276a3bbab7f9bff650b321d5b2befc68d", kill_on_drop: false }` [INFO] [stdout] e37430efdf2387ecb73d3249dfb8314276a3bbab7f9bff650b321d5b2befc68d [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b0e15462bda2f020941b33e66549dd89bb0e62acb32c7d1c226f6e3691117c89 [INFO] running `Command { std: "docker" "start" "-a" "b0e15462bda2f020941b33e66549dd89bb0e62acb32c7d1c226f6e3691117c89", 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 libc v0.2.153 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling rustversion v1.0.15 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking either v1.11.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking castaway v0.2.2 [INFO] [stderr] Checking compact_str v0.7.1 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking lru v0.12.3 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Compiling strum_macros v0.26.2 [INFO] [stderr] Compiling stability v0.2.0 [INFO] [stderr] Checking strum v0.26.2 [INFO] [stderr] Checking ratatui v0.26.2 [INFO] [stderr] Checking chess-rs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/board.rs (1 fix) [INFO] [stderr] Fixed src/engine.rs (3 fixes) [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/engine.rs:214:14 [INFO] [stdout] | [INFO] [stdout] 214 | let (row, col) = from; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/engine.rs:214:19 [INFO] [stdout] | [INFO] [stdout] 214 | let (row, col) = from; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valid_moves` [INFO] [stdout] --> src/engine.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let valid_moves: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_valid_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `directions` [INFO] [stdout] --> src/engine.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let directions = [(1, 0), (-1, 0), (0, 1), (0, -1)]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_directions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/engine.rs:313:34 [INFO] [stdout] | [INFO] [stdout] 313 | fn is_valid_king_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/engine.rs:313:50 [INFO] [stdout] | [INFO] [stdout] 313 | fn is_valid_king_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `evaluate` is never used [INFO] [stdout] --> src/engine.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Engine { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn evaluate(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/engine.rs:214:14 [INFO] [stdout] | [INFO] [stdout] 214 | let (row, col) = from; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/engine.rs:214:19 [INFO] [stdout] | [INFO] [stdout] 214 | let (row, col) = from; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valid_moves` [INFO] [stdout] --> src/engine.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let valid_moves: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_valid_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `directions` [INFO] [stdout] --> src/engine.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let directions = [(1, 0), (-1, 0), (0, 1), (0, -1)]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_directions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/engine.rs:313:34 [INFO] [stdout] | [INFO] [stdout] 313 | fn is_valid_king_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/engine.rs:313:50 [INFO] [stdout] | [INFO] [stdout] 313 | fn is_valid_king_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `default`, `create`, `scan`, `get_piece`, and `set_piece` are never used [INFO] [stdout] --> src/board.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 14 | pub fn default() -> Board { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn create(&self, custom_board: Vec>>) -> Board { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn scan(&self, engine: &Engine) -> Vec>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn get_piece(&self, from: Position) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn set_piece(&mut self, from: Position, piece: Option) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Black` is never constructed [INFO] [stdout] --> src/engine.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Player { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 9 | White, [INFO] [stdout] 10 | Black, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_player` and `move_count` are never read [INFO] [stdout] --> src/engine.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Engine { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | pub state: Board, [INFO] [stdout] 15 | pub current_player: Player, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub move_count: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `make_move` and `evaluate` are never used [INFO] [stdout] --> src/engine.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn make_move(&mut self, from: Position, to: Position) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn evaluate(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/engine.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 54 | pub fn get_valid_moves(&self, from: Position, piece: Piece) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn get_valid_pawn_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn get_valid_bishop_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn get_valid_knight_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn get_valid_rook_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | fn get_valid_queen_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn get_valid_king_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/engine.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 224 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 225 | pub fn is_valid_move(&self, from: Position, to: Position, piece: Piece) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | fn is_valid_pawn_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | fn is_valid_bishop_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | fn is_valid_knight_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | fn is_valid_rook_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | fn is_valid_queen_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | fn is_valid_king_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Position` is never used [INFO] [stdout] --> src/utils.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub type Position = (usize, usize); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_valid_position` is never used [INFO] [stdout] --> src/utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn get_valid_position(position: (isize, isize)) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.02s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking chess-rs v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:63:44 [INFO] [stdout] | [INFO] [stdout] 63 | engine.get_valid_moves((6, 0), Piece::Pawn) [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:65:73 [INFO] [stdout] | [INFO] [stdout] 65 | let _ = engine.make_move((6, 0), engine.get_valid_moves((6, 0), Piece::Pawn)[1]); // move pawn from 1up [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:69:44 [INFO] [stdout] | [INFO] [stdout] 69 | engine.get_valid_moves((1, 1), Piece::Pawn) [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:71:73 [INFO] [stdout] | [INFO] [stdout] 71 | let _ = engine.make_move((1, 1), engine.get_valid_moves((1, 1), Piece::Pawn)[1]); // move pawn from 1up [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:75:44 [INFO] [stdout] | [INFO] [stdout] 75 | engine.get_valid_moves((4, 0), Piece::Pawn) [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:78:73 [INFO] [stdout] | [INFO] [stdout] 78 | let _ = engine.make_move((4, 0), engine.get_valid_moves((4, 0), Piece::Pawn)[1]); // eating_pawn [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:82:44 [INFO] [stdout] | [INFO] [stdout] 82 | engine.get_valid_moves((0, 1), Piece::Knight) [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:93:44 [INFO] [stdout] | [INFO] [stdout] 93 | engine.get_valid_moves((6, 0), Piece::Pawn) [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:95:73 [INFO] [stdout] | [INFO] [stdout] 95 | let _ = engine.make_move((6, 0), engine.get_valid_moves((6, 0), Piece::Pawn)[1]); // move pawn from 1up [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:99:44 [INFO] [stdout] | [INFO] [stdout] 99 | engine.get_valid_moves((1, 1), Piece::Pawn) [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:102:73 [INFO] [stdout] | [INFO] [stdout] 102 | let _ = engine.make_move((1, 1), engine.get_valid_moves((1, 1), Piece::Pawn)[1]); // eating_pawn [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Piece` [INFO] [stdout] --> src/main.rs:106:44 [INFO] [stdout] | [INFO] [stdout] 106 | engine.get_valid_moves((4, 0), Piece::Pawn) [INFO] [stdout] | ^^^^^ use of undeclared type `Piece` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 54 + use crate::pieces::Piece; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/engine.rs:214:14 [INFO] [stdout] | [INFO] [stdout] 214 | let (row, col) = from; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/engine.rs:214:19 [INFO] [stdout] | [INFO] [stdout] 214 | let (row, col) = from; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valid_moves` [INFO] [stdout] --> src/engine.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let valid_moves: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_valid_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `directions` [INFO] [stdout] --> src/engine.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let directions = [(1, 0), (-1, 0), (0, 1), (0, -1)]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_directions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/engine.rs:313:34 [INFO] [stdout] | [INFO] [stdout] 313 | fn is_valid_king_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/engine.rs:313:50 [INFO] [stdout] | [INFO] [stdout] 313 | fn is_valid_king_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `default`, `create`, `scan`, `get_piece`, and `set_piece` are never used [INFO] [stdout] --> src/board.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Board { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 14 | pub fn default() -> Board { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn create(&self, custom_board: Vec>>) -> Board { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn scan(&self, engine: &Engine) -> Vec>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn get_piece(&self, from: Position) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn set_piece(&mut self, from: Position, piece: Option) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Black` is never constructed [INFO] [stdout] --> src/engine.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Player { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 9 | White, [INFO] [stdout] 10 | Black, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `current_player` and `move_count` are never read [INFO] [stdout] --> src/engine.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Engine { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | pub state: Board, [INFO] [stdout] 15 | pub current_player: Player, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub move_count: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `make_move` and `evaluate` are never used [INFO] [stdout] --> src/engine.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn make_move(&mut self, from: Position, to: Position) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn evaluate(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/engine.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 54 | pub fn get_valid_moves(&self, from: Position, piece: Piece) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn get_valid_pawn_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | fn get_valid_bishop_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn get_valid_knight_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn get_valid_rook_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | fn get_valid_queen_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | fn get_valid_king_move(&self, from: Position) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/engine.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 224 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 225 | pub fn is_valid_move(&self, from: Position, to: Position, piece: Piece) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | fn is_valid_pawn_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | fn is_valid_bishop_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | fn is_valid_knight_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | fn is_valid_rook_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | fn is_valid_queen_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | fn is_valid_king_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Position` is never used [INFO] [stdout] --> src/utils.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub type Position = (usize, usize); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_valid_position` is never used [INFO] [stdout] --> src/utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn get_valid_position(position: (isize, isize)) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/engine.rs:214:14 [INFO] [stdout] | [INFO] [stdout] 214 | let (row, col) = from; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/engine.rs:214:19 [INFO] [stdout] | [INFO] [stdout] 214 | let (row, col) = from; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valid_moves` [INFO] [stdout] --> src/engine.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let valid_moves: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_valid_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `directions` [INFO] [stdout] --> src/engine.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | let directions = [(1, 0), (-1, 0), (0, 1), (0, -1)]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_directions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> src/engine.rs:313:34 [INFO] [stdout] | [INFO] [stdout] 313 | fn is_valid_king_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> src/engine.rs:313:50 [INFO] [stdout] | [INFO] [stdout] 313 | fn is_valid_king_move(&self, from: Position, to: Position) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 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-rs` (bin "chess-rs" test) due to 13 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" "b0e15462bda2f020941b33e66549dd89bb0e62acb32c7d1c226f6e3691117c89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0e15462bda2f020941b33e66549dd89bb0e62acb32c7d1c226f6e3691117c89", kill_on_drop: false }` [INFO] [stdout] b0e15462bda2f020941b33e66549dd89bb0e62acb32c7d1c226f6e3691117c89