[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 against master#22572d0994593197593e2a1b7b18d720a9a349a7 for pr-126452-1 [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 22572d0994593197593e2a1b7b18d720a9a349a7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+22572d0994593197593e2a1b7b18d720a9a349a7" "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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded more-asserts v0.2.1 [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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0696ec188384d86e9a3c1b6be6f09b8238e19077b1efa0a79c36fa0cb81161d8 [INFO] running `Command { std: "docker" "start" "-a" "0696ec188384d86e9a3c1b6be6f09b8238e19077b1efa0a79c36fa0cb81161d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0696ec188384d86e9a3c1b6be6f09b8238e19077b1efa0a79c36fa0cb81161d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0696ec188384d86e9a3c1b6be6f09b8238e19077b1efa0a79c36fa0cb81161d8", kill_on_drop: false }` [INFO] [stdout] 0696ec188384d86e9a3c1b6be6f09b8238e19077b1efa0a79c36fa0cb81161d8 [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" "+22572d0994593197593e2a1b7b18d720a9a349a7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 60f6b805372afc653411d21a493544a81d4dbd4f33813ea63f53ecf75dc53a8f [INFO] running `Command { std: "docker" "start" "-a" "60f6b805372afc653411d21a493544a81d4dbd4f33813ea63f53ecf75dc53a8f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling serde_json v1.0.60 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking more-asserts v0.2.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling quote v1.0.7 [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 9.56s [INFO] running `Command { std: "docker" "inspect" "60f6b805372afc653411d21a493544a81d4dbd4f33813ea63f53ecf75dc53a8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60f6b805372afc653411d21a493544a81d4dbd4f33813ea63f53ecf75dc53a8f", kill_on_drop: false }` [INFO] [stdout] 60f6b805372afc653411d21a493544a81d4dbd4f33813ea63f53ecf75dc53a8f [INFO] checking LeonardMH/chess-engine-rs against try#6289438dbad80b1a0029c66dd3f6abf57c2c51be for pr-126452-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeonardMH%2Fchess-engine-rs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LeonardMH/chess-engine-rs on toolchain 6289438dbad80b1a0029c66dd3f6abf57c2c51be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "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-tc2/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" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 50e93e43a732475f4ee9115c0f2e1ba72a9691c006ec1f32472ba771762fc8d8 [INFO] running `Command { std: "docker" "start" "-a" "50e93e43a732475f4ee9115c0f2e1ba72a9691c006ec1f32472ba771762fc8d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "50e93e43a732475f4ee9115c0f2e1ba72a9691c006ec1f32472ba771762fc8d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50e93e43a732475f4ee9115c0f2e1ba72a9691c006ec1f32472ba771762fc8d8", kill_on_drop: false }` [INFO] [stdout] 50e93e43a732475f4ee9115c0f2e1ba72a9691c006ec1f32472ba771762fc8d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "+6289438dbad80b1a0029c66dd3f6abf57c2c51be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0f1ab9abf2b0b9055496b5673a360a968d8a61fb96adef1dfa1775705a88d767 [INFO] running `Command { std: "docker" "start" "-a" "0f1ab9abf2b0b9055496b5673a360a968d8a61fb96adef1dfa1775705a88d767", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [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 bitflags v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.60 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking more-asserts v0.2.1 [INFO] [stderr] Compiling quote v1.0.7 [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 9.85s [INFO] running `Command { std: "docker" "inspect" "0f1ab9abf2b0b9055496b5673a360a968d8a61fb96adef1dfa1775705a88d767", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f1ab9abf2b0b9055496b5673a360a968d8a61fb96adef1dfa1775705a88d767", kill_on_drop: false }` [INFO] [stdout] 0f1ab9abf2b0b9055496b5673a360a968d8a61fb96adef1dfa1775705a88d767