[INFO] cloning repository https://github.com/LeonardMH/chess-engine-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LeonardMH/chess-engine-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeonardMH%2Fchess-engine-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeonardMH%2Fchess-engine-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 247cd983a0d41b848e473a34507ddf2638cc8e9e [INFO] checking LeonardMH/chess-engine-rs/247cd983a0d41b848e473a34507ddf2638cc8e9e against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeonardMH%2Fchess-engine-rs" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LeonardMH/chess-engine-rs on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LeonardMH/chess-engine-rs [INFO] finished tweaking git repo https://github.com/LeonardMH/chess-engine-rs [INFO] tweaked toml for git repo https://github.com/LeonardMH/chess-engine-rs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/LeonardMH/chess-engine-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v1.0.53 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ac1a4c35f4208fe7720dbe0fec8f5f743cf6b5f0e6a538ff1805a112e369914c [INFO] running `Command { std: "docker" "start" "-a" "ac1a4c35f4208fe7720dbe0fec8f5f743cf6b5f0e6a538ff1805a112e369914c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac1a4c35f4208fe7720dbe0fec8f5f743cf6b5f0e6a538ff1805a112e369914c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac1a4c35f4208fe7720dbe0fec8f5f743cf6b5f0e6a538ff1805a112e369914c", kill_on_drop: false }` [INFO] [stdout] ac1a4c35f4208fe7720dbe0fec8f5f743cf6b5f0e6a538ff1805a112e369914c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "RUSTDOCFLAGS=--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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18e3d856cb8c76cea8828ec711e19d250979ab7ee117b540357f1bb4afedd68c [INFO] running `Command { std: "docker" "start" "-a" "18e3d856cb8c76cea8828ec711e19d250979ab7ee117b540357f1bb4afedd68c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling serde_json v1.0.60 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking more-asserts v0.2.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking chess-toolkit-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/piece/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/piece/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Dark` and `Light` are never constructed [INFO] [stdout] --> src/board/mod.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum SquareColor { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 12 | Dark, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | Light, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SquareColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `color_for_coordinate` is never used [INFO] [stdout] --> src/board/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl SquareColor { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 17 | fn color_for_coordinate(coordinate: Coordinate) -> SquareColor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece`, `color`, and `coordinate` are never read [INFO] [stdout] --> src/board/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Square { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 31 | piece: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | color: SquareColor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | coordinate: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/board/mod.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Square { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 37 | fn new(coordinate: Coordinate, piece: Option) -> Square { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `squares` is never read [INFO] [stdout] --> src/board/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Board { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 47 | squares: [Square; (BOARD_HEIGHT * BOARD_WIDTH) as usize], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `PlayerIndex` is never used [INFO] [stdout] --> src/timer.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | type PlayerIndex = usize; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChessTimer` is never constructed [INFO] [stdout] --> src/timer.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct ChessTimer<'a> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Result` is never used [INFO] [stdout] --> src/timer.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/timer.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl<'a> ChessTimer<'a> { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 35 | pub fn new(direction: TimerDirection, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn set_callback(&mut self, c: impl FnMut(PlayerIndex) + 'a) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn trigger_callback(&mut self, player: PlayerIndex) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn start(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn stop(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn player_index_supported(player: PlayerIndex) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | fn elapsed_to_remaining(elapsed: i64, last_remaining: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn check_elapsed_time_for_player(&self, player: PlayerIndex) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn check_remaining_time_for_player(&self, player: PlayerIndex) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn adjust_elapsed_time_for_player(&mut self, player: PlayerIndex, adjustment_ms: i64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn current_player(&self) -> Option { self.curr_player_index } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 199 | [INFO] [stdout] 200 | pub fn switch_to_player(&mut self, player: PlayerIndex) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | pub fn switch_to_next_player(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece`, `color`, and `coordinate` are never read [INFO] [stdout] --> src/board/mod.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Square { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 31 | piece: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | color: SquareColor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | coordinate: Coordinate, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/board/mod.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl Square { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 37 | fn new(coordinate: Coordinate, piece: Option) -> Square { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `squares` is never read [INFO] [stdout] --> src/board/mod.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Board { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 47 | squares: [Square; (BOARD_HEIGHT * BOARD_WIDTH) as usize], [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_callback` is never used [INFO] [stdout] --> src/timer.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl<'a> ChessTimer<'a> { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn set_callback(&mut self, c: impl FnMut(PlayerIndex) + 'a) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.56s [INFO] running `Command { std: "docker" "inspect" "18e3d856cb8c76cea8828ec711e19d250979ab7ee117b540357f1bb4afedd68c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18e3d856cb8c76cea8828ec711e19d250979ab7ee117b540357f1bb4afedd68c", kill_on_drop: false }` [INFO] [stdout] 18e3d856cb8c76cea8828ec711e19d250979ab7ee117b540357f1bb4afedd68c