[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] building UBakaliya/Chess against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUBakaliya%2FChess" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/UBakaliya/Chess on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-6-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8c40d0b081e75fcb8f6b575475c502ada7757469c4bddbe34d5167872b6d2ddb [INFO] running `Command { std: "docker" "start" "-a" "8c40d0b081e75fcb8f6b575475c502ada7757469c4bddbe34d5167872b6d2ddb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c40d0b081e75fcb8f6b575475c502ada7757469c4bddbe34d5167872b6d2ddb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c40d0b081e75fcb8f6b575475c502ada7757469c4bddbe34d5167872b6d2ddb", kill_on_drop: false }` [INFO] [stdout] 8c40d0b081e75fcb8f6b575475c502ada7757469c4bddbe34d5167872b6d2ddb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72e05faa37ca641862d4a84bda8116096d0a0b1dbdd858fedef59c15b2e4928a [INFO] running `Command { std: "docker" "start" "-a" "72e05faa37ca641862d4a84bda8116096d0a0b1dbdd858fedef59c15b2e4928a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling crossterm v0.22.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling 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 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.51s [INFO] running `Command { std: "docker" "inspect" "72e05faa37ca641862d4a84bda8116096d0a0b1dbdd858fedef59c15b2e4928a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72e05faa37ca641862d4a84bda8116096d0a0b1dbdd858fedef59c15b2e4928a", kill_on_drop: false }` [INFO] [stdout] 72e05faa37ca641862d4a84bda8116096d0a0b1dbdd858fedef59c15b2e4928a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f559fc817cbb66a791f9e8433e9c13b3be6dbb05936a3183e3fd96770cffecb [INFO] running `Command { std: "docker" "start" "-a" "0f559fc817cbb66a791f9e8433e9c13b3be6dbb05936a3183e3fd96770cffecb", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] running `Command { std: "docker" "inspect" "0f559fc817cbb66a791f9e8433e9c13b3be6dbb05936a3183e3fd96770cffecb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f559fc817cbb66a791f9e8433e9c13b3be6dbb05936a3183e3fd96770cffecb", kill_on_drop: false }` [INFO] [stdout] 0f559fc817cbb66a791f9e8433e9c13b3be6dbb05936a3183e3fd96770cffecb