[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 try#3bb2879ea9e58d65b875f9a98df44f4a43ce2597 for pr-85387 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDRGC%2Fchessengine" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DRGC/chessengine on toolchain 3bb2879ea9e58d65b875f9a98df44f4a43ce2597 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "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-12/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" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio v1.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c4ade5c7a2199870415e355a06384867cedfb575feccb2bd0d77d9ed7f9c14d7 [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" "c4ade5c7a2199870415e355a06384867cedfb575feccb2bd0d77d9ed7f9c14d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c4ade5c7a2199870415e355a06384867cedfb575feccb2bd0d77d9ed7f9c14d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4ade5c7a2199870415e355a06384867cedfb575feccb2bd0d77d9ed7f9c14d7", kill_on_drop: false }` [INFO] [stdout] c4ade5c7a2199870415e355a06384867cedfb575feccb2bd0d77d9ed7f9c14d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+3bb2879ea9e58d65b875f9a98df44f4a43ce2597" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7113df2c3d5abcfc3ea18f70540bd59119ed91ac9261db98cc83341ac521c53 [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" "b7113df2c3d5abcfc3ea18f70540bd59119ed91ac9261db98cc83341ac521c53", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling tokio v1.6.0 [INFO] [stderr] Checking lock_api v0.4.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking parking_lot v0.11.1 [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: 21 warnings emitted [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: 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 18.13s [INFO] running `Command { std: "docker" "inspect" "b7113df2c3d5abcfc3ea18f70540bd59119ed91ac9261db98cc83341ac521c53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7113df2c3d5abcfc3ea18f70540bd59119ed91ac9261db98cc83341ac521c53", kill_on_drop: false }` [INFO] [stdout] b7113df2c3d5abcfc3ea18f70540bd59119ed91ac9261db98cc83341ac521c53