[INFO] cloning repository https://github.com/starqi/chess-bs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/starqi/chess-bs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstarqi%2Fchess-bs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstarqi%2Fchess-bs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e7a18fdb25b625494ae64fa7ab04a3717e49d96 [INFO] checking starqi/chess-bs against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstarqi%2Fchess-bs" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/starqi/chess-bs on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/starqi/chess-bs [INFO] finished tweaking git repo https://github.com/starqi/chess-bs [INFO] tweaked toml for git repo https://github.com/starqi/chess-bs written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/starqi/chess-bs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eaa4813691ccc5567df0a2e8f88d62122e0f267c2271c9b5b15d0b8f577cef68 [INFO] running `Command { std: "docker" "start" "-a" "eaa4813691ccc5567df0a2e8f88d62122e0f267c2271c9b5b15d0b8f577cef68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eaa4813691ccc5567df0a2e8f88d62122e0f267c2271c9b5b15d0b8f577cef68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaa4813691ccc5567df0a2e8f88d62122e0f267c2271c9b5b15d0b8f577cef68", kill_on_drop: false }` [INFO] [stdout] eaa4813691ccc5567df0a2e8f88d62122e0f267c2271c9b5b15d0b8f577cef68 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3edf3e930f05886c3a94926de3b2c3a3f072a790614abde4c61f43546aeabd33 [INFO] running `Command { std: "docker" "start" "-a" "3edf3e930f05886c3a94926de3b2c3a3f072a790614abde4c61f43546aeabd33", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.74 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bumpalo v3.7.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.74 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.24 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.74 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.74 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.74 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking js-sys v0.3.51 [INFO] [stderr] Checking chess_bs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `can_capture` [INFO] [stdout] --> src/game/push_moves_handler.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | can_capture: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_capture` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_x` [INFO] [stdout] --> src/game/check_handler.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | dest_x: u8, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_y` [INFO] [stdout] --> src/game/check_handler.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | dest_y: u8, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replacement_piece` [INFO] [stdout] --> src/game/check_handler.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | replacement_piece: Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replacement_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_piece` [INFO] [stdout] --> src/ai/mod.rs:381:100 [INFO] [stdout] | [INFO] [stdout] 381 | if let Some((_, BeforeAfterSquares(Square::Occupied(before_piece, _), Square::Occupied(after_piece, _)))) = m.get_dest_sq() { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `moveable` [INFO] [stdout] --> src/ai/evaluation.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | moveable: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_moveable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/game/board.rs:140:35 [INFO] [stdout] | [INFO] [stdout] 139 | if let Square::Occupied(_, occupied_player) = self.get_by_xy(x, y) { [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 140 | let piece_list = &mut self.get_player_state_mut(*occupied_player).piece_locs; [INFO] [stdout] | ^^^^ ---------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_safe` [INFO] [stdout] --> src/game/board.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn get_safe(&self, file: char, rank: u8) -> Result<&Square, Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RankOutOfBounds` [INFO] [stdout] --> src/game/coords.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | RankOutOfBounds(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FileOutOfBounds` [INFO] [stdout] --> src/game/coords.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | FileOutOfBounds(char), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_rank_to_xy_safe` [INFO] [stdout] --> src/game/coords.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn file_rank_to_xy_safe(file: char, rank: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/game/move_list.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn print(&self, start: usize, _end_exclusive: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | &CASTLE_UTILS.oo_move_snapshots; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = &CASTLE_UTILS.oo_move_snapshots; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | &RANDOM_NUMBER_KEYS.squares; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = &RANDOM_NUMBER_KEYS.squares; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking wasm-bindgen-futures v0.4.24 [INFO] [stderr] Checking wasm-bindgen-test v0.3.24 [INFO] [stdout] warning: unused variable: `can_capture` [INFO] [stdout] --> src/game/push_moves_handler.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | can_capture: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_capture` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_x` [INFO] [stdout] --> src/game/check_handler.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | dest_x: u8, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_y` [INFO] [stdout] --> src/game/check_handler.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | dest_y: u8, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `replacement_piece` [INFO] [stdout] --> src/game/check_handler.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | replacement_piece: Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_replacement_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `after_piece` [INFO] [stdout] --> src/ai/mod.rs:381:100 [INFO] [stdout] | [INFO] [stdout] 381 | if let Some((_, BeforeAfterSquares(Square::Occupied(before_piece, _), Square::Occupied(after_piece, _)))) = m.get_dest_sq() { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_after_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `moveable` [INFO] [stdout] --> src/ai/evaluation.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | moveable: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_moveable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/game/board.rs:140:35 [INFO] [stdout] | [INFO] [stdout] 139 | if let Square::Occupied(_, occupied_player) = self.get_by_xy(x, y) { [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 140 | let piece_list = &mut self.get_player_state_mut(*occupied_player).piece_locs; [INFO] [stdout] | ^^^^ ---------------- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_safe` [INFO] [stdout] --> src/game/board.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn get_safe(&self, file: char, rank: u8) -> Result<&Square, Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RankOutOfBounds` [INFO] [stdout] --> src/game/coords.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | RankOutOfBounds(u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FileOutOfBounds` [INFO] [stdout] --> src/game/coords.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | FileOutOfBounds(char), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `file_rank_to_xy_safe` [INFO] [stdout] --> src/game/coords.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn file_rank_to_xy_safe(file: char, rank: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/game/move_list.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn print(&self, start: usize, _end_exclusive: usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | &CASTLE_UTILS.oo_move_snapshots; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = &CASTLE_UTILS.oo_move_snapshots; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/lib.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | &RANDOM_NUMBER_KEYS.squares; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = &RANDOM_NUMBER_KEYS.squares; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 55.96s [INFO] running `Command { std: "docker" "inspect" "3edf3e930f05886c3a94926de3b2c3a3f072a790614abde4c61f43546aeabd33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3edf3e930f05886c3a94926de3b2c3a3f072a790614abde4c61f43546aeabd33", kill_on_drop: false }` [INFO] [stdout] 3edf3e930f05886c3a94926de3b2c3a3f072a790614abde4c61f43546aeabd33