[INFO] cloning repository https://github.com/DRGC/chessengine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DRGC/chessengine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDRGC%2Fchessengine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDRGC%2Fchessengine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cadd8fdef730e174dc6f8d0ade251733d99039b8 [INFO] checking DRGC/chessengine against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDRGC%2Fchessengine" "/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/DRGC/chessengine on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/DRGC/chessengine [INFO] finished tweaking git repo https://github.com/DRGC/chessengine [INFO] tweaked toml for git repo https://github.com/DRGC/chessengine written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/DRGC/chessengine already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 598305a1c4e587422ffe9906005ff4a86d82eb0442a4de1fa09980585d82230a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "598305a1c4e587422ffe9906005ff4a86d82eb0442a4de1fa09980585d82230a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "598305a1c4e587422ffe9906005ff4a86d82eb0442a4de1fa09980585d82230a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "598305a1c4e587422ffe9906005ff4a86d82eb0442a4de1fa09980585d82230a", kill_on_drop: false }` [INFO] [stdout] 598305a1c4e587422ffe9906005ff4a86d82eb0442a4de1fa09980585d82230a [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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ca544c8f91e31a7de15fd22a3b114658af42e2b213c1f62ef2ad4d80f7d8f5a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5ca544c8f91e31a7de15fd22a3b114658af42e2b213c1f62ef2ad4d80f7d8f5a", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Compiling tokio v1.6.0 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Checking chessengine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut king: game::board::square::piece::Piece = game::board::square::piece::Piece::get_king(false); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut queen: game::board::square::piece::Piece = game::board::square::piece::Piece::get_queen(false); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `time` [INFO] [stdout] --> src/game/player/clock.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | time: u128, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state` [INFO] [stdout] --> src/game/player/clock.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | state: State [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Started` [INFO] [stdout] --> src/game/player/clock.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Started [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `start` [INFO] [stdout] --> src/game/player/clock.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn start(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop` [INFO] [stdout] --> src/game/player/clock.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | pub async fn stop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `colour` [INFO] [stdout] --> src/game/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | colour: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `score` [INFO] [stdout] --> src/game/player.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | score: u8 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Pawn` [INFO] [stdout] --> src/game/board/square/piece.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Pawn, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Bishop` [INFO] [stdout] --> src/game/board/square/piece.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Bishop, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Knight` [INFO] [stdout] --> src/game/board/square/piece.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Knight, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rook` [INFO] [stdout] --> src/game/board/square/piece.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Rook, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LShape` [INFO] [stdout] --> src/game/board/square/piece.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | LShape [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pawn` [INFO] [stdout] --> src/game/board/square/piece.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn get_pawn(colour: bool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bishop` [INFO] [stdout] --> src/game/board/square/piece.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn get_bishop(colour: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_knight` [INFO] [stdout] --> src/game/board/square/piece.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn get_knight(colour: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_rook` [INFO] [stdout] --> src/game/board/square/piece.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn get_rook(colour: bool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid_rank` [INFO] [stdout] --> src/game/board/square.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn is_valid_rank(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid_file` [INFO] [stdout] --> src/game/board/square.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn is_valid_file(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_piece` [INFO] [stdout] --> src/game/board/square.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn has_piece(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut king: game::board::square::piece::Piece = game::board::square::piece::Piece::get_king(false); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut queen: game::board::square::piece::Piece = game::board::square::piece::Piece::get_queen(false); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `time` [INFO] [stdout] --> src/game/player/clock.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | time: u128, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `state` [INFO] [stdout] --> src/game/player/clock.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | state: State [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Started` [INFO] [stdout] --> src/game/player/clock.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Started [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `start` [INFO] [stdout] --> src/game/player/clock.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn start(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `stop` [INFO] [stdout] --> src/game/player/clock.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | pub async fn stop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `colour` [INFO] [stdout] --> src/game/player.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | colour: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `score` [INFO] [stdout] --> src/game/player.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | score: u8 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Pawn` [INFO] [stdout] --> src/game/board/square/piece.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Pawn, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Bishop` [INFO] [stdout] --> src/game/board/square/piece.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | Bishop, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Knight` [INFO] [stdout] --> src/game/board/square/piece.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Knight, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rook` [INFO] [stdout] --> src/game/board/square/piece.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Rook, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LShape` [INFO] [stdout] --> src/game/board/square/piece.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | LShape [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_pawn` [INFO] [stdout] --> src/game/board/square/piece.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn get_pawn(colour: bool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_bishop` [INFO] [stdout] --> src/game/board/square/piece.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn get_bishop(colour: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_knight` [INFO] [stdout] --> src/game/board/square/piece.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn get_knight(colour: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_rook` [INFO] [stdout] --> src/game/board/square/piece.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn get_rook(colour: bool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid_rank` [INFO] [stdout] --> src/game/board/square.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn is_valid_rank(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid_file` [INFO] [stdout] --> src/game/board/square.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn is_valid_file(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `has_piece` [INFO] [stdout] --> src/game/board/square.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn has_piece(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 28.19s [INFO] running `Command { std: "docker" "inspect" "5ca544c8f91e31a7de15fd22a3b114658af42e2b213c1f62ef2ad4d80f7d8f5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ca544c8f91e31a7de15fd22a3b114658af42e2b213c1f62ef2ad4d80f7d8f5a", kill_on_drop: false }` [INFO] [stdout] 5ca544c8f91e31a7de15fd22a3b114658af42e2b213c1f62ef2ad4d80f7d8f5a