[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] 40142e292e264db25ef470948697bbf5bc13b766 [INFO] testing sgibson21/chess-engine against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsgibson21%2Fchess-engine" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sgibson21/chess-engine on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-5-tc2/source/Cargo.toml [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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] caed6fe35e80830f65306063b6e415e3786bf5b932713e7e38873e81a94e4db6 [INFO] running `Command { std: "docker" "start" "-a" "caed6fe35e80830f65306063b6e415e3786bf5b932713e7e38873e81a94e4db6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "caed6fe35e80830f65306063b6e415e3786bf5b932713e7e38873e81a94e4db6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caed6fe35e80830f65306063b6e415e3786bf5b932713e7e38873e81a94e4db6", kill_on_drop: false }` [INFO] [stdout] caed6fe35e80830f65306063b6e415e3786bf5b932713e7e38873e81a94e4db6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0bd5661c409a3871f822b7eb66582ba9fae66bf9d508fdbaf78d59f7fe1acdcb [INFO] running `Command { std: "docker" "start" "-a" "0bd5661c409a3871f822b7eb66582ba9fae66bf9d508fdbaf78d59f7fe1acdcb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling quote v1.0.37 [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 syn v2.0.79 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Compiling is-terminal v0.4.13 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling binascii v0.1.4 [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 devise_codegen v0.4.2 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling async-stream v0.3.6 [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 serde_spanned v0.6.8 [INFO] [stderr] Compiling toml_datetime 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 variable: `depth` [INFO] [stdout] --> src/evaluator.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn evaluate(fen: &str, depth: u8) -> f32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/position.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 39 | impl Position { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | fn get_white_pieces_mut(&mut self) -> &mut BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn get_black_pieces_mut(&mut self) -> &mut BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn get_pawns_mut(&mut self) -> &mut BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn get_bishops_mut(&mut self) -> &mut BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | fn get_knights_mut(&mut self) -> &mut BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn get_rooks_mut(&mut self) -> &mut BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | fn get_queens_mut(&mut self) -> &mut BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | fn get_kings_mut(&mut self) -> &mut BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub fn make_move(&mut self, from: i32, to: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn get_side(&self, index: i32) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | pub fn get_piece(&self, index: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | fn remove_piece(&mut self, index: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 284 | fn place_piece(&mut self, index: i32, side: Side, piece: Piece) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 309 | fn get_side_bitboard(&mut self, index: i32) -> &mut BitBoard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | fn get_piece_bitboard(&mut self, index: i32) -> Option<&mut BitBoard> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `count`, `set_index`, `unset_index`, 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] 60 | pub fn set_index(&mut self, index: u8) -> BitBoard { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn unset_index(&mut self, index: u8) -> BitBoard { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn format(self) -> 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: variant `P` is never constructed [INFO] [stdout] --> src/board_navigator/board_navigator.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Piece { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 13 | P, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Piece` 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:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn make_move(position: &mut Position, mv: &Move) -> /*Position*/ () { [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] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/board_navigator/board_navigator.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | position.make_move(from, to); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 126 | let _ = position.make_move(from, to); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 01s [INFO] running `Command { std: "docker" "inspect" "0bd5661c409a3871f822b7eb66582ba9fae66bf9d508fdbaf78d59f7fe1acdcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bd5661c409a3871f822b7eb66582ba9fae66bf9d508fdbaf78d59f7fe1acdcb", kill_on_drop: false }` [INFO] [stdout] 0bd5661c409a3871f822b7eb66582ba9fae66bf9d508fdbaf78d59f7fe1acdcb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 37ab7672ffc672910b0d2c4b6b64b0c9821991e3760d86faa66446b0f7507243 [INFO] running `Command { std: "docker" "start" "-a" "37ab7672ffc672910b0d2c4b6b64b0c9821991e3760d86faa66446b0f7507243", 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:397:32 [INFO] [stdout] | [INFO] [stdout] 397 | use crate::fen::{from_fen, fen_to_asci_board}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/evaluator.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn evaluate(fen: &str, depth: u8) -> f32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` 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)]` 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: 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:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn make_move(position: &mut Position, mv: &Move) -> /*Position*/ () { [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] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/board_navigator/board_navigator.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | position.make_move(from, to); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 126 | let _ = position.make_move(from, to); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.60s [INFO] running `Command { std: "docker" "inspect" "37ab7672ffc672910b0d2c4b6b64b0c9821991e3760d86faa66446b0f7507243", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37ab7672ffc672910b0d2c4b6b64b0c9821991e3760d86faa66446b0f7507243", kill_on_drop: false }` [INFO] [stdout] 37ab7672ffc672910b0d2c4b6b64b0c9821991e3760d86faa66446b0f7507243 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ca25ae229108214667767e7bcac90636c8df9dbd09c0b768c9165722fb03ef79 [INFO] running `Command { std: "docker" "start" "-a" "ca25ae229108214667767e7bcac90636c8df9dbd09c0b768c9165722fb03ef79", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `fen_to_asci_board` [INFO] [stderr] --> src/position.rs:397:32 [INFO] [stderr] | [INFO] [stderr] 397 | use crate::fen::{from_fen, fen_to_asci_board}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `depth` [INFO] [stderr] --> src/evaluator.rs:159:28 [INFO] [stderr] | [INFO] [stderr] 159 | pub fn evaluate(fen: &str, depth: u8) -> f32 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [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)]` 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: 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:120:8 [INFO] [stderr] | [INFO] [stderr] 120 | pub fn make_move(position: &mut Position, mv: &Move) -> /*Position*/ () { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `s`, `se`, and `sw` are never used [INFO] [stderr] --> src/board_navigator/coord.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Coord { [INFO] [stderr] | ---------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn s(&self, direction: i32, count: i32) -> Option { [INFO] [stderr] | ^ [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: unused `Result` that must be used [INFO] [stderr] --> src/board_navigator/board_navigator.rs:126:9 [INFO] [stderr] | [INFO] [stderr] 126 | position.make_move(from, to); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 126 | let _ = position.make_move(from, to); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `chess-engine` (bin "chess-engine" test) generated 9 warnings (run `cargo fix --bin "chess-engine" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chess_engine-ba05b54682484a5d) [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test bitboard::tests::set_index_1 ... ok [INFO] [stdout] test bitboard::tests::set_index_2 ... 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_attacked_by_ranged_straight_n ... ok [INFO] [stdout] test board_navigator::board_scout::tests::is_attacked_by_pawn ... ok [INFO] [stdout] test bitboard::tests::unset_index_1 ... 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 position::tests::make_move_success ... ok [INFO] [stdout] test position::tests::place_piece ... 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_diagonal_ne ... ok [INFO] [stdout] test position::tests::make_move_fail ... ok [INFO] [stdout] test position::tests::remove_piece ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ca25ae229108214667767e7bcac90636c8df9dbd09c0b768c9165722fb03ef79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca25ae229108214667767e7bcac90636c8df9dbd09c0b768c9165722fb03ef79", kill_on_drop: false }` [INFO] [stdout] ca25ae229108214667767e7bcac90636c8df9dbd09c0b768c9165722fb03ef79