[INFO] cloning repository https://github.com/Corgwn/ai_chess
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Corgwn/ai_chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCorgwn%2Fai_chess", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCorgwn%2Fai_chess'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7f7a799a383da8a37f72d0101397219aa7f06d45
[INFO] checking Corgwn/ai_chess against try#0611f7de057c584b8771102fde7aed6c70c71d3b for pr-146440
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCorgwn%2Fai_chess" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Corgwn/ai_chess
[INFO] finished tweaking git repo https://github.com/Corgwn/ai_chess
[INFO] tweaked toml for git repo https://github.com/Corgwn/ai_chess written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Corgwn/ai_chess on toolchain 0611f7de057c584b8771102fde7aed6c70c71d3b
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Corgwn/ai_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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7e9bd4e86171248096010efa2b170b6067b164e9d68b1bea26f37265b10f986e
[INFO] running `Command { std: "docker" "start" "-a" "7e9bd4e86171248096010efa2b170b6067b164e9d68b1bea26f37265b10f986e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7e9bd4e86171248096010efa2b170b6067b164e9d68b1bea26f37265b10f986e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7e9bd4e86171248096010efa2b170b6067b164e9d68b1bea26f37265b10f986e", kill_on_drop: false }`
[INFO] [stdout] 7e9bd4e86171248096010efa2b170b6067b164e9d68b1bea26f37265b10f986e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] aa1e5e3da4b32299f0bf1ca1196d5bb39a05844ba31fcdacc128a43cc6072c03
[INFO] running `Command { std: "docker" "start" "-a" "aa1e5e3da4b32299f0bf1ca1196d5bb39a05844ba31fcdacc128a43cc6072c03", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.93
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]     Checking memchr v2.7.2
[INFO] [stderr]    Compiling serde v1.0.217
[INFO] [stderr]     Checking regex-syntax v0.8.3
[INFO] [stderr]     Checking ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling serde_json v1.0.135
[INFO] [stderr]    Compiling rayon-core v1.12.1
[INFO] [stderr]     Checking half v2.4.1
[INFO] [stderr]     Checking plotters-backend v0.3.7
[INFO] [stderr]     Checking itoa v1.0.14
[INFO] [stderr]     Checking os_str_bytes v6.6.1
[INFO] [stderr]     Checking ciborium-io v0.2.2
[INFO] [stderr]     Checking plotters-svg v0.3.7
[INFO] [stderr]     Checking ciborium-ll v0.2.2
[INFO] [stderr]     Checking aho-corasick v1.1.3
[INFO] [stderr]     Checking clap_lex v0.2.4
[INFO] [stderr]     Checking itertools v0.10.5
[INFO] [stderr]     Checking getrandom v0.2.9
[INFO] [stderr]    Compiling quote v1.0.38
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking textwrap v0.16.1
[INFO] [stderr]     Checking cast v0.3.0
[INFO] [stderr]    Compiling syn v2.0.96
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rayon v1.10.0
[INFO] [stderr]     Checking clap v3.2.25
[INFO] [stderr]     Checking rand v0.8.6
[INFO] [stderr]     Checking plotters v0.3.7
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking anes v0.1.6
[INFO] [stderr]     Checking oorandom v11.1.4
[INFO] [stderr]     Checking regex-automata v0.4.6
[INFO] [stderr]     Checking criterion-plot v0.5.0
[INFO] [stderr]     Checking regex v1.10.4
[INFO] [stderr]    Compiling serde_derive v1.0.217
[INFO] [stderr]    Compiling snafu-derive v0.8.5
[INFO] [stderr]     Checking snafu v0.8.5
[INFO] [stderr]     Checking ai_chess v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::utils::gamemove2d::to_let`
[INFO] [stdout]  --> src/board/array2d.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::utils::gamemove2d::to_let;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `game`
[INFO] [stdout]    --> src/ai/negamax_mailbox.rs:114:9
[INFO] [stdout]     |
[INFO] [stdout] 114 |         game: Mailbox,
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_game`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `search_time`
[INFO] [stdout]    --> src/ai/negamax_mailbox.rs:115:9
[INFO] [stdout]     |
[INFO] [stdout] 115 |         search_time: u128,
[INFO] [stdout]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_search_time`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `available_moves`
[INFO] [stdout]    --> src/ai/negamax_mailbox.rs:116:9
[INFO] [stdout]     |
[INFO] [stdout] 116 |         available_moves: Option<Vec<GameMove1d>>,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_available_moves`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `mate_moves`
[INFO] [stdout]    --> src/ai/negamax_mailbox.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 117 |         mate_moves: usize,
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mate_moves`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `Array2D` is never constructed
[INFO] [stdout]   --> src/board/array2d.rs:41:12
[INFO] [stdout]    |
[INFO] [stdout] 41 | pub struct Array2D {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout]    = note: `#[deny(unused_unconstructable_pub_struct)]` (part of `#[deny(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `START_POSITION` is never used
[INFO] [stdout]   --> src/board/array2d.rs:11:7
[INFO] [stdout]    |
[INFO] [stdout] 11 | const START_POSITION: &str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `KNIGHT_OFFSETS` is never used
[INFO] [stdout]   --> src/board/array2d.rs:12:7
[INFO] [stdout]    |
[INFO] [stdout] 12 | const KNIGHT_OFFSETS: [[i32; 2]; 8] = [
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ROOK_OFFSETS` is never used
[INFO] [stdout]   --> src/board/array2d.rs:22:7
[INFO] [stdout]    |
[INFO] [stdout] 22 | const ROOK_OFFSETS: [[i32; 2]; 4] = [[-1, 0], [1, 0], [0, -1], [0, 1]];
[INFO] [stdout]    |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BISHOP_OFFSETS` is never used
[INFO] [stdout]   --> src/board/array2d.rs:23:7
[INFO] [stdout]    |
[INFO] [stdout] 23 | const BISHOP_OFFSETS: [[i32; 2]; 4] = [[-1, -1], [-1, 1], [1, -1], [1, 1]];
[INFO] [stdout]    |       ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `ROYAL_OFFSETS` is never used
[INFO] [stdout]   --> src/board/array2d.rs:24:7
[INFO] [stdout]    |
[INFO] [stdout] 24 | const ROYAL_OFFSETS: [[i32; 2]; 8] = [
[INFO] [stdout]    |       ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `EMPTY_PIECE` is never used
[INFO] [stdout]   --> src/board/array2d.rs:34:7
[INFO] [stdout]    |
[INFO] [stdout] 34 | const EMPTY_PIECE: Pieces = Pieces {
[INFO] [stdout]    |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/board/array2d.rs:46:5
[INFO] [stdout]    |
[INFO] [stdout] 41 | pub struct Array2D {
[INFO] [stdout]    |            ------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 46 |     castling_rights: [bool; 4],
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 47 |     //None if no en passant is possible, Some if possible by taking the position given with a pawn
[INFO] [stdout] 48 |     en_passant: Option<[usize; 2]>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 49 |     half_moves: usize,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 50 |     full_moves: usize,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 51 |     check: Option<bool>,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 52 |     white_king: [usize; 2],
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 53 |     black_king: [usize; 2],
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 54 |     white_attack_map: [[u8; 8]; 8],
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 55 |     black_attack_map: [[u8; 8]; 8],
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Array2D` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `generate_attack_maps` is never used
[INFO] [stdout]   --> src/board/array2d.rs:59:8
[INFO] [stdout]    |
[INFO] [stdout] 58 | impl Array2D {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] 59 |     fn generate_attack_maps(board: [[Pieces; 8]; 8]) -> [[[u8; 8]; 8]; 2] {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/board/array2d.rs:196:8
[INFO] [stdout]     |
[INFO] [stdout] 195 | impl Array2D {
[INFO] [stdout]     | ------------ associated items in this implementation
[INFO] [stdout] 196 |     fn setup_board(fen: Option<&str>) -> Self {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 289 |     fn get_valid_moves(&self) -> Vec<GameMove2d> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 352 |     fn make_move(&self, mov: &GameMove2d) -> Array2D {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 460 |     fn get_check(&self) -> Option<bool> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 464 |     fn get_curr_player(&self) -> bool {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 468 |     fn get_board_as_2d(&self) -> [[Pieces; 8]; 8] {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 472 |     fn get_castle_rights(&self) -> [bool; 4] {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `find_moves` is never used
[INFO] [stdout]    --> src/board/array2d.rs:478:4
[INFO] [stdout]     |
[INFO] [stdout] 478 | fn find_moves(
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `king_moves` is never used
[INFO] [stdout]    --> src/board/array2d.rs:549:4
[INFO] [stdout]     |
[INFO] [stdout] 549 | fn king_moves(game: &Array2D, start: [usize; 2], player: bool) -> Vec<GameMove2d> {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `pawn_moves` is never used
[INFO] [stdout]    --> src/board/array2d.rs:684:4
[INFO] [stdout]     |
[INFO] [stdout] 684 | fn pawn_moves(game: &Array2D, start: [usize; 2], player: bool) -> Vec<GameMove2d> {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_in_bounds` is never used
[INFO] [stdout]    --> src/board/array2d.rs:934:4
[INFO] [stdout]     |
[INFO] [stdout] 934 | fn is_in_bounds(pos: [i32; 2]) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_white_checked` is never used
[INFO] [stdout]    --> src/board/array2d.rs:941:4
[INFO] [stdout]     |
[INFO] [stdout] 941 | fn is_white_checked(game: &Array2D) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `is_black_checked` is never used
[INFO] [stdout]    --> src/board/array2d.rs:945:4
[INFO] [stdout]     |
[INFO] [stdout] 945 | fn is_black_checked(game: &Array2D) -> bool {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `who_is_checked` is never used
[INFO] [stdout]    --> src/board/array2d.rs:949:4
[INFO] [stdout]     |
[INFO] [stdout] 949 | fn who_is_checked(game: &Array2D) -> Option<bool> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `backtrace` and `print_info` are never used
[INFO] [stdout]    --> src/board/mailbox.rs:948:8
[INFO] [stdout]     |
[INFO] [stdout] 155 | impl Mailbox {
[INFO] [stdout]     | ------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 948 |     fn backtrace(&self) {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 955 |     fn print_info(&self) {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `WHITE` is never used
[INFO] [stdout]  --> src/utils/pieces.rs:6:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub(crate) const WHITE: bool = false;
[INFO] [stdout]   |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLACK` is never used
[INFO] [stdout]  --> src/utils/pieces.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub(crate) const BLACK: bool = true;
[INFO] [stdout]   |                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ai_chess` (lib) due to 1 previous error; 24 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "aa1e5e3da4b32299f0bf1ca1196d5bb39a05844ba31fcdacc128a43cc6072c03", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aa1e5e3da4b32299f0bf1ca1196d5bb39a05844ba31fcdacc128a43cc6072c03", kill_on_drop: false }`
[INFO] [stdout] aa1e5e3da4b32299f0bf1ca1196d5bb39a05844ba31fcdacc128a43cc6072c03
