[INFO] cloning repository https://github.com/kempchee/rust_chess_move_generator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kempchee/rust_chess_move_generator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkempchee%2Frust_chess_move_generator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkempchee%2Frust_chess_move_generator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 803e4be8c86d863422b61f80c27f4d1e7afb11d0 [INFO] checking kempchee/rust_chess_move_generator against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkempchee%2Frust_chess_move_generator" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kempchee/rust_chess_move_generator [INFO] finished tweaking git repo https://github.com/kempchee/rust_chess_move_generator [INFO] tweaked toml for git repo https://github.com/kempchee/rust_chess_move_generator written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kempchee/rust_chess_move_generator on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kempchee/rust_chess_move_generator 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a696247a2b689c6fdfc240edee2f6c2217c0703f329e679f1c7d795eba93f01a [INFO] running `Command { std: "docker" "start" "-a" "a696247a2b689c6fdfc240edee2f6c2217c0703f329e679f1c7d795eba93f01a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a696247a2b689c6fdfc240edee2f6c2217c0703f329e679f1c7d795eba93f01a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a696247a2b689c6fdfc240edee2f6c2217c0703f329e679f1c7d795eba93f01a", kill_on_drop: false }` [INFO] [stdout] a696247a2b689c6fdfc240edee2f6c2217c0703f329e679f1c7d795eba93f01a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f524d3668d390edbc8146e717fed0ad16e7df4d06c4372c902d6261142391adb [INFO] running `Command { std: "docker" "start" "-a" "f524d3668d390edbc8146e717fed0ad16e7df4d06c4372c902d6261142391adb", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking move_generator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `column` [INFO] [stdout] --> src/main.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | for (column_index,column) in row.iter().enumerate(){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_column` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `converted_fen` [INFO] [stdout] --> src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let converted_fen=convert_array_to_fen(board_array,side_to_play,castling_availability,enpassant_target,half_move_clock,full_move_numb... [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_converted_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let mut piece_locations=duplicate_moves.get(key).unwrap().clone(); [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:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let mut notation_letter:String="R".to_string(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_row` [INFO] [stdout] --> src/main.rs:219:29 [INFO] [stdout] | [INFO] [stdout] 219 | fn add_available_moves_pawn(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_column` [INFO] [stdout] --> src/main.rs:219:45 [INFO] [stdout] | [INFO] [stdout] 219 | fn add_available_moves_pawn(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_array` [INFO] [stdout] --> src/main.rs:219:64 [INFO] [stdout] | [INFO] [stdout] 219 | fn add_available_moves_pawn(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_moves` [INFO] [stdout] --> src/main.rs:219:90 [INFO] [stdout] | [INFO] [stdout] 219 | fn add_available_moves_pawn(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:219:123 [INFO] [stdout] | [INFO] [stdout] 219 | fn add_available_moves_pawn(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_row` [INFO] [stdout] --> src/main.rs:223:31 [INFO] [stdout] | [INFO] [stdout] 223 | fn add_available_moves_bishop(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_column` [INFO] [stdout] --> src/main.rs:223:47 [INFO] [stdout] | [INFO] [stdout] 223 | fn add_available_moves_bishop(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_array` [INFO] [stdout] --> src/main.rs:223:66 [INFO] [stdout] | [INFO] [stdout] 223 | fn add_available_moves_bishop(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_moves` [INFO] [stdout] --> src/main.rs:223:92 [INFO] [stdout] | [INFO] [stdout] 223 | fn add_available_moves_bishop(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:223:125 [INFO] [stdout] | [INFO] [stdout] 223 | fn add_available_moves_bishop(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_row` [INFO] [stdout] --> src/main.rs:227:31 [INFO] [stdout] | [INFO] [stdout] 227 | fn add_available_moves_knight(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_column` [INFO] [stdout] --> src/main.rs:227:47 [INFO] [stdout] | [INFO] [stdout] 227 | fn add_available_moves_knight(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_array` [INFO] [stdout] --> src/main.rs:227:66 [INFO] [stdout] | [INFO] [stdout] 227 | fn add_available_moves_knight(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_moves` [INFO] [stdout] --> src/main.rs:227:92 [INFO] [stdout] | [INFO] [stdout] 227 | fn add_available_moves_knight(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:227:125 [INFO] [stdout] | [INFO] [stdout] 227 | fn add_available_moves_knight(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_row` [INFO] [stdout] --> src/main.rs:231:29 [INFO] [stdout] | [INFO] [stdout] 231 | fn add_available_moves_king(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_column` [INFO] [stdout] --> src/main.rs:231:45 [INFO] [stdout] | [INFO] [stdout] 231 | fn add_available_moves_king(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_array` [INFO] [stdout] --> src/main.rs:231:64 [INFO] [stdout] | [INFO] [stdout] 231 | fn add_available_moves_king(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_moves` [INFO] [stdout] --> src/main.rs:231:90 [INFO] [stdout] | [INFO] [stdout] 231 | fn add_available_moves_king(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:231:123 [INFO] [stdout] | [INFO] [stdout] 231 | fn add_available_moves_king(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_row` [INFO] [stdout] --> src/main.rs:235:30 [INFO] [stdout] | [INFO] [stdout] 235 | fn add_available_moves_queen(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_column` [INFO] [stdout] --> src/main.rs:235:46 [INFO] [stdout] | [INFO] [stdout] 235 | fn add_available_moves_queen(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_array` [INFO] [stdout] --> src/main.rs:235:65 [INFO] [stdout] | [INFO] [stdout] 235 | fn add_available_moves_queen(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_moves` [INFO] [stdout] --> src/main.rs:235:91 [INFO] [stdout] | [INFO] [stdout] 235 | fn add_available_moves_queen(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:235:124 [INFO] [stdout] | [INFO] [stdout] 235 | fn add_available_moves_queen(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:249:21 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..char.parse::().unwrap(){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:143:92 [INFO] [stdout] | [INFO] [stdout] 143 | ... let possible_move=notation_letter.clone()+COLUMNS_LOOKUP[start_column as usize].clone()+ROWS_LOOKUP[(start_row+row_counter) as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:149:96 [INFO] [stdout] | [INFO] [stdout] 149 | ... let possible_move=notation_letter.clone()+"x"+COLUMNS_LOOKUP[start_column as usize].clone()+ROWS_LOOKUP[(start_row+row_counter)as u... [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:161:92 [INFO] [stdout] | [INFO] [stdout] 161 | ... let possible_move=notation_letter.clone()+COLUMNS_LOOKUP[start_column as usize].clone()+ROWS_LOOKUP[(start_row-row_counter) as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:167:96 [INFO] [stdout] | [INFO] [stdout] 167 | ... let possible_move=notation_letter.clone()+"x"+COLUMNS_LOOKUP[start_column as usize].clone()+ROWS_LOOKUP[(start_row-row_counter) as ... [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:178:109 [INFO] [stdout] | [INFO] [stdout] 178 | ...LOOKUP[(start_column+column_counter) as usize].clone()+ROWS_LOOKUP[start_row as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:184:113 [INFO] [stdout] | [INFO] [stdout] 184 | ...LOOKUP[(start_column+column_counter) as usize].clone()+ROWS_LOOKUP[start_row as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:196:109 [INFO] [stdout] | [INFO] [stdout] 196 | ...LOOKUP[(start_column-column_counter) as usize].clone()+ROWS_LOOKUP[start_row as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:202:113 [INFO] [stdout] | [INFO] [stdout] 202 | ...LOOKUP[(start_column-column_counter) as usize].clone()+ROWS_LOOKUP[start_row as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `column` [INFO] [stdout] --> src/main.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | for (column_index,column) in row.iter().enumerate(){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_column` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `converted_fen` [INFO] [stdout] --> src/main.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let converted_fen=convert_array_to_fen(board_array,side_to_play,castling_availability,enpassant_target,half_move_clock,full_move_numb... [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_converted_fen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let mut piece_locations=duplicate_moves.get(key).unwrap().clone(); [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:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | let mut notation_letter:String="R".to_string(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_row` [INFO] [stdout] --> src/main.rs:219:29 [INFO] [stdout] | [INFO] [stdout] 219 | fn add_available_moves_pawn(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_column` [INFO] [stdout] --> src/main.rs:219:45 [INFO] [stdout] | [INFO] [stdout] 219 | fn add_available_moves_pawn(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_array` [INFO] [stdout] --> src/main.rs:219:64 [INFO] [stdout] | [INFO] [stdout] 219 | fn add_available_moves_pawn(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_moves` [INFO] [stdout] --> src/main.rs:219:90 [INFO] [stdout] | [INFO] [stdout] 219 | fn add_available_moves_pawn(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:219:123 [INFO] [stdout] | [INFO] [stdout] 219 | fn add_available_moves_pawn(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_row` [INFO] [stdout] --> src/main.rs:223:31 [INFO] [stdout] | [INFO] [stdout] 223 | fn add_available_moves_bishop(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_column` [INFO] [stdout] --> src/main.rs:223:47 [INFO] [stdout] | [INFO] [stdout] 223 | fn add_available_moves_bishop(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_array` [INFO] [stdout] --> src/main.rs:223:66 [INFO] [stdout] | [INFO] [stdout] 223 | fn add_available_moves_bishop(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_moves` [INFO] [stdout] --> src/main.rs:223:92 [INFO] [stdout] | [INFO] [stdout] 223 | fn add_available_moves_bishop(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:223:125 [INFO] [stdout] | [INFO] [stdout] 223 | fn add_available_moves_bishop(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_row` [INFO] [stdout] --> src/main.rs:227:31 [INFO] [stdout] | [INFO] [stdout] 227 | fn add_available_moves_knight(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_column` [INFO] [stdout] --> src/main.rs:227:47 [INFO] [stdout] | [INFO] [stdout] 227 | fn add_available_moves_knight(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_array` [INFO] [stdout] --> src/main.rs:227:66 [INFO] [stdout] | [INFO] [stdout] 227 | fn add_available_moves_knight(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_moves` [INFO] [stdout] --> src/main.rs:227:92 [INFO] [stdout] | [INFO] [stdout] 227 | fn add_available_moves_knight(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:227:125 [INFO] [stdout] | [INFO] [stdout] 227 | fn add_available_moves_knight(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_row` [INFO] [stdout] --> src/main.rs:231:29 [INFO] [stdout] | [INFO] [stdout] 231 | fn add_available_moves_king(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_column` [INFO] [stdout] --> src/main.rs:231:45 [INFO] [stdout] | [INFO] [stdout] 231 | fn add_available_moves_king(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_array` [INFO] [stdout] --> src/main.rs:231:64 [INFO] [stdout] | [INFO] [stdout] 231 | fn add_available_moves_king(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_moves` [INFO] [stdout] --> src/main.rs:231:90 [INFO] [stdout] | [INFO] [stdout] 231 | fn add_available_moves_king(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:231:123 [INFO] [stdout] | [INFO] [stdout] 231 | fn add_available_moves_king(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_row` [INFO] [stdout] --> src/main.rs:235:30 [INFO] [stdout] | [INFO] [stdout] 235 | fn add_available_moves_queen(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_column` [INFO] [stdout] --> src/main.rs:235:46 [INFO] [stdout] | [INFO] [stdout] 235 | fn add_available_moves_queen(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board_array` [INFO] [stdout] --> src/main.rs:235:65 [INFO] [stdout] | [INFO] [stdout] 235 | fn add_available_moves_queen(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_board_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `available_moves` [INFO] [stdout] --> src/main.rs:235:91 [INFO] [stdout] | [INFO] [stdout] 235 | fn add_available_moves_queen(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `color` [INFO] [stdout] --> src/main.rs:235:124 [INFO] [stdout] | [INFO] [stdout] 235 | fn add_available_moves_queen(start_row:usize,start_column:usize,board_array:&[[&str;8];8],available_moves:&mut Vec,color:&str)->(){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_color` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:249:21 [INFO] [stdout] | [INFO] [stdout] 249 | for i in 0..char.parse::().unwrap(){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:143:92 [INFO] [stdout] | [INFO] [stdout] 143 | ... let possible_move=notation_letter.clone()+COLUMNS_LOOKUP[start_column as usize].clone()+ROWS_LOOKUP[(start_row+row_counter) as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:149:96 [INFO] [stdout] | [INFO] [stdout] 149 | ... let possible_move=notation_letter.clone()+"x"+COLUMNS_LOOKUP[start_column as usize].clone()+ROWS_LOOKUP[(start_row+row_counter)as u... [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:161:92 [INFO] [stdout] | [INFO] [stdout] 161 | ... let possible_move=notation_letter.clone()+COLUMNS_LOOKUP[start_column as usize].clone()+ROWS_LOOKUP[(start_row-row_counter) as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:167:96 [INFO] [stdout] | [INFO] [stdout] 167 | ... let possible_move=notation_letter.clone()+"x"+COLUMNS_LOOKUP[start_column as usize].clone()+ROWS_LOOKUP[(start_row-row_counter) as ... [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:178:109 [INFO] [stdout] | [INFO] [stdout] 178 | ...LOOKUP[(start_column+column_counter) as usize].clone()+ROWS_LOOKUP[start_row as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:184:113 [INFO] [stdout] | [INFO] [stdout] 184 | ...LOOKUP[(start_column+column_counter) as usize].clone()+ROWS_LOOKUP[start_row as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:196:109 [INFO] [stdout] | [INFO] [stdout] 196 | ...LOOKUP[(start_column-column_counter) as usize].clone()+ROWS_LOOKUP[start_row as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:202:113 [INFO] [stdout] | [INFO] [stdout] 202 | ...LOOKUP[(start_column-column_counter) as usize].clone()+ROWS_LOOKUP[start_row as usize]; [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "f524d3668d390edbc8146e717fed0ad16e7df4d06c4372c902d6261142391adb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f524d3668d390edbc8146e717fed0ad16e7df4d06c4372c902d6261142391adb", kill_on_drop: false }` [INFO] [stdout] f524d3668d390edbc8146e717fed0ad16e7df4d06c4372c902d6261142391adb