[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#9e293ae9f8abecb0be5105787d181518c9012a19 for pr-146440-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeonardMH%2Fchess-engine-rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[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-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/LeonardMH/chess-engine-rs on toolchain 9e293ae9f8abecb0be5105787d181518c9012a19
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+9e293ae9f8abecb0be5105787d181518c9012a19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded serde v1.0.118
[INFO] [stderr]   Downloaded serde_derive v1.0.118
[INFO] [stderr]   Downloaded more-asserts v0.2.1
[INFO] [stderr]   Downloaded hermit-abi v0.1.17
[INFO] [stderr]   Downloaded serde_json v1.0.60
[INFO] [stderr]   Downloaded clap v2.33.3
[INFO] [stderr]   Downloaded libc v0.2.81
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cd4535dbd98751ffa9631ebbba3d6b49491c1ae28bd3354b3af730d665f23783
[INFO] running `Command { std: "docker" "start" "-a" "cd4535dbd98751ffa9631ebbba3d6b49491c1ae28bd3354b3af730d665f23783", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cd4535dbd98751ffa9631ebbba3d6b49491c1ae28bd3354b3af730d665f23783", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cd4535dbd98751ffa9631ebbba3d6b49491c1ae28bd3354b3af730d665f23783", kill_on_drop: false }`
[INFO] [stdout] cd4535dbd98751ffa9631ebbba3d6b49491c1ae28bd3354b3af730d665f23783
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f938e876eaa41d0915918af5f080bf4092f3a0dc5b6d0587ec112186d1b1af1f
[INFO] running `Command { std: "docker" "start" "-a" "f938e876eaa41d0915918af5f080bf4092f3a0dc5b6d0587ec112186d1b1af1f", 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 serde v1.0.118
[INFO] [stderr]    Compiling serde_json v1.0.60
[INFO] [stderr]     Checking unicode-width v0.1.8
[INFO] [stderr]     Checking itoa v0.4.6
[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 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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: 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<Piece>,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 32 |     color: SquareColor,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 33 |     coordinate: Coordinate,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) 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<Piece>) -> 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: 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)]` (part of `#[warn(unused)]`) 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<Piece>,
[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<Piece>) -> 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<T> = std::result::Result<T, TimerError>;
[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<i64> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 162 |     pub fn check_remaining_time_for_player(&self, player: PlayerIndex) -> Option<u32> {
[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<PlayerIndex> { 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] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.10s
[INFO] running `Command { std: "docker" "inspect" "f938e876eaa41d0915918af5f080bf4092f3a0dc5b6d0587ec112186d1b1af1f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f938e876eaa41d0915918af5f080bf4092f3a0dc5b6d0587ec112186d1b1af1f", kill_on_drop: false }`
[INFO] [stdout] f938e876eaa41d0915918af5f080bf4092f3a0dc5b6d0587ec112186d1b1af1f
