[INFO] cloning repository https://github.com/erikfastermann/baby-chess-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/erikfastermann/baby-chess-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikfastermann%2Fbaby-chess-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikfastermann%2Fbaby-chess-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8354ec5169696eeee963c69df6a2ff654f4502b7 [INFO] checking erikfastermann/baby-chess-engine/8354ec5169696eeee963c69df6a2ff654f4502b7 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikfastermann%2Fbaby-chess-engine" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/erikfastermann/baby-chess-engine on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/erikfastermann/baby-chess-engine [INFO] finished tweaking git repo https://github.com/erikfastermann/baby-chess-engine [INFO] tweaked toml for git repo https://github.com/erikfastermann/baby-chess-engine written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/erikfastermann/baby-chess-engine 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b69b0888e89a0b391fdf82b748000dfd9ac6e4bd38ccd83e8f797c2e07f2d27b [INFO] running `Command { std: "docker" "start" "-a" "b69b0888e89a0b391fdf82b748000dfd9ac6e4bd38ccd83e8f797c2e07f2d27b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b69b0888e89a0b391fdf82b748000dfd9ac6e4bd38ccd83e8f797c2e07f2d27b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b69b0888e89a0b391fdf82b748000dfd9ac6e4bd38ccd83e8f797c2e07f2d27b", kill_on_drop: false }` [INFO] [stdout] b69b0888e89a0b391fdf82b748000dfd9ac6e4bd38ccd83e8f797c2e07f2d27b [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50fa717221ddc2c6f3a8fa20e489e858f45429f653d307971769779f2c1288e7 [INFO] running `Command { std: "docker" "start" "-a" "50fa717221ddc2c6f3a8fa20e489e858f45429f653d307971769779f2c1288e7", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Checking baby_chess_engine v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/board.rs (1 fix) [INFO] [stderr] Fixed src/moves.rs (3 fixes) [INFO] [stderr] Fixed src/init.rs (1 fix) [INFO] [stderr] Fixed src/eval.rs (1 fix) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/moves.rs:442:57 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn fill<'a>(&'a mut self, board: &mut Board) -> &[Move] { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/eval.rs:211:14 [INFO] [stdout] | [INFO] [stdout] 211 | unsafe { &BLACK_PIECE_SQUARE_TABLES } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 211 | unsafe { addr_of!(BLACK_PIECE_SQUARE_TABLES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/eval.rs:215:33 [INFO] [stdout] | [INFO] [stdout] 215 | reverse_piece_square_tables(&mut BLACK_PIECE_SQUARE_TABLES) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 215 | reverse_piece_square_tables(addr_of_mut!(BLACK_PIECE_SQUARE_TABLES)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/moves.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | king_moves(&mut KING_MOVES); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | king_moves(addr_of_mut!(KING_MOVES)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/moves.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | knight_moves(&mut KNIGHT_MOVES); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 78 | knight_moves(addr_of_mut!(KNIGHT_MOVES)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece`, `from`, `to`, `we_can_castle`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:626:9 [INFO] [stdout] | [INFO] [stdout] 625 | NonCapture { [INFO] [stdout] | ---------- fields in this variant [INFO] [stdout] 626 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 627 | from: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 628 | to: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 629 | we_can_castle: CanCastle, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 630 | en_passant_index: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/board.rs:633:9 [INFO] [stdout] | [INFO] [stdout] 632 | Capture { [INFO] [stdout] | ------- fields in this variant [INFO] [stdout] 633 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 634 | from: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 635 | to: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 636 | captured_piece: Piece, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 637 | we_can_castle: CanCastle, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 638 | enemy_can_castle: CanCastle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 639 | en_passant_index: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:641:17 [INFO] [stdout] | [INFO] [stdout] 641 | EnPassant { from: u8, to: u8, en_passant_index: Option, }, [INFO] [stdout] | --------- ^^^^ ^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, `we_can_castle`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:642:14 [INFO] [stdout] | [INFO] [stdout] 642 | Castle { from: u8, to: u8, we_can_castle: CanCastle, en_passant_index: Option, }, [INFO] [stdout] | ------ ^^^^ ^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, `promotion_piece`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:643:17 [INFO] [stdout] | [INFO] [stdout] 643 | Promotion { from: u8, to: u8, promotion_piece: Piece, en_passant_index: Option, }, [INFO] [stdout] | --------- ^^^^ ^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, `promotion_piece`, `captured_piece`, `enemy_can_castle`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:645:9 [INFO] [stdout] | [INFO] [stdout] 644 | PromotionCapture { [INFO] [stdout] | ---------------- fields in this variant [INFO] [stdout] 645 | from: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 646 | to: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 647 | promotion_piece: Piece, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 648 | captured_piece: Piece, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 649 | enemy_can_castle: CanCastle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 650 | en_passant_index: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:652:18 [INFO] [stdout] | [INFO] [stdout] 652 | PawnDouble { from: u8, to: u8, en_passant_index: Option, } [INFO] [stdout] | ---------- ^^^^ ^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_with` is never used [INFO] [stdout] --> src/game.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Game { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | fn reset_with(&mut self, other: &Self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/moves.rs:442:57 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn fill<'a>(&'a mut self, board: &mut Board) -> &[Move] { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/eval.rs:211:14 [INFO] [stdout] | [INFO] [stdout] 211 | unsafe { &BLACK_PIECE_SQUARE_TABLES } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 211 | unsafe { addr_of!(BLACK_PIECE_SQUARE_TABLES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/eval.rs:215:33 [INFO] [stdout] | [INFO] [stdout] 215 | reverse_piece_square_tables(&mut BLACK_PIECE_SQUARE_TABLES) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 215 | reverse_piece_square_tables(addr_of_mut!(BLACK_PIECE_SQUARE_TABLES)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/moves.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | king_moves(&mut KING_MOVES); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | king_moves(addr_of_mut!(KING_MOVES)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/moves.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | knight_moves(&mut KNIGHT_MOVES); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 78 | knight_moves(addr_of_mut!(KNIGHT_MOVES)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece`, `from`, `to`, `we_can_castle`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:626:9 [INFO] [stdout] | [INFO] [stdout] 625 | NonCapture { [INFO] [stdout] | ---------- fields in this variant [INFO] [stdout] 626 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 627 | from: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 628 | to: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 629 | we_can_castle: CanCastle, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 630 | en_passant_index: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/board.rs:633:9 [INFO] [stdout] | [INFO] [stdout] 632 | Capture { [INFO] [stdout] | ------- fields in this variant [INFO] [stdout] 633 | piece: Piece, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 634 | from: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 635 | to: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 636 | captured_piece: Piece, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 637 | we_can_castle: CanCastle, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 638 | enemy_can_castle: CanCastle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 639 | en_passant_index: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:641:17 [INFO] [stdout] | [INFO] [stdout] 641 | EnPassant { from: u8, to: u8, en_passant_index: Option, }, [INFO] [stdout] | --------- ^^^^ ^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, `we_can_castle`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:642:14 [INFO] [stdout] | [INFO] [stdout] 642 | Castle { from: u8, to: u8, we_can_castle: CanCastle, en_passant_index: Option, }, [INFO] [stdout] | ------ ^^^^ ^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, `promotion_piece`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:643:17 [INFO] [stdout] | [INFO] [stdout] 643 | Promotion { from: u8, to: u8, promotion_piece: Piece, en_passant_index: Option, }, [INFO] [stdout] | --------- ^^^^ ^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, `promotion_piece`, `captured_piece`, `enemy_can_castle`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:645:9 [INFO] [stdout] | [INFO] [stdout] 644 | PromotionCapture { [INFO] [stdout] | ---------------- fields in this variant [INFO] [stdout] 645 | from: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 646 | to: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 647 | promotion_piece: Piece, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 648 | captured_piece: Piece, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 649 | enemy_can_castle: CanCastle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 650 | en_passant_index: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, and `en_passant_index` are never read [INFO] [stdout] --> src/board.rs:652:18 [INFO] [stdout] | [INFO] [stdout] 652 | PawnDouble { from: u8, to: u8, en_passant_index: Option, } [INFO] [stdout] | ---------- ^^^^ ^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.42s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking baby_chess_engine v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/moves.rs:442:57 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn fill<'a>(&'a mut self, board: &mut Board) -> &[Move] { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/moves.rs:442:57 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn fill<'a>(&'a mut self, board: &mut Board) -> &[Move] { [INFO] [stdout] | -- lifetime `'a` declared here ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/eval.rs:211:14 [INFO] [stdout] | [INFO] [stdout] 211 | unsafe { &BLACK_PIECE_SQUARE_TABLES } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 211 | unsafe { addr_of!(BLACK_PIECE_SQUARE_TABLES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/eval.rs:215:33 [INFO] [stdout] | [INFO] [stdout] 215 | reverse_piece_square_tables(&mut BLACK_PIECE_SQUARE_TABLES) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 215 | reverse_piece_square_tables(addr_of_mut!(BLACK_PIECE_SQUARE_TABLES)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/eval.rs:211:14 [INFO] [stdout] | [INFO] [stdout] 211 | unsafe { &BLACK_PIECE_SQUARE_TABLES } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 211 | unsafe { addr_of!(BLACK_PIECE_SQUARE_TABLES) } [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/eval.rs:215:33 [INFO] [stdout] | [INFO] [stdout] 215 | reverse_piece_square_tables(&mut BLACK_PIECE_SQUARE_TABLES) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 215 | reverse_piece_square_tables(addr_of_mut!(BLACK_PIECE_SQUARE_TABLES)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/moves.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | king_moves(&mut KING_MOVES); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | king_moves(addr_of_mut!(KING_MOVES)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/moves.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | knight_moves(&mut KNIGHT_MOVES); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 78 | knight_moves(addr_of_mut!(KNIGHT_MOVES)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/moves.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | king_moves(&mut KING_MOVES); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | king_moves(addr_of_mut!(KING_MOVES)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/moves.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 78 | knight_moves(&mut KNIGHT_MOVES); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 78 | knight_moves(addr_of_mut!(KNIGHT_MOVES)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `baby_chess_engine` (bin "baby_chess_engine") due to 5 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `baby_chess_engine` (bin "baby_chess_engine" test) due to 5 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "50fa717221ddc2c6f3a8fa20e489e858f45429f653d307971769779f2c1288e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50fa717221ddc2c6f3a8fa20e489e858f45429f653d307971769779f2c1288e7", kill_on_drop: false }` [INFO] [stdout] 50fa717221ddc2c6f3a8fa20e489e858f45429f653d307971769779f2c1288e7