[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 try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 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-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/starqi/chess-bs on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-5/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-test-macro v0.3.24 [INFO] [stderr] Downloaded wasm-bindgen-test v0.3.24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0cb6b20eeb7f9e933158ac92d14b1b63ffb99335c406626e59c67a041f1fa55f [INFO] running `Command { std: "docker" "start" "-a" "0cb6b20eeb7f9e933158ac92d14b1b63ffb99335c406626e59c67a041f1fa55f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0cb6b20eeb7f9e933158ac92d14b1b63ffb99335c406626e59c67a041f1fa55f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cb6b20eeb7f9e933158ac92d14b1b63ffb99335c406626e59c67a041f1fa55f", kill_on_drop: false }` [INFO] [stdout] 0cb6b20eeb7f9e933158ac92d14b1b63ffb99335c406626e59c67a041f1fa55f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9bf23b95e719068ec6d4cb90c77abc157fbaeb4fd39d97aaf59f8b62cc03497b [INFO] running `Command { std: "docker" "start" "-a" "9bf23b95e719068ec6d4cb90c77abc157fbaeb4fd39d97aaf59f8b62cc03497b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [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 wasm-bindgen v0.2.74 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking lazy_static v1.4.0 [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 js-sys v0.3.51 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking chess_bs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/game/check_handler.rs (3 fixes) [INFO] [stderr] Fixed src/ai/mod.rs (1 fix) [INFO] [stderr] Fixed src/ai/evaluation.rs (1 fix) [INFO] [stderr] Fixed src/lib.rs (2 fixes) [INFO] [stderr] Fixed src/game/push_moves_handler.rs (1 fix) [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: 6 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: 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: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 56.67s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking chess_bs v0.1.0 (/tmp/fixit) [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: 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: 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: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "9bf23b95e719068ec6d4cb90c77abc157fbaeb4fd39d97aaf59f8b62cc03497b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bf23b95e719068ec6d4cb90c77abc157fbaeb4fd39d97aaf59f8b62cc03497b", kill_on_drop: false }` [INFO] [stdout] 9bf23b95e719068ec6d4cb90c77abc157fbaeb4fd39d97aaf59f8b62cc03497b