[INFO] cloning repository https://github.com/TheLegendBeacon/chess.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TheLegendBeacon/chess.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheLegendBeacon%2Fchess.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheLegendBeacon%2Fchess.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 295edf53f8d89a41f3ec3a60db2eaaa637638bf2 [INFO] testing TheLegendBeacon/chess.rs against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheLegendBeacon%2Fchess.rs" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TheLegendBeacon/chess.rs on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TheLegendBeacon/chess.rs [INFO] finished tweaking git repo https://github.com/TheLegendBeacon/chess.rs [INFO] tweaked toml for git repo https://github.com/TheLegendBeacon/chess.rs written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/TheLegendBeacon/chess.rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb4ee406860715a7203e737e0547ce088930930e34105560159cce1076498456 [INFO] running `Command { std: "docker" "start" "-a" "fb4ee406860715a7203e737e0547ce088930930e34105560159cce1076498456", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb4ee406860715a7203e737e0547ce088930930e34105560159cce1076498456", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb4ee406860715a7203e737e0547ce088930930e34105560159cce1076498456", kill_on_drop: false }` [INFO] [stdout] fb4ee406860715a7203e737e0547ce088930930e34105560159cce1076498456 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc505b7e0f42f3b32fa5fbcc2b1aff33ae72898ade37622fba3cd4e78562978c [INFO] running `Command { std: "docker" "start" "-a" "bc505b7e0f42f3b32fa5fbcc2b1aff33ae72898ade37622fba3cd4e78562978c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Coordinate` [INFO] [stdout] --> src/main.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use grid::{Coordinate, Grid}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut grid = Grid::new(); [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: field is never read: `can_castle` [INFO] [stdout] --> src/grid.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | can_castle: ((bool, bool), (bool, bool)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_piece` [INFO] [stdout] --> src/grid.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_piece(&self, coords: &Coordinate) -> Result<&Piece, ()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_piece` [INFO] [stdout] --> src/grid.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | fn set_piece(&mut self, coords: &Coordinate, piece: Piece) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_valid_coordinate` [INFO] [stdout] --> src/grid.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn is_valid_coordinate(&self, coords: &Coordinate) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_piece` [INFO] [stdout] --> src/grid.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn move_piece( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `N` [INFO] [stdout] --> src/validation.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | N, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NE` [INFO] [stdout] --> src/validation.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | NE, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `E` [INFO] [stdout] --> src/validation.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | E, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SE` [INFO] [stdout] --> src/validation.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | SE, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `S` [INFO] [stdout] --> src/validation.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | S, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SW` [INFO] [stdout] --> src/validation.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | SW, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `W` [INFO] [stdout] --> src/validation.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | W, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NW` [INFO] [stdout] --> src/validation.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | NW, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] note: `Direction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_coordinate_modifier` [INFO] [stdout] --> src/validation.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn to_coordinate_modifier(&self, is_white: bool) -> (isize, isize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Normal` [INFO] [stdout] --> src/validation.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | Normal(Coordinate), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MoveType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Attack` [INFO] [stdout] --> src/validation.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | Attack(Coordinate), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MoveType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Castling` [INFO] [stdout] --> src/validation.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | Castling(Coordinate), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MoveType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Promotion` [INFO] [stdout] --> src/validation.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Promotion(Coordinate), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MoveType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_coord` [INFO] [stdout] --> src/validation.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_coord(&self) -> &Coordinate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `move_number` [INFO] [stdout] --> src/validation.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn move_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_directions` [INFO] [stdout] --> src/validation.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | fn get_directions(&self) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_possible_moves` [INFO] [stdout] --> src/validation.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn generate_possible_moves(start_coord: &Coordinate, grid: &Grid) -> Result, ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate_move` [INFO] [stdout] --> src/validation.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn validate_move( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.19s [INFO] running `Command { std: "docker" "inspect" "bc505b7e0f42f3b32fa5fbcc2b1aff33ae72898ade37622fba3cd4e78562978c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc505b7e0f42f3b32fa5fbcc2b1aff33ae72898ade37622fba3cd4e78562978c", kill_on_drop: false }` [INFO] [stdout] bc505b7e0f42f3b32fa5fbcc2b1aff33ae72898ade37622fba3cd4e78562978c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 572f1f14a484dce4c31ce4f7c37ccf8d8cff031c2f28fad425c11e402de1b516 [INFO] running `Command { std: "docker" "start" "-a" "572f1f14a484dce4c31ce4f7c37ccf8d8cff031c2f28fad425c11e402de1b516", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Coordinate` [INFO] [stdout] --> src/main.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use grid::{Coordinate, Grid}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut grid = Grid::new(); [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: field is never read: `can_castle` [INFO] [stdout] --> src/grid.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | can_castle: ((bool, bool), (bool, bool)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Castling` [INFO] [stdout] --> src/validation.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | Castling(Coordinate), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MoveType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Promotion` [INFO] [stdout] --> src/validation.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Promotion(Coordinate), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MoveType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/validation.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.32s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/chess-c39f1c2153c8d89b) [INFO] running `Command { std: "docker" "inspect" "572f1f14a484dce4c31ce4f7c37ccf8d8cff031c2f28fad425c11e402de1b516", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "572f1f14a484dce4c31ce4f7c37ccf8d8cff031c2f28fad425c11e402de1b516", kill_on_drop: false }` [INFO] [stdout] 572f1f14a484dce4c31ce4f7c37ccf8d8cff031c2f28fad425c11e402de1b516 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 12f3052f3297151f69550233da69c469f0c605e8c65570871c5bd980f2e7c1d6 [INFO] running `Command { std: "docker" "start" "-a" "12f3052f3297151f69550233da69c469f0c605e8c65570871c5bd980f2e7c1d6", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `Coordinate` [INFO] [stderr] --> src/main.rs:11:12 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] running 7 tests [INFO] [stderr] 11 | use grid::{Coordinate, Grid}; [INFO] [stdout] test grid::tests::basic_grid_test ... ok [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stdout] test grid::tests::grid_coordinate_test ... ok [INFO] [stderr] | [INFO] [stdout] test validation::tests::basic_attacking_move ... ok [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] test validation::tests::basic_black_test ... ok [INFO] [stderr] [INFO] [stdout] test validation::tests::basic_normal_move ... ok [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stdout] test validation::tests::pawn_attack_test ... ok [INFO] [stderr] --> src/main.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | let mut grid = Grid::new(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `can_castle` [INFO] [stderr] --> src/grid.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | can_castle: ((bool, bool), (bool, bool)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Castling` [INFO] [stderr] --> src/validation.rs:48:5 [INFO] [stderr] | [INFO] [stderr] 48 | Castling(Coordinate), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MoveType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/validation.rs:44:10 [INFO] [stderr] | [INFO] [stderr] 44 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Promotion` [INFO] [stderr] --> src/validation.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 49 | Promotion(Coordinate), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MoveType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/validation.rs:44:10 [INFO] [stderr] | [INFO] [stderr] 44 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `chess` (bin "chess" test) generated 5 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.88s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chess-c39f1c2153c8d89b) [INFO] [stdout] test validation::tests::basic_validation_panic - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "12f3052f3297151f69550233da69c469f0c605e8c65570871c5bd980f2e7c1d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12f3052f3297151f69550233da69c469f0c605e8c65570871c5bd980f2e7c1d6", kill_on_drop: false }` [INFO] [stdout] 12f3052f3297151f69550233da69c469f0c605e8c65570871c5bd980f2e7c1d6