[INFO] cloning repository https://github.com/modischca/rust-chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/modischca/rust-chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmodischca%2Frust-chess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmodischca%2Frust-chess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 810cc6beebad49666bfaef356daaba85f12f438c [INFO] checking modischca/rust-chess/810cc6beebad49666bfaef356daaba85f12f438c against master#3b1b0ef4d80d3117924d91352c8b6ca528708b3c for pr-152996 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmodischca%2Frust-chess" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/modischca/rust-chess [INFO] finished tweaking git repo https://github.com/modischca/rust-chess [INFO] tweaked toml for git repo https://github.com/modischca/rust-chess written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/modischca/rust-chess on toolchain 3b1b0ef4d80d3117924d91352c8b6ca528708b3c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3b1b0ef4d80d3117924d91352c8b6ca528708b3c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/modischca/rust-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" "+3b1b0ef4d80d3117924d91352c8b6ca528708b3c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded openssl-sys v0.9.110 [INFO] [stderr] Downloaded openssl v0.10.74 [INFO] [stderr] Downloaded syn v2.0.107 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3b1b0ef4d80d3117924d91352c8b6ca528708b3c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d379ccf7334ef2da1824b5df0c24faf5a698a4060a04115a77739c210815a99 [INFO] running `Command { std: "docker" "start" "-a" "5d379ccf7334ef2da1824b5df0c24faf5a698a4060a04115a77739c210815a99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d379ccf7334ef2da1824b5df0c24faf5a698a4060a04115a77739c210815a99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d379ccf7334ef2da1824b5df0c24faf5a698a4060a04115a77739c210815a99", kill_on_drop: false }` [INFO] [stdout] 5d379ccf7334ef2da1824b5df0c24faf5a698a4060a04115a77739c210815a99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3b1b0ef4d80d3117924d91352c8b6ca528708b3c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b2f9cdb352eb6d5937776f5be54272807716710d4e8ba86c3b617063a3e21c2 [INFO] running `Command { std: "docker" "start" "-a" "6b2f9cdb352eb6d5937776f5be54272807716710d4e8ba86c3b617063a3e21c2", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Checking litemap v0.8.1 [INFO] [stderr] Checking writeable v0.6.2 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Compiling openssl-sys v0.9.110 [INFO] [stderr] Compiling openssl v0.10.74 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking iri-string v0.7.9 [INFO] [stderr] Checking rustls-pki-types v1.13.0 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Compiling syn v2.0.107 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking indexmap v2.12.0 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking reqwest v0.12.24 [INFO] [stderr] Checking chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/game/model.rs:262:34 [INFO] [stdout] | [INFO] [stdout] 262 | fen.push_str(("1")) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 262 - fen.push_str(("1")) [INFO] [stdout] 262 + fen.push_str("1" ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game/model.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | if (game.current_player == Color::Black) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 271 - if (game.current_player == Color::Black) { [INFO] [stdout] 271 + if game.current_player == Color::Black { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game/model.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 278 | if (castle_rights.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - if (castle_rights.len() == 0) { [INFO] [stdout] 278 + if castle_rights.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `Game`, and `PieceType` [INFO] [stdout] --> src/tests/initial_state_tests.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::{Color, Game, PieceType}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod initial_state_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ruleengine` [INFO] [stdout] --> src/tests/initial_state_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ruleengine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod initial_state_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tests/initial_state_tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod initial_state_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::PartialEq` [INFO] [stdout] --> src/tests/rule_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::PartialEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod rule_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::errors::GameErr` [INFO] [stdout] --> src/tests/rule_tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::errors::GameErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod rule_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Game`, `PieceType`, and `Piece` [INFO] [stdout] --> src/tests/rule_tests.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::game::{Game, Piece, PieceType}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod rule_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::errors::GameErr` [INFO] [stdout] --> src/tests/knight_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::game::errors::GameErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | mod knight_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::Game` [INFO] [stdout] --> src/tests/knight_tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::Game; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | mod knight_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::errors::GameErr` [INFO] [stdout] --> src/tests/bishop_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::game::errors::GameErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod bishop_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `Game`, and `PieceType` [INFO] [stdout] --> src/tests/bishop_tests.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::{Color, Game, PieceType}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod bishop_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ruleengine` [INFO] [stdout] --> src/tests/bishop_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ruleengine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod bishop_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::Game` [INFO] [stdout] --> src/tests/game_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::game::Game; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | mod game_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::Game` [INFO] [stdout] --> src/tests/castling_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::game::Game; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | mod castling_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::errors::GameErr` [INFO] [stdout] --> src/tests/queen_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::game::errors::GameErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | mod queen_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::Game` [INFO] [stdout] --> src/tests/queen_tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::Game; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | mod queen_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::errors::GameErr` [INFO] [stdout] --> src/tests/king_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::game::errors::GameErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | mod king_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::Game` [INFO] [stdout] --> src/tests/king_tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::Game; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | mod king_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Game` [INFO] [stdout] --> src/tests/half_time_move_tests.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Game}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | mod half_time_move_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::errors::GameErr` [INFO] [stdout] --> src/tests/half_time_move_tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::errors::GameErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/tests/mod.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | mod half_time_move_tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine/ruleset_pawn.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | if (target.color != piece_from.color) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if (target.color != piece_from.color) { [INFO] [stdout] 27 + if target.color != piece_from.color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/ruleengine/ruleset_knight.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/ruleengine/ruleset_bishop.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Game` [INFO] [stdout] --> src/ruleengine/ruleset_bishop.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::game::{Color, Game, Piece}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_piece_at_index` [INFO] [stdout] --> src/ruleengine/ruleset_bishop.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ruleengine::{get_piece_at_index, get_piece_at_pos}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | if (piece_from.color == piece_to.color) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - if (piece_from.color == piece_to.color) { [INFO] [stdout] 46 + if piece_from.color == piece_to.color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | ...if (from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("K") && current_player == Color::White) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - if (from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("K") && current_player == Color::White) { [INFO] [stdout] 82 + if from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("K") && current_player == Color::White { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | ...if (from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("Q") && current_player == Color::White) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 85 - if (from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("Q") && current_player == Color::White) { [INFO] [stdout] 85 + if from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("Q") && current_player == Color::White { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | ...if (from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("k") && current_player == Color::Black) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - if (from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("k") && current_player == Color::Black) { [INFO] [stdout] 88 + if from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("k") && current_player == Color::Black { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | ...if (from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("q") && current_player == Color::Black) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - if (from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("q") && current_player == Color::Black) { [INFO] [stdout] 91 + if from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("q") && current_player == Color::Black { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | if (input.trim().to_uppercase() == "QUIT") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if (input.trim().to_uppercase() == "QUIT") { [INFO] [stdout] 44 + if input.trim().to_uppercase() == "QUIT" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/game/model.rs:262:34 [INFO] [stdout] | [INFO] [stdout] 262 | fen.push_str(("1")) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 262 - fen.push_str(("1")) [INFO] [stdout] 262 + fen.push_str("1" ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game/model.rs:271:8 [INFO] [stdout] | [INFO] [stdout] 271 | if (game.current_player == Color::Black) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 271 - if (game.current_player == Color::Black) { [INFO] [stdout] 271 + if game.current_player == Color::Black { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game/model.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 278 | if (castle_rights.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - if (castle_rights.len() == 0) { [INFO] [stdout] 278 + if castle_rights.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tests/initial_state_tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::PartialEq` [INFO] [stdout] --> src/tests/rule_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::PartialEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PieceType` and `Piece` [INFO] [stdout] --> src/tests/rule_tests.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::game::{Game, Piece, PieceType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color` and `PieceType` [INFO] [stdout] --> src/tests/bishop_tests.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::{Color, Game, PieceType}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ruleengine` [INFO] [stdout] --> src/tests/bishop_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ruleengine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine/ruleset_pawn.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | if (target.color != piece_from.color) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if (target.color != piece_from.color) { [INFO] [stdout] 27 + if target.color != piece_from.color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/ruleengine/ruleset_knight.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/ruleengine/ruleset_bishop.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Game` [INFO] [stdout] --> src/ruleengine/ruleset_bishop.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::game::{Color, Game, Piece}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_piece_at_index` [INFO] [stdout] --> src/ruleengine/ruleset_bishop.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ruleengine::{get_piece_at_index, get_piece_at_pos}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | if (piece_from.color == piece_to.color) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - if (piece_from.color == piece_to.color) { [INFO] [stdout] 46 + if piece_from.color == piece_to.color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | ...if (from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("K") && current_player == Color::White) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - if (from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("K") && current_player == Color::White) { [INFO] [stdout] 82 + if from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("K") && current_player == Color::White { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | ...if (from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("Q") && current_player == Color::White) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 85 - if (from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("Q") && current_player == Color::White) { [INFO] [stdout] 85 + if from.0 == 'e' && to.0 == 'g' && (from.1 == 1 && to.1 == from.1) && game.white_can_castle.contains("Q") && current_player == Color::White { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | ...if (from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("k") && current_player == Color::Black) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - if (from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("k") && current_player == Color::Black) { [INFO] [stdout] 88 + if from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("k") && current_player == Color::Black { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/ruleengine.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | ...if (from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("q") && current_player == Color::Black) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - if (from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("q") && current_player == Color::Black) { [INFO] [stdout] 91 + if from.0 == 'e' && to.0 == 'g' && (from.1 == 8 && to.1 == from.1) && game.black_can_castle.contains("q") && current_player == Color::Black { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | if (input.trim().to_uppercase() == "QUIT") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if (input.trim().to_uppercase() == "QUIT") { [INFO] [stdout] 44 + if input.trim().to_uppercase() == "QUIT" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_squares` [INFO] [stdout] --> src/game/model.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | let empty_squares = 1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_squares` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/stockfish.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | for i in 0..break_at { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_user_input` is never used [INFO] [stdout] --> src/main.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn read_user_input(mut g: Game) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/game/enums.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Color { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 20 | pub fn display(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty_squares` [INFO] [stdout] --> src/game/model.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | let empty_squares = 1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_empty_squares` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/stockfish.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | for i in 0..break_at { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_user_input` is never used [INFO] [stdout] --> src/main.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn read_user_input(mut g: Game) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `display` is never used [INFO] [stdout] --> src/game/enums.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Color { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 20 | pub fn display(&self) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.46s [INFO] running `Command { std: "docker" "inspect" "6b2f9cdb352eb6d5937776f5be54272807716710d4e8ba86c3b617063a3e21c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b2f9cdb352eb6d5937776f5be54272807716710d4e8ba86c3b617063a3e21c2", kill_on_drop: false }` [INFO] [stdout] 6b2f9cdb352eb6d5937776f5be54272807716710d4e8ba86c3b617063a3e21c2