[INFO] cloning repository https://github.com/trosselli/chessGame [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/trosselli/chessGame" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrosselli%2FchessGame", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrosselli%2FchessGame'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0b6f16b96265ac22d5558d623e2f7c4bbcd7ce74 [INFO] checking trosselli/chessGame against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrosselli%2FchessGame" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/trosselli/chessGame [INFO] finished tweaking git repo https://github.com/trosselli/chessGame [INFO] tweaked toml for git repo https://github.com/trosselli/chessGame written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/trosselli/chessGame on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/trosselli/chessGame 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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5010cb9403c80b363ed6dc08fe1be41cdb5f7e73036036214ed55370f8489c10 [INFO] running `Command { std: "docker" "start" "-a" "5010cb9403c80b363ed6dc08fe1be41cdb5f7e73036036214ed55370f8489c10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5010cb9403c80b363ed6dc08fe1be41cdb5f7e73036036214ed55370f8489c10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5010cb9403c80b363ed6dc08fe1be41cdb5f7e73036036214ed55370f8489c10", kill_on_drop: false }` [INFO] [stdout] 5010cb9403c80b363ed6dc08fe1be41cdb5f7e73036036214ed55370f8489c10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98c31d87ddec1143905788551e37ce76320ad4bed45d875e8efcb31d8c91d272 [INFO] running `Command { std: "docker" "start" "-a" "98c31d87ddec1143905788551e37ce76320ad4bed45d875e8efcb31d8c91d272", kill_on_drop: false }` [INFO] [stderr] Checking chessGame v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:352:7 [INFO] [stdout] | [INFO] [stdout] 352 | if(!is_inbounds(current_position)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - if(!is_inbounds(current_position)){ [INFO] [stdout] 352 + if !is_inbounds(current_position) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:403:28 [INFO] [stdout] | [INFO] [stdout] 403 | ...ool = (starting_position.1 as i32 == ending_position.1 as i32 -1 || starting_position.1 as i32 == ending_position.1 as i32 + 1 ); [INFO] [stdout] | ^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 403 - let attacking : bool = (starting_position.1 as i32 == ending_position.1 as i32 -1 || starting_position.1 as i32 == ending_position.1 as i32 + 1 ); [INFO] [stdout] 403 + let attacking : bool = starting_position.1 as i32 == ending_position.1 as i32 -1 || starting_position.1 as i32 == ending_position.1 as i32 + 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:352:7 [INFO] [stdout] | [INFO] [stdout] 352 | if(!is_inbounds(current_position)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - if(!is_inbounds(current_position)){ [INFO] [stdout] 352 + if !is_inbounds(current_position) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:403:28 [INFO] [stdout] | [INFO] [stdout] 403 | ...ool = (starting_position.1 as i32 == ending_position.1 as i32 -1 || starting_position.1 as i32 == ending_position.1 as i32 + 1 ); [INFO] [stdout] | ^ ^^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 403 - let attacking : bool = (starting_position.1 as i32 == ending_position.1 as i32 -1 || starting_position.1 as i32 == ending_position.1 as i32 + 1 ); [INFO] [stdout] 403 + let attacking : bool = starting_position.1 as i32 == ending_position.1 as i32 -1 || starting_position.1 as i32 == ending_position.1 as i32 + 1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/main.rs:151:15 [INFO] [stdout] | [INFO] [stdout] 151 | (Some(first), None) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let mut beg: String; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | let mut end : String; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let mut turn = true; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | let mut gameOver = false; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proposed_move_usize` [INFO] [stdout] --> src/main.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | let proposed_move_usize = as_usize(proposed_move); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proposed_move_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 268 | let mut letter; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | let mut number; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:313:25 [INFO] [stdout] | [INFO] [stdout] 313 | fn validate_piece_move (board:&[[Piece;8];8],starting_position : (i32,i32), ending_position : (i32,i32))-> bool{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_position` [INFO] [stdout] --> src/main.rs:313:46 [INFO] [stdout] | [INFO] [stdout] 313 | fn validate_piece_move (board:&[[Piece;8];8],starting_position : (i32,i32), ending_position : (i32,i32))-> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_position` [INFO] [stdout] --> src/main.rs:313:77 [INFO] [stdout] | [INFO] [stdout] 313 | fn validate_piece_move (board:&[[Piece;8];8],starting_position : (i32,i32), ending_position : (i32,i32))-> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:377:107 [INFO] [stdout] | [INFO] [stdout] 377 | fn pawn_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | let mut move_direction; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `moving_piece` [INFO] [stdout] --> src/main.rs:420:9 [INFO] [stdout] | [INFO] [stdout] 420 | let moving_piece = board[starting_position.0][starting_position.1].clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_moving_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_piece` [INFO] [stdout] --> src/main.rs:421:9 [INFO] [stdout] | [INFO] [stdout] 421 | let ending_piece: Piece = board[ending_position.0][ending_position.1].clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:419:109 [INFO] [stdout] | [INFO] [stdout] 419 | fn bishop_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:426:20 [INFO] [stdout] | [INFO] [stdout] 426 | fn knight_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/main.rs:151:15 [INFO] [stdout] | [INFO] [stdout] 151 | (Some(first), None) => { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_position` [INFO] [stdout] --> src/main.rs:426:41 [INFO] [stdout] | [INFO] [stdout] 426 | fn knight_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_position` [INFO] [stdout] --> src/main.rs:426:76 [INFO] [stdout] | [INFO] [stdout] 426 | fn knight_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:426:109 [INFO] [stdout] | [INFO] [stdout] 426 | fn knight_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let mut beg: String; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | let mut end : String; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:430:19 [INFO] [stdout] | [INFO] [stdout] 430 | fn queen_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_position` [INFO] [stdout] --> src/main.rs:430:40 [INFO] [stdout] | [INFO] [stdout] 430 | fn queen_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_position` [INFO] [stdout] --> src/main.rs:430:75 [INFO] [stdout] | [INFO] [stdout] 430 | fn queen_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:430:108 [INFO] [stdout] | [INFO] [stdout] 430 | fn queen_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:434:18 [INFO] [stdout] | [INFO] [stdout] 434 | fn king_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_position` [INFO] [stdout] --> src/main.rs:434:39 [INFO] [stdout] | [INFO] [stdout] 434 | fn king_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_position` [INFO] [stdout] --> src/main.rs:434:74 [INFO] [stdout] | [INFO] [stdout] 434 | fn king_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | let mut turn = true; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:434:107 [INFO] [stdout] | [INFO] [stdout] 434 | fn king_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:438:18 [INFO] [stdout] | [INFO] [stdout] 438 | fn rook_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_position` [INFO] [stdout] --> src/main.rs:438:39 [INFO] [stdout] | [INFO] [stdout] 438 | fn rook_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_position` [INFO] [stdout] --> src/main.rs:438:74 [INFO] [stdout] | [INFO] [stdout] 438 | fn rook_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:438:107 [INFO] [stdout] | [INFO] [stdout] 438 | fn rook_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | let mut gameOver = false; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proposed_move_usize` [INFO] [stdout] --> src/main.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | let proposed_move_usize = as_usize(proposed_move); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proposed_move_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 268 | let mut letter; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | let mut number; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:313:25 [INFO] [stdout] | [INFO] [stdout] 313 | fn validate_piece_move (board:&[[Piece;8];8],starting_position : (i32,i32), ending_position : (i32,i32))-> bool{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_position` [INFO] [stdout] --> src/main.rs:313:46 [INFO] [stdout] | [INFO] [stdout] 313 | fn validate_piece_move (board:&[[Piece;8];8],starting_position : (i32,i32), ending_position : (i32,i32))-> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_position` [INFO] [stdout] --> src/main.rs:313:77 [INFO] [stdout] | [INFO] [stdout] 313 | fn validate_piece_move (board:&[[Piece;8];8],starting_position : (i32,i32), ending_position : (i32,i32))-> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/main.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_piece_move` is never used [INFO] [stdout] --> src/main.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn validate_piece_move (board:&[[Piece;8];8],starting_position : (i32,i32), ending_position : (i32,i32))-> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `in_check` is never used [INFO] [stdout] --> src/main.rs:318:4 [INFO] [stdout] | [INFO] [stdout] 318 | fn in_check(board:&[[Piece;8];8],turn: bool) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `in_check_helper` is never used [INFO] [stdout] --> src/main.rs:351:4 [INFO] [stdout] | [INFO] [stdout] 351 | fn in_check_helper(board:&[[Piece;8];8],turn:bool,direction: (i32,i32), king_position: (i32,i32),current_position:(i32,i32))-> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_attack` is never used [INFO] [stdout] --> src/main.rs:368:4 [INFO] [stdout] | [INFO] [stdout] 368 | fn can_attack(board:&[[Piece;8];8],attack_position: (usize,usize), victim: (usize,usize),is_clear: bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bishop_movement` is never used [INFO] [stdout] --> src/main.rs:419:4 [INFO] [stdout] | [INFO] [stdout] 419 | fn bishop_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_movement` is never used [INFO] [stdout] --> src/main.rs:426:4 [INFO] [stdout] | [INFO] [stdout] 426 | fn knight_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `queen_movement` is never used [INFO] [stdout] --> src/main.rs:430:4 [INFO] [stdout] | [INFO] [stdout] 430 | fn queen_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `king_movement` is never used [INFO] [stdout] --> src/main.rs:434:4 [INFO] [stdout] | [INFO] [stdout] 434 | fn king_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:377:107 [INFO] [stdout] | [INFO] [stdout] 377 | fn pawn_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rook_movement` is never used [INFO] [stdout] --> src/main.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn rook_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gameOver` should have a snake case name [INFO] [stdout] --> src/main.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | let mut gameOver = false; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_over` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | let mut move_direction; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `moving_piece` [INFO] [stdout] --> src/main.rs:420:9 [INFO] [stdout] | [INFO] [stdout] 420 | let moving_piece = board[starting_position.0][starting_position.1].clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_moving_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_piece` [INFO] [stdout] --> src/main.rs:421:9 [INFO] [stdout] | [INFO] [stdout] 421 | let ending_piece: Piece = board[ending_position.0][ending_position.1].clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:419:109 [INFO] [stdout] | [INFO] [stdout] 419 | fn bishop_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:426:20 [INFO] [stdout] | [INFO] [stdout] 426 | fn knight_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_position` [INFO] [stdout] --> src/main.rs:426:41 [INFO] [stdout] | [INFO] [stdout] 426 | fn knight_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_position` [INFO] [stdout] --> src/main.rs:426:76 [INFO] [stdout] | [INFO] [stdout] 426 | fn knight_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:426:109 [INFO] [stdout] | [INFO] [stdout] 426 | fn knight_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:430:19 [INFO] [stdout] | [INFO] [stdout] 430 | fn queen_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_position` [INFO] [stdout] --> src/main.rs:430:40 [INFO] [stdout] | [INFO] [stdout] 430 | fn queen_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_position` [INFO] [stdout] --> src/main.rs:430:75 [INFO] [stdout] | [INFO] [stdout] 430 | fn queen_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:430:108 [INFO] [stdout] | [INFO] [stdout] 430 | fn queen_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:434:18 [INFO] [stdout] | [INFO] [stdout] 434 | fn king_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_position` [INFO] [stdout] --> src/main.rs:434:39 [INFO] [stdout] | [INFO] [stdout] 434 | fn king_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_position` [INFO] [stdout] --> src/main.rs:434:74 [INFO] [stdout] | [INFO] [stdout] 434 | fn king_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:434:107 [INFO] [stdout] | [INFO] [stdout] 434 | fn king_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/main.rs:438:18 [INFO] [stdout] | [INFO] [stdout] 438 | fn rook_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_position` [INFO] [stdout] --> src/main.rs:438:39 [INFO] [stdout] | [INFO] [stdout] 438 | fn rook_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ending_position` [INFO] [stdout] --> src/main.rs:438:74 [INFO] [stdout] | [INFO] [stdout] 438 | fn rook_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ending_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_clear` [INFO] [stdout] --> src/main.rs:438:107 [INFO] [stdout] | [INFO] [stdout] 438 | fn rook_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_clear` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/main.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_piece_move` is never used [INFO] [stdout] --> src/main.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn validate_piece_move (board:&[[Piece;8];8],starting_position : (i32,i32), ending_position : (i32,i32))-> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `in_check` is never used [INFO] [stdout] --> src/main.rs:318:4 [INFO] [stdout] | [INFO] [stdout] 318 | fn in_check(board:&[[Piece;8];8],turn: bool) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `in_check_helper` is never used [INFO] [stdout] --> src/main.rs:351:4 [INFO] [stdout] | [INFO] [stdout] 351 | fn in_check_helper(board:&[[Piece;8];8],turn:bool,direction: (i32,i32), king_position: (i32,i32),current_position:(i32,i32))-> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_attack` is never used [INFO] [stdout] --> src/main.rs:368:4 [INFO] [stdout] | [INFO] [stdout] 368 | fn can_attack(board:&[[Piece;8];8],attack_position: (usize,usize), victim: (usize,usize),is_clear: bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pawn_movement` is never used [INFO] [stdout] --> src/main.rs:377:4 [INFO] [stdout] | [INFO] [stdout] 377 | fn pawn_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bishop_movement` is never used [INFO] [stdout] --> src/main.rs:419:4 [INFO] [stdout] | [INFO] [stdout] 419 | fn bishop_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_movement` is never used [INFO] [stdout] --> src/main.rs:426:4 [INFO] [stdout] | [INFO] [stdout] 426 | fn knight_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `queen_movement` is never used [INFO] [stdout] --> src/main.rs:430:4 [INFO] [stdout] | [INFO] [stdout] 430 | fn queen_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `king_movement` is never used [INFO] [stdout] --> src/main.rs:434:4 [INFO] [stdout] | [INFO] [stdout] 434 | fn king_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rook_movement` is never used [INFO] [stdout] --> src/main.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn rook_movement(board:&[[Piece;8];8],starting_position : (usize,usize), ending_position : (usize, usize),is_clear:bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_board` is never used [INFO] [stdout] --> src/main.rs:451:4 [INFO] [stdout] | [INFO] [stdout] 451 | fn create_test_board() -> [[Piece; 8]; 8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gameOver` should have a snake case name [INFO] [stdout] --> src/main.rs:166:13 [INFO] [stdout] | [INFO] [stdout] 166 | let mut gameOver = false; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_over` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "98c31d87ddec1143905788551e37ce76320ad4bed45d875e8efcb31d8c91d272", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98c31d87ddec1143905788551e37ce76320ad4bed45d875e8efcb31d8c91d272", kill_on_drop: false }` [INFO] [stdout] 98c31d87ddec1143905788551e37ce76320ad4bed45d875e8efcb31d8c91d272