[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#dfd7b8d03fb93d0e03147d28b3be6d93260fa94d for pr-87050 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstarqi%2Fchess-bs" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/starqi/chess-bs on toolchain dfd7b8d03fb93d0e03147d28b3be6d93260fa94d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+dfd7b8d03fb93d0e03147d28b3be6d93260fa94d" "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-10/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" "+dfd7b8d03fb93d0e03147d28b3be6d93260fa94d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+dfd7b8d03fb93d0e03147d28b3be6d93260fa94d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b77cc37325e1327467d144af5ed4db2e6ab7a348efd5562d4a955c84432c3f92 [INFO] running `Command { std: "docker" "start" "-a" "b77cc37325e1327467d144af5ed4db2e6ab7a348efd5562d4a955c84432c3f92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b77cc37325e1327467d144af5ed4db2e6ab7a348efd5562d4a955c84432c3f92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b77cc37325e1327467d144af5ed4db2e6ab7a348efd5562d4a955c84432c3f92", kill_on_drop: false }` [INFO] [stdout] b77cc37325e1327467d144af5ed4db2e6ab7a348efd5562d4a955c84432c3f92 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+dfd7b8d03fb93d0e03147d28b3be6d93260fa94d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c4b3a6096b79ff7213b45e681651735b528a4cb61f405d8e154fa95d362a7686 [INFO] running `Command { std: "docker" "start" "-a" "c4b3a6096b79ff7213b45e681651735b528a4cb61f405d8e154fa95d362a7686", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.74 [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] Compiling log v0.4.14 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.24 [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.22s [INFO] running `Command { std: "docker" "inspect" "c4b3a6096b79ff7213b45e681651735b528a4cb61f405d8e154fa95d362a7686", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4b3a6096b79ff7213b45e681651735b528a4cb61f405d8e154fa95d362a7686", kill_on_drop: false }` [INFO] [stdout] c4b3a6096b79ff7213b45e681651735b528a4cb61f405d8e154fa95d362a7686