[INFO] cloning repository https://github.com/Yigitozcelep/Persa_Engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Yigitozcelep/Persa_Engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYigitozcelep%2FPersa_Engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYigitozcelep%2FPersa_Engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d4568a1f5d019d96b4a52b3adc213b0013d113f [INFO] checking Yigitozcelep/Persa_Engine against master#b0696a5160711c068cb1f01b7437db7990d15750 for pr-121848 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYigitozcelep%2FPersa_Engine" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Yigitozcelep/Persa_Engine on toolchain b0696a5160711c068cb1f01b7437db7990d15750 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Yigitozcelep/Persa_Engine [INFO] finished tweaking git repo https://github.com/Yigitozcelep/Persa_Engine [INFO] tweaked toml for git repo https://github.com/Yigitozcelep/Persa_Engine written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Yigitozcelep/Persa_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" "+b0696a5160711c068cb1f01b7437db7990d15750" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking Yigitozcelep/Persa_Engine against try#bfe97fcae016881ad333f0ff8cea2cadb9cf136c for pr-121848 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYigitozcelep%2FPersa_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/Yigitozcelep/Persa_Engine on toolchain bfe97fcae016881ad333f0ff8cea2cadb9cf136c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Yigitozcelep/Persa_Engine [INFO] finished tweaking git repo https://github.com/Yigitozcelep/Persa_Engine [INFO] tweaked toml for git repo https://github.com/Yigitozcelep/Persa_Engine written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Yigitozcelep/Persa_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" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cefaf91f46fbf43e5f65a62d7cea6fad0e68beb1905f349da80344e760216af6 [INFO] running `Command { std: "docker" "start" "-a" "cefaf91f46fbf43e5f65a62d7cea6fad0e68beb1905f349da80344e760216af6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cefaf91f46fbf43e5f65a62d7cea6fad0e68beb1905f349da80344e760216af6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cefaf91f46fbf43e5f65a62d7cea6fad0e68beb1905f349da80344e760216af6", kill_on_drop: false }` [INFO] [stdout] cefaf91f46fbf43e5f65a62d7cea6fad0e68beb1905f349da80344e760216af6 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+bfe97fcae016881ad333f0ff8cea2cadb9cf136c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8cc490cb1c403d675997fe14e0fa26363c1e6671d2a67c89d22009db3f9aaa7 [INFO] running `Command { std: "docker" "start" "-a" "e8cc490cb1c403d675997fe14e0fa26363c1e6671d2a67c89d22009db3f9aaa7", kill_on_drop: false }` [INFO] [stderr] Checking persa_chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `BISHOP_MAX_BLOCK_PERM` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `BISHOP_MAX_BLOCK_PERM` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ROOK_MAX_BLOCK_PERM` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:64 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `ROOK_MAX_BLOCK_PERM` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_bishop_move_counts` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:85 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_bishop_move_counts` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_bishop_magics` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:112 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_bishop_magics` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_rook_move_counts` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:134 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_rook_move_counts` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, create_rook_move_counts, c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_rook_magics` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:159 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_rook_magics` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, create_rook_move_counts, create_rook_magic... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SOUTH` is imported redundantly [INFO] [stdout] --> src/debug.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::constants::directions::SOUTH; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use crate::constants::{squares::{A8, H1, NO_SQUARE}, directions::*}; [INFO] [stdout] | ------------- the item `SOUTH` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BISHOP_MAX_BLOCK_PERM` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `BISHOP_MAX_BLOCK_PERM` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ROOK_MAX_BLOCK_PERM` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:64 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `ROOK_MAX_BLOCK_PERM` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_bishop_move_counts` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:85 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_bishop_move_counts` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_bishop_magics` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:112 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_bishop_magics` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_rook_move_counts` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:134 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_rook_move_counts` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, create_rook_move_counts, c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_rook_magics` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:159 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_rook_magics` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, create_rook_move_counts, create_rook_magic... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SOUTH` is imported redundantly [INFO] [stdout] --> src/debug.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::constants::directions::SOUTH; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use crate::constants::{squares::{A8, H1, NO_SQUARE}, directions::*}; [INFO] [stdout] | ------------- the item `SOUTH` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:135:50 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [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: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, addr_of!(BISHOP_ATTACKS), &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:135:83 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, addr_of!(BISHOP_TABLE), &BISHOP_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 139 | unsafe {initialize_slider_table(&mut BISHOP_TABLE, &BISHOP_MAGICS, mask_bishop_attacks, bishop_attacks_on_fly);} [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] 139 | unsafe {initialize_slider_table(addr_of_mut!(BISHOP_TABLE), &BISHOP_MAGICS, mask_bishop_attacks, bishop_attacks_on_fly);} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:140:60 [INFO] [stdout] | [INFO] [stdout] 140 | unsafe {initialize_slider_attacks(mask_bishop_attacks, &mut BISHOP_ATTACKS)} [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] 140 | unsafe {initialize_slider_attacks(mask_bishop_attacks, addr_of_mut!(BISHOP_ATTACKS))} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:264:50 [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, addr_of!(ROOK_ATTACKS), &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:264:79 [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, addr_of!(ROOK_TABLE), &ROOK_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:268:37 [INFO] [stdout] | [INFO] [stdout] 268 | unsafe {initialize_slider_table(&mut ROOK_TABLE, &ROOK_MAGICS, mask_rook_attacks, rook_attacks_on_fly);} [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] 268 | unsafe {initialize_slider_table(addr_of_mut!(ROOK_TABLE), &ROOK_MAGICS, mask_rook_attacks, rook_attacks_on_fly);} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:269:58 [INFO] [stdout] | [INFO] [stdout] 269 | unsafe {initialize_slider_attacks(mask_rook_attacks, &mut ROOK_ATTACKS)} [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] 269 | unsafe {initialize_slider_attacks(mask_rook_attacks, addr_of_mut!(ROOK_ATTACKS))} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:135:50 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [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: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, addr_of!(BISHOP_ATTACKS), &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:135:83 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, addr_of!(BISHOP_TABLE), &BISHOP_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 139 | unsafe {initialize_slider_table(&mut BISHOP_TABLE, &BISHOP_MAGICS, mask_bishop_attacks, bishop_attacks_on_fly);} [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] 139 | unsafe {initialize_slider_table(addr_of_mut!(BISHOP_TABLE), &BISHOP_MAGICS, mask_bishop_attacks, bishop_attacks_on_fly);} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:140:60 [INFO] [stdout] | [INFO] [stdout] 140 | unsafe {initialize_slider_attacks(mask_bishop_attacks, &mut BISHOP_ATTACKS)} [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] 140 | unsafe {initialize_slider_attacks(mask_bishop_attacks, addr_of_mut!(BISHOP_ATTACKS))} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:264:50 [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, addr_of!(ROOK_ATTACKS), &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:264:79 [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, addr_of!(ROOK_TABLE), &ROOK_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:268:37 [INFO] [stdout] | [INFO] [stdout] 268 | unsafe {initialize_slider_table(&mut ROOK_TABLE, &ROOK_MAGICS, mask_rook_attacks, rook_attacks_on_fly);} [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] 268 | unsafe {initialize_slider_table(addr_of_mut!(ROOK_TABLE), &ROOK_MAGICS, mask_rook_attacks, rook_attacks_on_fly);} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:269:58 [INFO] [stdout] | [INFO] [stdout] 269 | unsafe {initialize_slider_attacks(mask_rook_attacks, &mut ROOK_ATTACKS)} [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] 269 | unsafe {initialize_slider_attacks(mask_rook_attacks, addr_of_mut!(ROOK_ATTACKS))} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BISHOP_MAX_BLOCK_PERM` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `BISHOP_MAX_BLOCK_PERM` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ROOK_MAX_BLOCK_PERM` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:64 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `ROOK_MAX_BLOCK_PERM` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_bishop_move_counts` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:85 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_bishop_move_counts` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_bishop_magics` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:112 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_bishop_magics` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_rook_move_counts` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:134 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_rook_move_counts` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, create_rook_move_counts, c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_rook_magics` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:159 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_rook_magics` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, create_rook_move_counts, create_rook_magic... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SOUTH` is imported redundantly [INFO] [stdout] --> src/debug.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::constants::directions::SOUTH; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use crate::constants::{squares::{A8, H1, NO_SQUARE}, directions::*}; [INFO] [stdout] | ------------- the item `SOUTH` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BISHOP_MAX_BLOCK_PERM` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `BISHOP_MAX_BLOCK_PERM` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ROOK_MAX_BLOCK_PERM` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:64 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `ROOK_MAX_BLOCK_PERM` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_bishop_move_counts` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:85 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_bishop_move_counts` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_bishop_magics` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:112 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_bishop_magics` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, crea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_rook_move_counts` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:134 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_rook_move_counts` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, create_rook_move_counts, c... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `create_rook_magics` is imported redundantly [INFO] [stdout] --> src/pieces/tables.rs:4:159 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::constants::board_constants::*; [INFO] [stdout] | ------------------------------------ the item `create_rook_magics` is already imported here [INFO] [stdout] 3 | use crate::board_components::{BitBoard, Square, ChessBoard, MagicNum, Color, MagicNumGenerator}; [INFO] [stdout] 4 | use crate::constants::board_constants::{BISHOP_MAX_BLOCK_PERM, ROOK_MAX_BLOCK_PERM, create_bishop_move_counts, create_bishop_magics, create_rook_move_counts, create_rook_magic... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SOUTH` is imported redundantly [INFO] [stdout] --> src/debug.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::constants::directions::SOUTH; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 4 | use crate::constants::{squares::{A8, H1, NO_SQUARE}, directions::*}; [INFO] [stdout] | ------------- the item `SOUTH` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:135:50 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [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: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, addr_of!(BISHOP_ATTACKS), &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:135:83 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, addr_of!(BISHOP_TABLE), &BISHOP_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 139 | unsafe {initialize_slider_table(&mut BISHOP_TABLE, &BISHOP_MAGICS, mask_bishop_attacks, bishop_attacks_on_fly);} [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] 139 | unsafe {initialize_slider_table(addr_of_mut!(BISHOP_TABLE), &BISHOP_MAGICS, mask_bishop_attacks, bishop_attacks_on_fly);} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:140:60 [INFO] [stdout] | [INFO] [stdout] 140 | unsafe {initialize_slider_attacks(mask_bishop_attacks, &mut BISHOP_ATTACKS)} [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] 140 | unsafe {initialize_slider_attacks(mask_bishop_attacks, addr_of_mut!(BISHOP_ATTACKS))} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:135:50 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [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: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, addr_of!(BISHOP_ATTACKS), &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:135:83 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, &BISHOP_TABLE, &BISHOP_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 135 | unsafe {generate_slider_moves(square, board, &BISHOP_ATTACKS, &BISHOP_MAGICS, addr_of!(BISHOP_TABLE), &BISHOP_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:139:37 [INFO] [stdout] | [INFO] [stdout] 139 | unsafe {initialize_slider_table(&mut BISHOP_TABLE, &BISHOP_MAGICS, mask_bishop_attacks, bishop_attacks_on_fly);} [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] 139 | unsafe {initialize_slider_table(addr_of_mut!(BISHOP_TABLE), &BISHOP_MAGICS, mask_bishop_attacks, bishop_attacks_on_fly);} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:140:60 [INFO] [stdout] | [INFO] [stdout] 140 | unsafe {initialize_slider_attacks(mask_bishop_attacks, &mut BISHOP_ATTACKS)} [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] 140 | unsafe {initialize_slider_attacks(mask_bishop_attacks, addr_of_mut!(BISHOP_ATTACKS))} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:264:50 [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, addr_of!(ROOK_ATTACKS), &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:264:79 [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, addr_of!(ROOK_TABLE), &ROOK_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:264:50 [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, addr_of!(ROOK_ATTACKS), &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:268:37 [INFO] [stdout] | [INFO] [stdout] 268 | unsafe {initialize_slider_table(&mut ROOK_TABLE, &ROOK_MAGICS, mask_rook_attacks, rook_attacks_on_fly);} [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] 268 | unsafe {initialize_slider_table(addr_of_mut!(ROOK_TABLE), &ROOK_MAGICS, mask_rook_attacks, rook_attacks_on_fly);} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:264:79 [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, &ROOK_TABLE, &ROOK_MOVES_COUNTS)} [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] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 264 | unsafe {generate_slider_moves(square, board, &ROOK_ATTACKS, &ROOK_MAGICS, addr_of!(ROOK_TABLE), &ROOK_MOVES_COUNTS)} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:268:37 [INFO] [stdout] | [INFO] [stdout] 268 | unsafe {initialize_slider_table(&mut ROOK_TABLE, &ROOK_MAGICS, mask_rook_attacks, rook_attacks_on_fly);} [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] 268 | unsafe {initialize_slider_table(addr_of_mut!(ROOK_TABLE), &ROOK_MAGICS, mask_rook_attacks, rook_attacks_on_fly);} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:269:58 [INFO] [stdout] | [INFO] [stdout] 269 | unsafe {initialize_slider_attacks(mask_rook_attacks, &mut ROOK_ATTACKS)} [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] 269 | unsafe {initialize_slider_attacks(mask_rook_attacks, addr_of_mut!(ROOK_ATTACKS))} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/pieces/tables.rs:269:58 [INFO] [stdout] | [INFO] [stdout] 269 | unsafe {initialize_slider_attacks(mask_rook_attacks, &mut ROOK_ATTACKS)} [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] 269 | unsafe {initialize_slider_attacks(mask_rook_attacks, addr_of_mut!(ROOK_ATTACKS))} [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] running `Command { std: "docker" "inspect" "e8cc490cb1c403d675997fe14e0fa26363c1e6671d2a67c89d22009db3f9aaa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8cc490cb1c403d675997fe14e0fa26363c1e6671d2a67c89d22009db3f9aaa7", kill_on_drop: false }` [INFO] [stdout] e8cc490cb1c403d675997fe14e0fa26363c1e6671d2a67c89d22009db3f9aaa7