[INFO] cloning repository https://github.com/UBakaliya/Chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/UBakaliya/Chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUBakaliya%2FChess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUBakaliya%2FChess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ae9c4756099756a755002a460f94c18a9f0a74fe [INFO] checking UBakaliya/Chess against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUBakaliya%2FChess" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/UBakaliya/Chess on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/UBakaliya/Chess [INFO] finished tweaking git repo https://github.com/UBakaliya/Chess [INFO] tweaked toml for git repo https://github.com/UBakaliya/Chess written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/UBakaliya/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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crossterm v0.22.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 58814c00d3db34faa2ab7dcea47f0fc77d6572680011a1645bb16a3b7b58d67b [INFO] running `Command { std: "docker" "start" "-a" "58814c00d3db34faa2ab7dcea47f0fc77d6572680011a1645bb16a3b7b58d67b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58814c00d3db34faa2ab7dcea47f0fc77d6572680011a1645bb16a3b7b58d67b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58814c00d3db34faa2ab7dcea47f0fc77d6572680011a1645bb16a3b7b58d67b", kill_on_drop: false }` [INFO] [stdout] 58814c00d3db34faa2ab7dcea47f0fc77d6572680011a1645bb16a3b7b58d67b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 128afb0d52944e318dc7107cd8b42af8dd7163a3fcd9ced51e0816b30eb8b66a [INFO] running `Command { std: "docker" "start" "-a" "128afb0d52944e318dc7107cd8b42af8dd7163a3fcd9ced51e0816b30eb8b66a", kill_on_drop: false }` [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking crossterm v0.22.1 [INFO] [stderr] Checking rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::check_moves::*` [INFO] [stdout] --> src/utils/game.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::check_moves::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/utils/game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::display` [INFO] [stdout] --> src/utils/game.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::display; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::check_moves::*` [INFO] [stdout] --> src/utils/game.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::check_moves::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/utils/game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::display` [INFO] [stdout] --> src/utils/game.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use super::display; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fromX` [INFO] [stdout] --> src/utils/game.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_fromX` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fromY` [INFO] [stdout] --> src/utils/game.rs:97:32 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_fromY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `toX` [INFO] [stdout] --> src/utils/game.rs:97:44 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_toX` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `toY` [INFO] [stdout] --> src/utils/game.rs:97:55 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_toY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rook_move` is never used [INFO] [stdout] --> src/utils/check_moves.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn rook_move() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `board` is never used [INFO] [stdout] --> src/utils/display.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn board(board: Board) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `players_pieces` is never used [INFO] [stdout] --> src/utils/display.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn players_pieces(player1: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invalid_choice_message` is never used [INFO] [stdout] --> src/utils/display.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn invalid_choice_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instructions` is never used [INFO] [stdout] --> src/utils/display.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn instructions() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `menu` is never used [INFO] [stdout] --> src/utils/display.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn menu() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quite_game` is never used [INFO] [stdout] --> src/utils/display.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn quite_game() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/utils/types.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Piece { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | Pawn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Knight, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Bishop, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | Rook, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Queen, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | King, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None`, `Black`, and `White` are never constructed [INFO] [stdout] --> src/utils/types.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 14 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Black, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | White, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_occupied` are never used [INFO] [stdout] --> src/utils/types.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Square { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(p: Piece, c: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn is_occupied(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BOARD_SIZE` is never used [INFO] [stdout] --> src/utils/types.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub const BOARD_SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Board` is never used [INFO] [stdout] --> src/utils/types.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub type Board = [[Square; BOARD_SIZE]; BOARD_SIZE]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_empty_board` is never used [INFO] [stdout] --> src/utils/game.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn create_empty_board() -> Board { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reset_board` is never used [INFO] [stdout] --> src/utils/game.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn reset_board(board: &mut Board) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_black_piece` is never used [INFO] [stdout] --> src/utils/game.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn get_black_piece(piece: Piece) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_white_piece` is never used [INFO] [stdout] --> src/utils/game.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn get_white_piece(piece: Piece) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_piece` is never used [INFO] [stdout] --> src/utils/game.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_piece(board_piece: Square) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_table` is never used [INFO] [stdout] --> src/utils/game.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn set_table() -> Board { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_piece` is never used [INFO] [stdout] --> src/utils/game.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fromX` should have a snake case name [INFO] [stdout] --> src/utils/game.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `from_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fromY` should have a snake case name [INFO] [stdout] --> src/utils/game.rs:97:32 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `from_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toX` should have a snake case name [INFO] [stdout] --> src/utils/game.rs:97:44 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `to_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toY` should have a snake case name [INFO] [stdout] --> src/utils/game.rs:97:55 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `to_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fromX` [INFO] [stdout] --> src/utils/game.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_fromX` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fromY` [INFO] [stdout] --> src/utils/game.rs:97:32 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_fromY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `toX` [INFO] [stdout] --> src/utils/game.rs:97:44 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_toX` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `toY` [INFO] [stdout] --> src/utils/game.rs:97:55 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_toY` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rook_move` is never used [INFO] [stdout] --> src/utils/check_moves.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn rook_move() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `board` is never used [INFO] [stdout] --> src/utils/display.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn board(board: Board) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `players_pieces` is never used [INFO] [stdout] --> src/utils/display.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn players_pieces(player1: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `invalid_choice_message` is never used [INFO] [stdout] --> src/utils/display.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn invalid_choice_message() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `instructions` is never used [INFO] [stdout] --> src/utils/display.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn instructions() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `menu` is never used [INFO] [stdout] --> src/utils/display.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn menu() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quite_game` is never used [INFO] [stdout] --> src/utils/display.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn quite_game() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/utils/types.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Piece { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | Pawn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Knight, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Bishop, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | Rook, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Queen, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | King, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `None`, `Black`, and `White` are never constructed [INFO] [stdout] --> src/utils/types.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 14 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Black, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | White, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Color` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_occupied` are never used [INFO] [stdout] --> src/utils/types.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Square { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 26 | pub fn new(p: Piece, c: Color) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn is_occupied(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BOARD_SIZE` is never used [INFO] [stdout] --> src/utils/types.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub const BOARD_SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Board` is never used [INFO] [stdout] --> src/utils/types.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | pub type Board = [[Square; BOARD_SIZE]; BOARD_SIZE]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_empty_board` is never used [INFO] [stdout] --> src/utils/game.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn create_empty_board() -> Board { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reset_board` is never used [INFO] [stdout] --> src/utils/game.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn reset_board(board: &mut Board) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_black_piece` is never used [INFO] [stdout] --> src/utils/game.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn get_black_piece(piece: Piece) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_white_piece` is never used [INFO] [stdout] --> src/utils/game.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn get_white_piece(piece: Piece) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_piece` is never used [INFO] [stdout] --> src/utils/game.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_piece(board_piece: Square) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_table` is never used [INFO] [stdout] --> src/utils/game.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn set_table() -> Board { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_piece` is never used [INFO] [stdout] --> src/utils/game.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fromX` should have a snake case name [INFO] [stdout] --> src/utils/game.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `from_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fromY` should have a snake case name [INFO] [stdout] --> src/utils/game.rs:97:32 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `from_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toX` should have a snake case name [INFO] [stdout] --> src/utils/game.rs:97:44 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `to_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `toY` should have a snake case name [INFO] [stdout] --> src/utils/game.rs:97:55 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn move_piece(fromX: char, fromY: i32, toX: char, toY: i32) -> bool { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `to_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.66s [INFO] running `Command { std: "docker" "inspect" "128afb0d52944e318dc7107cd8b42af8dd7163a3fcd9ced51e0816b30eb8b66a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "128afb0d52944e318dc7107cd8b42af8dd7163a3fcd9ced51e0816b30eb8b66a", kill_on_drop: false }` [INFO] [stdout] 128afb0d52944e318dc7107cd8b42af8dd7163a3fcd9ced51e0816b30eb8b66a