[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] building erikfastermann/baby-chess-engine against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferikfastermann%2Fbaby-chess-engine" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/erikfastermann/baby-chess-engine on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-6-tc1/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 209608d53c81ddca75acd5abda51621e57639c0f7f784a3a7a514fd262957f17 [INFO] running `Command { std: "docker" "start" "-a" "209608d53c81ddca75acd5abda51621e57639c0f7f784a3a7a514fd262957f17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "209608d53c81ddca75acd5abda51621e57639c0f7f784a3a7a514fd262957f17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "209608d53c81ddca75acd5abda51621e57639c0f7f784a3a7a514fd262957f17", kill_on_drop: false }` [INFO] [stdout] 209608d53c81ddca75acd5abda51621e57639c0f7f784a3a7a514fd262957f17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27e8e92beae88667d33d3a2ce01438f28e829377a81691884961ff12fbbd7ba8 [INFO] running `Command { std: "docker" "start" "-a" "27e8e92beae88667d33d3a2ce01438f28e829377a81691884961ff12fbbd7ba8", kill_on_drop: false }` [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling itertools v0.12.0 [INFO] [stderr] Compiling baby_chess_engine v0.1.0 (/opt/rustwide/workdir) [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: 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: 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 [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 211 | unsafe { &raw const 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 [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 215 | reverse_piece_square_tables(&raw 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 [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | king_moves(&raw 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 [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 78 | knight_moves(&raw mut KNIGHT_MOVES); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.76s [INFO] running `Command { std: "docker" "inspect" "27e8e92beae88667d33d3a2ce01438f28e829377a81691884961ff12fbbd7ba8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27e8e92beae88667d33d3a2ce01438f28e829377a81691884961ff12fbbd7ba8", kill_on_drop: false }` [INFO] [stdout] 27e8e92beae88667d33d3a2ce01438f28e829377a81691884961ff12fbbd7ba8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c47ec209dde5cce184eb7050424b88f6086cf4dc458cd02e7cd5a0c75ac651a1 [INFO] running `Command { std: "docker" "start" "-a" "c47ec209dde5cce184eb7050424b88f6086cf4dc458cd02e7cd5a0c75ac651a1", kill_on_drop: false }` [INFO] [stderr] Compiling baby_chess_engine v0.1.0 (/opt/rustwide/workdir) [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: 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: 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 [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 211 | unsafe { &raw const 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 [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 215 | reverse_piece_square_tables(&raw 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 [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 62 | king_moves(&raw 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 [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 78 | knight_moves(&raw mut KNIGHT_MOVES); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.05s [INFO] running `Command { std: "docker" "inspect" "c47ec209dde5cce184eb7050424b88f6086cf4dc458cd02e7cd5a0c75ac651a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c47ec209dde5cce184eb7050424b88f6086cf4dc458cd02e7cd5a0c75ac651a1", kill_on_drop: false }` [INFO] [stdout] c47ec209dde5cce184eb7050424b88f6086cf4dc458cd02e7cd5a0c75ac651a1