[INFO] cloning repository https://github.com/LuigiVanin/chess-builder [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LuigiVanin/chess-builder" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuigiVanin%2Fchess-builder", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuigiVanin%2Fchess-builder'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 05f8e472e434751e6fc6ce74747339c17f6a67f9 [INFO] checking LuigiVanin/chess-builder/05f8e472e434751e6fc6ce74747339c17f6a67f9 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuigiVanin%2Fchess-builder" "/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/LuigiVanin/chess-builder on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-6-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/LuigiVanin/chess-builder [INFO] finished tweaking git repo https://github.com/LuigiVanin/chess-builder [INFO] tweaked toml for git repo https://github.com/LuigiVanin/chess-builder written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/LuigiVanin/chess-builder 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 46e398dc6ae53b05effd2b75a399f1ad8c6cba11d62223d1860d90f2023a2edb [INFO] running `Command { std: "docker" "start" "-a" "46e398dc6ae53b05effd2b75a399f1ad8c6cba11d62223d1860d90f2023a2edb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "46e398dc6ae53b05effd2b75a399f1ad8c6cba11d62223d1860d90f2023a2edb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46e398dc6ae53b05effd2b75a399f1ad8c6cba11d62223d1860d90f2023a2edb", kill_on_drop: false }` [INFO] [stdout] 46e398dc6ae53b05effd2b75a399f1ad8c6cba11d62223d1860d90f2023a2edb [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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 97a47392f0f4a53505b87a8e63f440ff2a157e984dc25a116ece7925be85ea20 [INFO] running `Command { std: "docker" "start" "-a" "97a47392f0f4a53505b87a8e63f440ff2a157e984dc25a116ece7925be85ea20", kill_on_drop: false }` [INFO] [stderr] Checking chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `PieceType::*` and `factory::PieceFactory` [INFO] [stdout] --> src/entities/board.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | factory::PieceFactory, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | helpers::{board_builder::BoardBuilder, Builder}, [INFO] [stdout] 5 | utils::{PieceColor::*, PieceType::*}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::bishop::BishopStrategy` [INFO] [stdout] --> src/entities/piece.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::strategies::bishop::BishopStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::hook::HookStrategy` [INFO] [stdout] --> src/entities/piece.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::strategies::hook::HookStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::king::KingStrategy` [INFO] [stdout] --> src/entities/piece.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::strategies::king::KingStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PieceType::*` and `factory::PieceFactory` [INFO] [stdout] --> src/entities/board.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | factory::PieceFactory, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | helpers::{board_builder::BoardBuilder, Builder}, [INFO] [stdout] 5 | utils::{PieceColor::*, PieceType::*}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::knight::KnightStrategy` [INFO] [stdout] --> src/entities/piece.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::strategies::knight::KnightStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::pun::PunStrategy` [INFO] [stdout] --> src/entities/piece.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::strategies::pun::PunStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::queen::QueenStrategy` [INFO] [stdout] --> src/entities/piece.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::strategies::queen::QueenStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PieceType::*` [INFO] [stdout] --> src/factory.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | utils::{PieceColor, PieceType, PieceType::*}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::bishop::BishopStrategy` [INFO] [stdout] --> src/entities/piece.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::strategies::bishop::BishopStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::PieceType::*` [INFO] [stdout] --> src/helpers/board_builder.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::PieceType::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::hook::HookStrategy` [INFO] [stdout] --> src/entities/piece.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::strategies::hook::HookStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/strategies/pun.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | piece::{self, Piece}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::king::KingStrategy` [INFO] [stdout] --> src/entities/piece.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::strategies::king::KingStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::knight::KnightStrategy` [INFO] [stdout] --> src/entities/piece.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::strategies::knight::KnightStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `board::Board` and `piece::Piece` [INFO] [stdout] --> src/main.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use entities::{board::Board, piece::Piece}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::pun::PunStrategy` [INFO] [stdout] --> src/entities/piece.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::strategies::pun::PunStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::strategies::queen::QueenStrategy` [INFO] [stdout] --> src/entities/piece.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::strategies::queen::QueenStrategy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PieceType::*` [INFO] [stdout] --> src/factory.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | utils::{PieceColor, PieceType, PieceType::*}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::PieceType::*` [INFO] [stdout] --> src/helpers/board_builder.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils::PieceType::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/strategies/pun.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | piece::{self, Piece}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `board::Board` and `piece::Piece` [INFO] [stdout] --> src/main.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use entities::{board::Board, piece::Piece}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `removed_piece` [INFO] [stdout] --> src/chess.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | let removed_piece = self.board.place_piece(piece.clone(), dst.0, dst.1); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_removed_piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `removed_piece` [INFO] [stdout] --> src/chess.rs:120:21 [INFO] [stdout] | [INFO] [stdout] 120 | let removed_piece = self.board.place_piece(piece.clone(), dst.0, dst.1); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_removed_piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `impl_map` is never read [INFO] [stdout] --> src/factory.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct PieceFactory { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 13 | impl_map: HashMap Piece>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `Hook`, `Bishop`, `King`, `new`, and `create` are never used [INFO] [stdout] --> src/factory.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl PieceFactory { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn Hook(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn Bishop(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn King(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn create(&self, t: PieceType, c: PieceColor) -> Piece { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `impl_map` is never read [INFO] [stdout] --> src/factory.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct PieceFactory { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 13 | impl_map: HashMap Piece>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `color` and `name` are never read [INFO] [stdout] --> src/chess.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 11 | color: PieceColor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dead_pieces`, `movement_cache`, `movement_history`, and `players` are never read [INFO] [stdout] --> src/chess.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chess { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 16 | board: Board, [INFO] [stdout] 17 | dead_pieces: [Vec; 2], // First index is player with white pieces, second is player with black pieces [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | movement_cache: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 19 | movement_history: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub players: [Player; 2], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `Hook`, `Bishop`, `King`, `new`, and `create` are never used [INFO] [stdout] --> src/factory.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl PieceFactory { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn Hook(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn Bishop(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn King(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn create(&self, t: PieceType, c: PieceColor) -> Piece { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `StandartBoard` and `move_piece` are never used [INFO] [stdout] --> src/chess.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Chess { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn StandartBoard() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn move_piece( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `color` and `name` are never read [INFO] [stdout] --> src/chess.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 11 | color: PieceColor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_piece`, `add_bishop`, `add_hook`, and `add_king` are never used [INFO] [stdout] --> src/helpers/board_builder.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl BoardBuilder { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_piece(mut self, piece: Piece, x: usize, y: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn add_bishop(mut self, coord: (usize, usize), color: PieceColor) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn add_hook(mut self, coord: (usize, usize), color: PieceColor) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn add_king(mut self, coord: (usize, usize), color: PieceColor) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dead_pieces`, `movement_cache`, `movement_history`, and `players` are never read [INFO] [stdout] --> src/chess.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Chess { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 16 | board: Board, [INFO] [stdout] 17 | dead_pieces: [Vec; 2], // First index is player with white pieces, second is player with black pieces [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | movement_cache: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 19 | movement_history: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub players: [Player; 2], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_movement` is never used [INFO] [stdout] --> src/utils.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn is_valid_movement(movs: Vec, dst: (usize, usize)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `StandartBoard` and `move_piece` are never used [INFO] [stdout] --> src/chess.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Chess { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn StandartBoard() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn move_piece( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_piece`, `add_bishop`, `add_hook`, and `add_king` are never used [INFO] [stdout] --> src/helpers/board_builder.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl BoardBuilder { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_piece(mut self, piece: Piece, x: usize, y: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn add_bishop(mut self, coord: (usize, usize), color: PieceColor) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn add_hook(mut self, coord: (usize, usize), color: PieceColor) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn add_king(mut self, coord: (usize, usize), color: PieceColor) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Knight` should have a snake case name [INFO] [stdout] --> src/factory.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn Knight(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `knight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_movement` is never used [INFO] [stdout] --> src/utils.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn is_valid_movement(movs: Vec, dst: (usize, usize)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Queen` should have a snake case name [INFO] [stdout] --> src/factory.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn Queen(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `queen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Pun` should have a snake case name [INFO] [stdout] --> src/factory.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Pun(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `pun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Knight` should have a snake case name [INFO] [stdout] --> src/factory.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn Knight(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `knight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Hook` should have a snake case name [INFO] [stdout] --> src/factory.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn Hook(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Queen` should have a snake case name [INFO] [stdout] --> src/factory.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn Queen(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `queen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Bishop` should have a snake case name [INFO] [stdout] --> src/factory.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn Bishop(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `bishop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `King` should have a snake case name [INFO] [stdout] --> src/factory.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn King(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `king` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Pun` should have a snake case name [INFO] [stdout] --> src/factory.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn Pun(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `pun` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `StandartBoard` should have a snake case name [INFO] [stdout] --> src/chess.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn StandartBoard() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `standart_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Hook` should have a snake case name [INFO] [stdout] --> src/factory.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn Hook(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hook` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `Bishop` should have a snake case name [INFO] [stdout] --> src/factory.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn Bishop(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `bishop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `TestBoard` should have a snake case name [INFO] [stdout] --> src/chess.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn TestBoard() -> Self { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `test_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `King` should have a snake case name [INFO] [stdout] --> src/factory.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn King(color: PieceColor) -> Piece { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `king` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `StandartBoard` should have a snake case name [INFO] [stdout] --> src/chess.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn StandartBoard() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `standart_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `TestBoard` should have a snake case name [INFO] [stdout] --> src/chess.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn TestBoard() -> Self { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `test_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] running `Command { std: "docker" "inspect" "97a47392f0f4a53505b87a8e63f440ff2a157e984dc25a116ece7925be85ea20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97a47392f0f4a53505b87a8e63f440ff2a157e984dc25a116ece7925be85ea20", kill_on_drop: false }` [INFO] [stdout] 97a47392f0f4a53505b87a8e63f440ff2a157e984dc25a116ece7925be85ea20