[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 1.60.0 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 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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" "+1.60.0" "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] 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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d4bb3983e1b116a6fc24b8092cbef2905f9ea2284d96fc4ac1080898d894d6e5 [INFO] running `Command { std: "docker" "start" "-a" "d4bb3983e1b116a6fc24b8092cbef2905f9ea2284d96fc4ac1080898d894d6e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d4bb3983e1b116a6fc24b8092cbef2905f9ea2284d96fc4ac1080898d894d6e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4bb3983e1b116a6fc24b8092cbef2905f9ea2284d96fc4ac1080898d894d6e5", kill_on_drop: false }` [INFO] [stdout] d4bb3983e1b116a6fc24b8092cbef2905f9ea2284d96fc4ac1080898d894d6e5 [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" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04aa5de350bb661a6517b9a7c01d1549cc85655017b033dedc27070e22b2b233 [INFO] running `Command { std: "docker" "start" "-a" "04aa5de350bb661a6517b9a7c01d1549cc85655017b033dedc27070e22b2b233", 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 2m 11s [INFO] running `Command { std: "docker" "inspect" "04aa5de350bb661a6517b9a7c01d1549cc85655017b033dedc27070e22b2b233", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04aa5de350bb661a6517b9a7c01d1549cc85655017b033dedc27070e22b2b233", kill_on_drop: false }` [INFO] [stdout] 04aa5de350bb661a6517b9a7c01d1549cc85655017b033dedc27070e22b2b233 [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" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 58e936ca8dff4da3d165a994abffa2eee53c395d92362155fcd20f4497598342 [INFO] running `Command { std: "docker" "start" "-a" "58e936ca8dff4da3d165a994abffa2eee53c395d92362155fcd20f4497598342", 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 2.15s [INFO] running `Command { std: "docker" "inspect" "58e936ca8dff4da3d165a994abffa2eee53c395d92362155fcd20f4497598342", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58e936ca8dff4da3d165a994abffa2eee53c395d92362155fcd20f4497598342", kill_on_drop: false }` [INFO] [stdout] 58e936ca8dff4da3d165a994abffa2eee53c395d92362155fcd20f4497598342 [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" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6305d5a87ae1c90504fbad4a9db4822000284ae15c6ed6d4123c995cc65f266f [INFO] running `Command { std: "docker" "start" "-a" "6305d5a87ae1c90504fbad4a9db4822000284ae15c6ed6d4123c995cc65f266f", 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] [stderr] | [INFO] [stderr] 11 | use grid::{Coordinate, Grid}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [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 1.36s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/chess-0937e1aa25c6cdaa) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test grid::tests::basic_grid_test ... ok [INFO] [stdout] test grid::tests::grid_coordinate_test ... ok [INFO] [stdout] test validation::tests::basic_attacking_move ... ok [INFO] [stdout] test validation::tests::basic_black_test ... ok [INFO] [stdout] test validation::tests::basic_normal_move ... ok [INFO] [stdout] test validation::tests::pawn_attack_test ... ok [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.07s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6305d5a87ae1c90504fbad4a9db4822000284ae15c6ed6d4123c995cc65f266f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6305d5a87ae1c90504fbad4a9db4822000284ae15c6ed6d4123c995cc65f266f", kill_on_drop: false }` [INFO] [stdout] 6305d5a87ae1c90504fbad4a9db4822000284ae15c6ed6d4123c995cc65f266f