[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] checking TheLegendBeacon/chess.rs against try#87f2ecc56b5f6032b075c8934ebc77f28d57183c for pr-148190
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheLegendBeacon%2Fchess.rs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[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-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/TheLegendBeacon/chess.rs on toolchain 87f2ecc56b5f6032b075c8934ebc77f28d57183c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/TheLegendBeacon/chess.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" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] fce57d969d9c2987a5050cc87cc4b0d8d0ebcaf95027c57758c1d14d34887eca
[INFO] running `Command { std: "docker" "start" "-a" "fce57d969d9c2987a5050cc87cc4b0d8d0ebcaf95027c57758c1d14d34887eca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fce57d969d9c2987a5050cc87cc4b0d8d0ebcaf95027c57758c1d14d34887eca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fce57d969d9c2987a5050cc87cc4b0d8d0ebcaf95027c57758c1d14d34887eca", kill_on_drop: false }`
[INFO] [stdout] fce57d969d9c2987a5050cc87cc4b0d8d0ebcaf95027c57758c1d14d34887eca
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0e404bac44ebfdb2705f60a460058d72e8492701841b9b9d4ee295957c3b8ea8
[INFO] running `Command { std: "docker" "start" "-a" "0e404bac44ebfdb2705f60a460058d72e8492701841b9b9d4ee295957c3b8ea8", kill_on_drop: false }`
[INFO] [stderr]     Checking 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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `can_castle` is never read
[INFO] [stdout]   --> src/grid.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct Grid {
[INFO] [stdout]    |            ---- field in this struct
[INFO] [stdout] 15 |     grid: [[Piece; 8]; 8],
[INFO] [stdout] 16 |     can_castle: ((bool, bool), (bool, bool)),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_piece`, `set_piece`, and `is_valid_coordinate` are never used
[INFO] [stdout]   --> src/grid.rs:32:12
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl Grid {
[INFO] [stdout]    | --------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn get_piece(&self, coords: &Coordinate) -> Result<&Piece, ()> {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     fn set_piece(&mut self, coords: &Coordinate, piece: Piece) -> Result<(), ()> {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     pub fn is_valid_coordinate(&self, coords: &Coordinate) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `move_piece` is never used
[INFO] [stdout]   --> src/grid.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 67 | impl Grid {
[INFO] [stdout]    | --------- method in this implementation
[INFO] [stdout] 68 |     // validation code in validation.rs - this moves a piece and handles the taking of pieces.
[INFO] [stdout] 69 |     pub fn move_piece(
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Direction` is never used
[INFO] [stdout]  --> src/validation.rs:8:10
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub enum Direction {
[INFO] [stdout]   |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_coordinate_modifier` is never used
[INFO] [stdout]   --> src/validation.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | impl Direction {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] 20 |     pub fn to_coordinate_modifier(&self, is_white: bool) -> (isize, isize) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `MoveType` is never used
[INFO] [stdout]   --> src/validation.rs:45:10
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub enum MoveType {
[INFO] [stdout]    |          ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_coord` is never used
[INFO] [stdout]   --> src/validation.rs:53:8
[INFO] [stdout]    |
[INFO] [stdout] 52 | impl MoveType {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] 53 |     fn get_coord(&self) -> &Coordinate {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `move_number` and `get_directions` are never used
[INFO] [stdout]   --> src/validation.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 65 | impl PieceKind {
[INFO] [stdout]    | -------------- methods in this implementation
[INFO] [stdout] 66 |     pub fn move_number(&self) -> u8 {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 81 |     fn get_directions(&self) -> (Vec<Direction>, Vec<Direction>) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_possible_moves` is never used
[INFO] [stdout]    --> src/validation.rs:123:4
[INFO] [stdout]     |
[INFO] [stdout] 123 | fn generate_possible_moves(start_coord: &Coordinate, grid: &Grid) -> Result<Vec<MoveType>, ()> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `validate_move` is never used
[INFO] [stdout]    --> src/validation.rs:235:12
[INFO] [stdout]     |
[INFO] [stdout] 234 | impl Grid {
[INFO] [stdout]     | --------- method in this implementation
[INFO] [stdout] 235 |     pub fn validate_move(
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `can_castle` is never read
[INFO] [stdout]   --> src/grid.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct Grid {
[INFO] [stdout]    |            ---- field in this struct
[INFO] [stdout] 15 |     grid: [[Piece; 8]; 8],
[INFO] [stdout] 16 |     can_castle: ((bool, bool), (bool, bool)),
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Castling` and `Promotion` are never constructed
[INFO] [stdout]   --> src/validation.rs:48:5
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub enum MoveType {
[INFO] [stdout]    |          -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 48 |     Castling(Coordinate),
[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] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s
[INFO] running `Command { std: "docker" "inspect" "0e404bac44ebfdb2705f60a460058d72e8492701841b9b9d4ee295957c3b8ea8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0e404bac44ebfdb2705f60a460058d72e8492701841b9b9d4ee295957c3b8ea8", kill_on_drop: false }`
[INFO] [stdout] 0e404bac44ebfdb2705f60a460058d72e8492701841b9b9d4ee295957c3b8ea8
