[INFO] cloning repository https://github.com/sgibson21/chess-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sgibson21/chess-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsgibson21%2Fchess-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsgibson21%2Fchess-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b59fcef7b2b27f6fbf05a4faf70936bb159b2ecb [INFO] testing sgibson21/chess-engine against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsgibson21%2Fchess-engine" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sgibson21/chess-engine [INFO] finished tweaking git repo https://github.com/sgibson21/chess-engine [INFO] tweaked toml for git repo https://github.com/sgibson21/chess-engine written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sgibson21/chess-engine on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sgibson21/chess-engine 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 080c890687374bc81ddb806714d9cb2ce8c83f7e10c7d2d15adda85d67b32fb3 [INFO] running `Command { std: "docker" "start" "-a" "080c890687374bc81ddb806714d9cb2ce8c83f7e10c7d2d15adda85d67b32fb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "080c890687374bc81ddb806714d9cb2ce8c83f7e10c7d2d15adda85d67b32fb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "080c890687374bc81ddb806714d9cb2ce8c83f7e10c7d2d15adda85d67b32fb3", kill_on_drop: false }` [INFO] [stdout] 080c890687374bc81ddb806714d9cb2ce8c83f7e10c7d2d15adda85d67b32fb3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98d2103d525a1289398fe5add37ef7d16345b78685a06f0e8b20e7e7dfa63efa [INFO] running `Command { std: "docker" "start" "-a" "98d2103d525a1289398fe5add37ef7d16345b78685a06f0e8b20e7e7dfa63efa", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling is-terminal v0.4.13 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.23 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling chess-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::evaluator::evaluate` [INFO] [stdout] --> src/playground.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::evaluator::evaluate; [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: `utils::coord_from_index` [INFO] [stdout] --> src/board_navigator/board_scout.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{pieces::Pieces, position::Position, utils::coord_from_index}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `half_move_clock` and `full_moves` are never read [INFO] [stdout] --> src/position.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub half_move_clock: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | [INFO] [stdout] 26 | pub full_moves: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_pawn_by_en_passant` and `print` are never used [INFO] [stdout] --> src/position.rs:268:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Position { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn remove_pawn_by_en_passant(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `count` and `format` are never used [INFO] [stdout] --> src/bitboard.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl BitBoard { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn count(self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn format(self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pad` is never used [INFO] [stdout] --> src/evaluator.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn pad(n: u8) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/playground.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum SquareLabels { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 78 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | A1, B1, C1, D1, E1, F1, G1, H1, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 80 | A2, B2, C2, D2, E2, F2, G2, H2, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 81 | A3, B3, C3, D3, E3, F3, G3, H3, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 82 | A4, B4, C4, D4, E4, F4, G4, H4, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 83 | A5, B5, C5, D5, E5, F5, G5, H5, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 84 | A6, B6, C6, D6, E6, F6, G6, H6, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 85 | A7, B7, C7, D7, E7, F7, G7, H7, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 86 | A8, B8, C8, D8, E8, F8, G8, H8, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SquareLabels` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `en_passant` is never read [INFO] [stdout] --> src/board_navigator/board_navigator.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Move { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 50 | en_passant: bool, // just a bool, as the Position holds the en_passant_target [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Move` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_move` is never used [INFO] [stdout] --> src/board_navigator/board_navigator.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn make_move(position: &mut Position, mv: &Move) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `s`, `se`, and `sw` are never used [INFO] [stdout] --> src/board_navigator/coord.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Coord { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn s(&self, direction: i32, count: i32) -> Option { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn se(&self, direction: i32, count: i32) -> Option { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn sw(&self, direction: i32, count: i32) -> Option { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 55.43s [INFO] running `Command { std: "docker" "inspect" "98d2103d525a1289398fe5add37ef7d16345b78685a06f0e8b20e7e7dfa63efa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98d2103d525a1289398fe5add37ef7d16345b78685a06f0e8b20e7e7dfa63efa", kill_on_drop: false }` [INFO] [stdout] 98d2103d525a1289398fe5add37ef7d16345b78685a06f0e8b20e7e7dfa63efa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd3091210d88d08418812e7885046eb37431e920ad94b5a4c94471168cac789f [INFO] running `Command { std: "docker" "start" "-a" "cd3091210d88d08418812e7885046eb37431e920ad94b5a4c94471168cac789f", kill_on_drop: false }` [INFO] [stderr] Compiling chess-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `fen_to_asci_board` [INFO] [stdout] --> src/position.rs:476:54 [INFO] [stdout] | [INFO] [stdout] 476 | use crate::{board_navigator::CastlingSide, fen::{fen_to_asci_board, from_fen}}; [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: `crate::evaluator::evaluate` [INFO] [stdout] --> src/playground.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::evaluator::evaluate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::coord_from_index` [INFO] [stdout] --> src/board_navigator/board_scout.rs:1:49 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{pieces::Pieces, position::Position, utils::coord_from_index}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/position.rs:648:13 [INFO] [stdout] | [INFO] [stdout] 648 | let result = position.remove_pawn_by_en_passant(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/evaluator.rs:451:26 [INFO] [stdout] | [INFO] [stdout] 451 | Some(m) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `half_move_clock` and `full_moves` are never read [INFO] [stdout] --> src/position.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub half_move_clock: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | [INFO] [stdout] 26 | pub full_moves: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `count` and `format` are never used [INFO] [stdout] --> src/bitboard.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl BitBoard { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn count(self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn format(self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pad` is never used [INFO] [stdout] --> src/evaluator.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn pad(n: u8) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/playground.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum SquareLabels { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 78 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | A1, B1, C1, D1, E1, F1, G1, H1, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 80 | A2, B2, C2, D2, E2, F2, G2, H2, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 81 | A3, B3, C3, D3, E3, F3, G3, H3, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 82 | A4, B4, C4, D4, E4, F4, G4, H4, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 83 | A5, B5, C5, D5, E5, F5, G5, H5, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 84 | A6, B6, C6, D6, E6, F6, G6, H6, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 85 | A7, B7, C7, D7, E7, F7, G7, H7, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] 86 | A8, B8, C8, D8, E8, F8, G8, H8, [INFO] [stdout] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SquareLabels` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `en_passant` is never read [INFO] [stdout] --> src/board_navigator/board_navigator.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Move { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 50 | en_passant: bool, // just a bool, as the Position holds the en_passant_target [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Move` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_move` is never used [INFO] [stdout] --> src/board_navigator/board_navigator.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn make_move(position: &mut Position, mv: &Move) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `se` and `sw` are never used [INFO] [stdout] --> src/board_navigator/coord.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Coord { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn se(&self, direction: i32, count: i32) -> Option { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn sw(&self, direction: i32, count: i32) -> Option { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.88s [INFO] running `Command { std: "docker" "inspect" "cd3091210d88d08418812e7885046eb37431e920ad94b5a4c94471168cac789f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd3091210d88d08418812e7885046eb37431e920ad94b5a4c94471168cac789f", kill_on_drop: false }` [INFO] [stdout] cd3091210d88d08418812e7885046eb37431e920ad94b5a4c94471168cac789f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c8bb3886cbc3f09104513211bd2fec0bbe71067d5690cfa534e5322069af08ec [INFO] running `Command { std: "docker" "start" "-a" "c8bb3886cbc3f09104513211bd2fec0bbe71067d5690cfa534e5322069af08ec", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `fen_to_asci_board` [INFO] [stderr] --> src/position.rs:476:54 [INFO] [stderr] | [INFO] [stderr] 476 | use crate::{board_navigator::CastlingSide, fen::{fen_to_asci_board, from_fen}}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::evaluator::evaluate` [INFO] [stderr] --> src/playground.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::evaluator::evaluate; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `utils::coord_from_index` [INFO] [stderr] --> src/board_navigator/board_scout.rs:1:49 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::{pieces::Pieces, position::Position, utils::coord_from_index}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/position.rs:648:13 [INFO] [stderr] | [INFO] [stderr] 648 | let result = position.remove_pawn_by_en_passant(); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `m` [INFO] [stderr] --> src/evaluator.rs:451:26 [INFO] [stderr] | [INFO] [stderr] 451 | Some(m) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/main.rs:70:13 [INFO] [stderr] | [INFO] [stderr] 70 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: fields `half_move_clock` and `full_moves` are never read [INFO] [stderr] --> src/position.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct Position { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 24 | pub half_move_clock: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 25 | [INFO] [stderr] 26 | pub full_moves: usize, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `count` and `format` are never used [INFO] [stderr] --> src/bitboard.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 23 | impl BitBoard { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 52 | pub fn count(self) -> u32 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 86 | pub fn format(self) -> String { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `pad` is never used [INFO] [stderr] --> src/evaluator.rs:342:4 [INFO] [stderr] | [INFO] [stderr] 342 | fn pad(n: u8) -> String { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple variants are never constructed [INFO] [stderr] --> src/playground.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 77 | pub enum SquareLabels { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] 78 | None, [INFO] [stderr] | ^^^^ [INFO] [stderr] 79 | A1, B1, C1, D1, E1, F1, G1, H1, [INFO] [stderr] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stderr] 80 | A2, B2, C2, D2, E2, F2, G2, H2, [INFO] [stderr] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stderr] 81 | A3, B3, C3, D3, E3, F3, G3, H3, [INFO] [stderr] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stderr] 82 | A4, B4, C4, D4, E4, F4, G4, H4, [INFO] [stderr] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stderr] 83 | A5, B5, C5, D5, E5, F5, G5, H5, [INFO] [stderr] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stderr] 84 | A6, B6, C6, D6, E6, F6, G6, H6, [INFO] [stderr] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stderr] 85 | A7, B7, C7, D7, E7, F7, G7, H7, [INFO] [stderr] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stderr] 86 | A8, B8, C8, D8, E8, F8, G8, H8, [INFO] [stderr] | ^^ ^^ ^^ ^^ ^^ ^^ ^^ [INFO] [stderr] | [INFO] [stderr] = note: `SquareLabels` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `en_passant` is never read [INFO] [stderr] --> src/board_navigator/board_navigator.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 46 | pub struct Move { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 50 | en_passant: bool, // just a bool, as the Position holds the en_passant_target [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Move` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `make_move` is never used [INFO] [stderr] --> src/board_navigator/board_navigator.rs:132:8 [INFO] [stderr] | [INFO] [stderr] 132 | pub fn make_move(position: &mut Position, mv: &Move) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `se` and `sw` are never used [INFO] [stderr] --> src/board_navigator/coord.rs:67:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Coord { [INFO] [stderr] | ---------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 67 | pub fn se(&self, direction: i32, count: i32) -> Option { [INFO] [stderr] | ^^ [INFO] [stderr] ... [INFO] [stderr] 74 | pub fn sw(&self, direction: i32, count: i32) -> Option { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: `chess-engine` (bin "chess-engine" test) generated 13 warnings (run `cargo fix --bin "chess-engine" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chess_engine-823aa68e8aa3ac88) [INFO] [stdout] [INFO] [stdout] running 27 tests [INFO] [stdout] test bitboard::tests::set_index_2 ... ok [INFO] [stdout] test bitboard::tests::unset_index_1 ... ok [INFO] [stdout] test bitboard::tests::unset_index_3 ... ok [INFO] [stdout] test bitboard::tests::unset_index_2 ... ok [INFO] [stdout] test board_navigator::board_scout::tests::is_not_attacked_by_pawn_out_of_range ... ok [INFO] [stdout] test board_navigator::board_scout::tests::is_attacked_by_ranged_straight_n ... ok [INFO] [stdout] test board_navigator::board_scout::tests::is_attacked_by_ranged_diagonal_ne ... ok [INFO] [stdout] test board_navigator::board_scout::tests::is_not_attacked_by_ranged_straight_n_due_to_block ... ok [INFO] [stdout] test board_navigator::coord::to_index ... ok [INFO] [stdout] test evaluator::tests::get_best_line_test_b ... ok [INFO] [stdout] test position::tests::make_move_castling_bq ... ok [INFO] [stdout] test evaluator::tests::get_best_line_test_should_choose_the_best_next_move ... ok [INFO] [stdout] test position::tests::make_move_castling_wk ... ok [INFO] [stdout] test position::tests::make_move_castling_bk ... ok [INFO] [stdout] test position::tests::make_move_castling_wq ... ok [INFO] [stdout] test position::tests::make_move_fail ... ok [INFO] [stdout] test position::tests::make_move_should_set_en_passant_target_as_black ... ok [INFO] [stdout] test position::tests::make_move_should_set_en_passant_target_as_white ... ok [INFO] [stdout] test position::tests::make_move_success ... ok [INFO] [stdout] test position::tests::switch_player_turn_black_to_white ... ok [INFO] [stdout] test position::tests::switch_player_turn_white_to_black ... ok [INFO] [stdout] test position::tests::place_piece ... ok [INFO] [stdout] test position::tests::remove_pawn_by_en_passant ... ok [INFO] [stdout] test position::tests::remove_piece ... ok [INFO] [stdout] test board_navigator::board_scout::tests::is_attacked_by_pawn ... ok [INFO] [stdout] test evaluator::tests::get_best_line_test_c ... ok [INFO] [stdout] test bitboard::tests::set_index_1 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 27 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c8bb3886cbc3f09104513211bd2fec0bbe71067d5690cfa534e5322069af08ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8bb3886cbc3f09104513211bd2fec0bbe71067d5690cfa534e5322069af08ec", kill_on_drop: false }` [INFO] [stdout] c8bb3886cbc3f09104513211bd2fec0bbe71067d5690cfa534e5322069af08ec