[INFO] cloning repository https://github.com/omar-khaled-2/chess
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/omar-khaled-2/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 102980748a958e11a1a4788eb54098e7831f1545
[INFO] checking omar-khaled-2/chess against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomar-khaled-2%2Fchess" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/omar-khaled-2/chess
[INFO] finished tweaking git repo https://github.com/omar-khaled-2/chess
[INFO] tweaked toml for git repo https://github.com/omar-khaled-2/chess written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/omar-khaled-2/chess on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/omar-khaled-2/chess 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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5b9adea700d9fa9511570d0c00b456d6bfc8f2664cacc1209045441ab12aea68
[INFO] running `Command { std: "docker" "start" "-a" "5b9adea700d9fa9511570d0c00b456d6bfc8f2664cacc1209045441ab12aea68", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5b9adea700d9fa9511570d0c00b456d6bfc8f2664cacc1209045441ab12aea68", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5b9adea700d9fa9511570d0c00b456d6bfc8f2664cacc1209045441ab12aea68", kill_on_drop: false }`
[INFO] [stdout] 5b9adea700d9fa9511570d0c00b456d6bfc8f2664cacc1209045441ab12aea68
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0fd864047bc7658e398911f99ef122714692e251ba933ef9a9114a36f2cafeab
[INFO] running `Command { std: "docker" "start" "-a" "0fd864047bc7658e398911f99ef122714692e251ba933ef9a9114a36f2cafeab", kill_on_drop: false }`
[INFO] [stderr]     Checking chess v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `borrow::BorrowMut`
[INFO] [stdout]  --> src/main.rs:2:11
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::{borrow::BorrowMut, io::{Error, ErrorKind}};
[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:305:9
[INFO] [stdout]     |
[INFO] [stdout] 305 |     let mut piece = get_piece(pieces, position).unwrap();
[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: unused variable: `captured_piece`
[INFO] [stdout]    --> src/main.rs:412:25
[INFO] [stdout]     |
[INFO] [stdout] 412 |                     let captured_piece = get_piece(pieces, p - 8).unwrap();
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `captured_piece`
[INFO] [stdout]    --> src/main.rs:429:25
[INFO] [stdout]     |
[INFO] [stdout] 429 |                     let captured_piece = get_piece(pieces, p + 8).unwrap();
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `captured_piece`
[INFO] [stdout]    --> src/main.rs:444:25
[INFO] [stdout]     |
[INFO] [stdout] 444 |                     let captured_piece = get_piece(pieces, p - 1).unwrap();
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `captured_piece`
[INFO] [stdout]    --> src/main.rs:460:25
[INFO] [stdout]     |
[INFO] [stdout] 460 |                     let captured_piece = get_piece(pieces, p + 1).unwrap();
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `captured_piece`
[INFO] [stdout]    --> src/main.rs:461:47
[INFO] [stdout]     |
[INFO] [stdout] 461 |                     if !matches!(&piece.color,captured_piece){
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pieces`
[INFO] [stdout]    --> src/main.rs:489:14
[INFO] [stdout]     |
[INFO] [stdout] 489 | fn is_pinned(pieces:&Vec<MovingPiece>, position:u8) -> bool {
[INFO] [stdout]     |              ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pieces`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `position`
[INFO] [stdout]    --> src/main.rs:489:40
[INFO] [stdout]     |
[INFO] [stdout] 489 | fn is_pinned(pieces:&Vec<MovingPiece>, position:u8) -> bool {
[INFO] [stdout]     |                                        ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `color`
[INFO] [stdout]    --> src/main.rs:496:48
[INFO] [stdout]     |
[INFO] [stdout] 496 | fn get_king_position(pieces:&Vec<MovingPiece>, color:Color) -> u8 {
[INFO] [stdout]     |                                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `color`
[INFO] [stdout]    --> src/main.rs:498:34
[INFO] [stdout]     |
[INFO] [stdout] 498 |         if matches!(&piece.color,color) && matches!(piece.piece,Piece::King) {
[INFO] [stdout]     |                                  ^^^^^ help: if this is intentional, prefix it with an underscore: `_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `color`
[INFO] [stdout]    --> src/main.rs:511:34
[INFO] [stdout]     |
[INFO] [stdout] 511 |         if matches!(&piece.color,color)  {
[INFO] [stdout]     |                                  ^^^^^ help: if this is intentional, prefix it with an underscore: `_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `borrow::BorrowMut`
[INFO] [stdout]  --> src/main.rs:2:11
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::{borrow::BorrowMut, io::{Error, ErrorKind}};
[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:636:9
[INFO] [stdout]     |
[INFO] [stdout] 636 |     let mut number = notation.chars().nth(1).unwrap().to_digit(10).unwrap() as u8;
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `selected_promotion`
[INFO] [stdout]    --> src/main.rs:717:37
[INFO] [stdout]     |
[INFO] [stdout] 717 | ...                   let selected_promotion = &promated_pieces[selected_promotion_index];
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selected_promotion`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `EnPassant`, `Castling`, and `Promotion` are never constructed
[INFO] [stdout]    --> src/main.rs:205:5
[INFO] [stdout]     |
[INFO] [stdout] 202 | enum MoveType {
[INFO] [stdout]     |      -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 205 |     EnPassant,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 206 |     Castling,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 207 |     Promotion,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_pinned` is never used
[INFO] [stdout]    --> src/main.rs:489:4
[INFO] [stdout]     |
[INFO] [stdout] 489 | fn is_pinned(pieces:&Vec<MovingPiece>, position:u8) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_king_position` is never used
[INFO] [stdout]    --> src/main.rs:496:4
[INFO] [stdout]     |
[INFO] [stdout] 496 | fn get_king_position(pieces:&Vec<MovingPiece>, color:Color) -> u8 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_checkmate` is never used
[INFO] [stdout]    --> src/main.rs:506:4
[INFO] [stdout]     |
[INFO] [stdout] 506 | fn is_checkmate(pieces:&Vec<MovingPiece>,color:Color) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
[INFO] [stdout]    --> src/main.rs:257:17
[INFO] [stdout]     |
[INFO] [stdout] 257 |                 drop(piece);
[INFO] [stdout]     |                 ^^^^^-----^
[INFO] [stdout]     |                      |
[INFO] [stdout]     |                      argument has type `&mut MovingPiece`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dropping_references)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the expression or result
[INFO] [stdout]     |
[INFO] [stdout] 257 -                 drop(piece);
[INFO] [stdout] 257 +                 let _ = piece;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/main.rs:408:19
[INFO] [stdout]     |
[INFO] [stdout] 408 |             while get_row(p - 8) >= 0 {
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/main.rs:440:19
[INFO] [stdout]     |
[INFO] [stdout] 440 |             while get_column(p - 1) >= 0 {
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:684:13
[INFO] [stdout]     |
[INFO] [stdout] 684 |             std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 684 |             let _ = std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:699:29
[INFO] [stdout]     |
[INFO] [stdout] 699 | ...                   std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 699 |                             let _ = std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:714:33
[INFO] [stdout]     |
[INFO] [stdout] 714 | ...                   std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 714 |                                 let _ = std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:305:9
[INFO] [stdout]     |
[INFO] [stdout] 305 |     let mut piece = get_piece(pieces, position).unwrap();
[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: unused variable: `captured_piece`
[INFO] [stdout]    --> src/main.rs:412:25
[INFO] [stdout]     |
[INFO] [stdout] 412 |                     let captured_piece = get_piece(pieces, p - 8).unwrap();
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `captured_piece`
[INFO] [stdout]    --> src/main.rs:429:25
[INFO] [stdout]     |
[INFO] [stdout] 429 |                     let captured_piece = get_piece(pieces, p + 8).unwrap();
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `captured_piece`
[INFO] [stdout]    --> src/main.rs:444:25
[INFO] [stdout]     |
[INFO] [stdout] 444 |                     let captured_piece = get_piece(pieces, p - 1).unwrap();
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `captured_piece`
[INFO] [stdout]    --> src/main.rs:460:25
[INFO] [stdout]     |
[INFO] [stdout] 460 |                     let captured_piece = get_piece(pieces, p + 1).unwrap();
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `captured_piece`
[INFO] [stdout]    --> src/main.rs:461:47
[INFO] [stdout]     |
[INFO] [stdout] 461 |                     if !matches!(&piece.color,captured_piece){
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_captured_piece`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pieces`
[INFO] [stdout]    --> src/main.rs:489:14
[INFO] [stdout]     |
[INFO] [stdout] 489 | fn is_pinned(pieces:&Vec<MovingPiece>, position:u8) -> bool {
[INFO] [stdout]     |              ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pieces`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `position`
[INFO] [stdout]    --> src/main.rs:489:40
[INFO] [stdout]     |
[INFO] [stdout] 489 | fn is_pinned(pieces:&Vec<MovingPiece>, position:u8) -> bool {
[INFO] [stdout]     |                                        ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `color`
[INFO] [stdout]    --> src/main.rs:496:48
[INFO] [stdout]     |
[INFO] [stdout] 496 | fn get_king_position(pieces:&Vec<MovingPiece>, color:Color) -> u8 {
[INFO] [stdout]     |                                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `color`
[INFO] [stdout]    --> src/main.rs:498:34
[INFO] [stdout]     |
[INFO] [stdout] 498 |         if matches!(&piece.color,color) && matches!(piece.piece,Piece::King) {
[INFO] [stdout]     |                                  ^^^^^ help: if this is intentional, prefix it with an underscore: `_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `color`
[INFO] [stdout]    --> src/main.rs:511:34
[INFO] [stdout]     |
[INFO] [stdout] 511 |         if matches!(&piece.color,color)  {
[INFO] [stdout]     |                                  ^^^^^ help: if this is intentional, prefix it with an underscore: `_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:636:9
[INFO] [stdout]     |
[INFO] [stdout] 636 |     let mut number = notation.chars().nth(1).unwrap().to_digit(10).unwrap() as u8;
[INFO] [stdout]     |         ----^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `selected_promotion`
[INFO] [stdout]    --> src/main.rs:717:37
[INFO] [stdout]     |
[INFO] [stdout] 717 | ...                   let selected_promotion = &promated_pieces[selected_promotion_index];
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selected_promotion`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `EnPassant`, `Castling`, and `Promotion` are never constructed
[INFO] [stdout]    --> src/main.rs:205:5
[INFO] [stdout]     |
[INFO] [stdout] 202 | enum MoveType {
[INFO] [stdout]     |      -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 205 |     EnPassant,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 206 |     Castling,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 207 |     Promotion,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_pinned` is never used
[INFO] [stdout]    --> src/main.rs:489:4
[INFO] [stdout]     |
[INFO] [stdout] 489 | fn is_pinned(pieces:&Vec<MovingPiece>, position:u8) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_king_position` is never used
[INFO] [stdout]    --> src/main.rs:496:4
[INFO] [stdout]     |
[INFO] [stdout] 496 | fn get_king_position(pieces:&Vec<MovingPiece>, color:Color) -> u8 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_checkmate` is never used
[INFO] [stdout]    --> src/main.rs:506:4
[INFO] [stdout]     |
[INFO] [stdout] 506 | fn is_checkmate(pieces:&Vec<MovingPiece>,color:Color) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing
[INFO] [stdout]    --> src/main.rs:257:17
[INFO] [stdout]     |
[INFO] [stdout] 257 |                 drop(piece);
[INFO] [stdout]     |                 ^^^^^-----^
[INFO] [stdout]     |                      |
[INFO] [stdout]     |                      argument has type `&mut MovingPiece`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dropping_references)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the expression or result
[INFO] [stdout]     |
[INFO] [stdout] 257 -                 drop(piece);
[INFO] [stdout] 257 +                 let _ = piece;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/main.rs:408:19
[INFO] [stdout]     |
[INFO] [stdout] 408 |             while get_row(p - 8) >= 0 {
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]    --> src/main.rs:440:19
[INFO] [stdout]     |
[INFO] [stdout] 440 |             while get_column(p - 1) >= 0 {
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:684:13
[INFO] [stdout]     |
[INFO] [stdout] 684 |             std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 684 |             let _ = std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:699:29
[INFO] [stdout]     |
[INFO] [stdout] 699 | ...                   std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 699 |                             let _ = std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |                             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:714:33
[INFO] [stdout]     |
[INFO] [stdout] 714 | ...                   std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 714 |                                 let _ = std::io::stdin().read_line(&mut input);
[INFO] [stdout]     |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.30s
[INFO] running `Command { std: "docker" "inspect" "0fd864047bc7658e398911f99ef122714692e251ba933ef9a9114a36f2cafeab", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0fd864047bc7658e398911f99ef122714692e251ba933ef9a9114a36f2cafeab", kill_on_drop: false }`
[INFO] [stdout] 0fd864047bc7658e398911f99ef122714692e251ba933ef9a9114a36f2cafeab
