[INFO] cloning repository https://github.com/SanderMoon/SuperRusty [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SanderMoon/SuperRusty" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSanderMoon%2FSuperRusty", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSanderMoon%2FSuperRusty'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a9304203d838c6aaa5ebaed90995aa6c7838172f [INFO] building SanderMoon/SuperRusty 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%2FSanderMoon%2FSuperRusty" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SanderMoon/SuperRusty 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/SanderMoon/SuperRusty [INFO] finished tweaking git repo https://github.com/SanderMoon/SuperRusty [INFO] tweaked toml for git repo https://github.com/SanderMoon/SuperRusty written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/SanderMoon/SuperRusty 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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 4f12074f873f76eff2eab487b8e96fd472a3175e0bda483aacced7f2d0a8c51d [INFO] running `Command { std: "docker" "start" "-a" "4f12074f873f76eff2eab487b8e96fd472a3175e0bda483aacced7f2d0a8c51d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4f12074f873f76eff2eab487b8e96fd472a3175e0bda483aacced7f2d0a8c51d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f12074f873f76eff2eab487b8e96fd472a3175e0bda483aacced7f2d0a8c51d", kill_on_drop: false }` [INFO] [stdout] 4f12074f873f76eff2eab487b8e96fd472a3175e0bda483aacced7f2d0a8c51d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 36506801fedd22a2a4fda599ad99bf2ae1cb3a27fe6facdf701ee817a5d1b558 [INFO] running `Command { std: "docker" "start" "-a" "36506801fedd22a2a4fda599ad99bf2ae1cb3a27fe6facdf701ee817a5d1b558", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling rayon-core v1.10.2 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rayon v1.6.1 [INFO] [stderr] Compiling super_rusty v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/movesets/knight.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color` and `PieceInfo` [INFO] [stdout] --> src/movesets/knight.rs:67:31 [INFO] [stdout] | [INFO] [stdout] 67 | use crate::chess::piece::{PieceInfo, Color}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/movesets/bishop.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/movesets/king.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color` and `PieceInfo` [INFO] [stdout] --> src/movesets/king.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 48 | use crate::chess::piece::{PieceInfo, Color}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::chess::piece::PieceType` [INFO] [stdout] --> src/movesets/pawn.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | use crate::chess::piece::PieceType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/movesets/pawn.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PieceInfo` [INFO] [stdout] --> src/movesets/magic_bitboards.rs:1:64 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{utils::board_utils::{RANKS, FILES}, chess::piece::{PieceInfo, PieceType}}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/movesets/magic_bitboards.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/movesets/rook.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/movesets/queen.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::movesets::magic_bitboards::initialize` [INFO] [stdout] --> src/movesets/queen.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::movesets::magic_bitboards::initialize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `single_pushes` is never read [INFO] [stdout] --> src/movesets/pawn.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut single_pushes = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `double_pushes` is never read [INFO] [stdout] --> src/movesets/pawn.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut double_pushes = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SinglePieceInfo` is never constructed [INFO] [stdout] --> src/chess/piece.rs:127:19 [INFO] [stdout] | [INFO] [stdout] 127 | pub(crate) struct SinglePieceInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `piece_type`, `old_position`, and `new_position` are never read [INFO] [stdout] --> src/chess/chess_move.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) struct Move { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 4 | pub piece_type:PieceType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | pub old_position: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 6 | pub new_position: u64 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Castling` is never used [INFO] [stdout] --> src/chess/castling.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) enum Castling { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active_color`, `white_king_side_castle`, `white_queen_side_castle`, `black_king_side_castle`, `black_queen_side_castle`, and `move_history` are never read [INFO] [stdout] --> src/chess/chess_board.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) struct ChessBoard { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 36 | pub piece_infos: HashMap>, [INFO] [stdout] 37 | pub active_color: Color, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 38 | pub white_king_side_castle: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub white_queen_side_castle: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | pub black_king_side_castle: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 41 | pub black_queen_side_castle: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | pub move_history: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/chess/chess_board.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 46 | impl ChessBoard { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | (white_pawns, Pawn, White), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 50 | (white_rooks, Rook, White), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 51 | (white_knights, Knight, White), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 52 | (white_bishops, Bishop, White), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 53 | (white_queens, Queen, White), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 54 | (white_kings, King, White), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 55 | (black_pawns, Pawn, Black), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 56 | (black_rooks, Rook, Black), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 57 | (black_knights, Knight, Black), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 58 | (black_bishops, Bishop, Black), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 59 | (black_queens, Queen, Black), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 60 | (black_kings, King, Black), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | (white_pawns_immutable, Pawn, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 65 | (white_rooks_immutable, Rook, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 66 | (white_knights_immutable, Knight, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 67 | (white_bishops_immutable, Bishop, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 68 | (white_queens_immutable, Queen, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | (white_kings_immutable, King, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 70 | (black_pawns_immutable, Pawn, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 71 | (black_rooks_immutable, Rook, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | (black_knights_immutable, Knight, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | (black_bishops_immutable, Bishop, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | (black_queens_immutable, Queen, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 75 | (black_kings_immutable, King, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub(crate) fn set_square(&mut self, piece_info: SinglePieceInfo) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub(crate) fn set_active_color(&mut self, color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub(crate) fn set_castling(&mut self, color: Color, castling: Castling) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn get_mutable_piece_info(&mut self, piece_type: PieceType, color: Color) -> &mut PieceInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `piece_accessors` which comes from the expansion of the macro `piece_accessors_immutable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_empty_squares` is never used [INFO] [stdout] --> src/chess/chess_board.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn get_empty_squares(chessboard : &mut ChessBoard) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_white_pieces` is never used [INFO] [stdout] --> src/chess/chess_board.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn get_white_pieces(chessboard : &mut ChessBoard) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_black_pieces` is never used [INFO] [stdout] --> src/chess/chess_board.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn get_black_pieces(chessboard : &mut ChessBoard) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_move_nnw` is never used [INFO] [stdout] --> src/movesets/knight.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn knight_move_nnw(knight_position: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_move_nww` is never used [INFO] [stdout] --> src/movesets/knight.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn knight_move_nww(knight_position: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_move_nne` is never used [INFO] [stdout] --> src/movesets/knight.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn knight_move_nne(knight_position: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_move_nee` is never used [INFO] [stdout] --> src/movesets/knight.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn knight_move_nee(knight_position: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_move_sww` is never used [INFO] [stdout] --> src/movesets/knight.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn knight_move_sww(knight_position: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_move_ssw` is never used [INFO] [stdout] --> src/movesets/knight.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn knight_move_ssw(knight_position: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_move_see` is never used [INFO] [stdout] --> src/movesets/knight.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn knight_move_see(knight_position: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_move_sse` is never used [INFO] [stdout] --> src/movesets/knight.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn knight_move_sse(knight_position: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_knight_moves` is never used [INFO] [stdout] --> src/movesets/knight.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn all_knight_moves(knight_position: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_knight_soft_moves` is never used [INFO] [stdout] --> src/movesets/knight.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn get_knight_soft_moves(all_knight_moves: u64, empty_squares: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_knight_attacks` is never used [INFO] [stdout] --> src/movesets/knight.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn get_knight_attacks(all_knight_moves: u64, opponent_pieces: u64) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_moves_attacks_knights` is never used [INFO] [stdout] --> src/movesets/knight.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn set_moves_attacks_knights(knights: &mut PieceInfo, opponent_pieces: u64, empty_squares: u64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bishop_move` is never used [INFO] [stdout] --> src/movesets/bishop.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) fn bishop_move(square : u64, occupancy : u64 ) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `king_move_east` is never used [INFO] [stdout] --> src/movesets/king.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn king_move_east(king_position : u64) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `king_move_west` is never used [INFO] [stdout] --> src/movesets/king.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn king_move_west(king_position : u64) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `king_moves_north` is never used [INFO] [stdout] --> src/movesets/king.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn king_moves_north(king_position_ew : u64) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `king_moves_south` is never used [INFO] [stdout] --> src/movesets/king.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn king_moves_south(king_position_ew : u64) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_king_moves` is never used [INFO] [stdout] --> src/movesets/king.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn all_king_moves(king_position : u64) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_king_soft_moves` is never used [INFO] [stdout] --> src/movesets/king.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn get_king_soft_moves(all_king_moves: u64, empty_squares: u64) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_king_attacks` is never used [INFO] [stdout] --> src/movesets/king.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn get_king_attacks(all_king_moves: u64, opponent_pieces: u64) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_moves_attacks_kings` is never used [INFO] [stdout] --> src/movesets/king.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn set_moves_attacks_kings(king: &mut PieceInfo, opponent_pieces: u64, empty_squares: u64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FORWARD` is never used [INFO] [stdout] --> src/movesets/pawn.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const FORWARD: u8 = 8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FORWARD_RIGHT` is never used [INFO] [stdout] --> src/movesets/pawn.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const FORWARD_RIGHT: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FORWARD_LEFT` is never used [INFO] [stdout] --> src/movesets/pawn.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const FORWARD_LEFT: u8 = 9; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `white_pawn_single_push` is never used [INFO] [stdout] --> src/movesets/pawn.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn white_pawn_single_push(pawn_positions: u64, empty_squares: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `white_pawn_double_push` is never used [INFO] [stdout] --> src/movesets/pawn.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn white_pawn_double_push(pawns: u64, empty_squares: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `white_pawn_attacks` is never used [INFO] [stdout] --> src/movesets/pawn.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn white_pawn_attacks(pawn_positions: u64, opponent_pieces: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `white_en_passant_calculation` is never used [INFO] [stdout] --> src/movesets/pawn.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn white_en_passant_calculation(last_move: &Move, pawn_positions: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `black_pawn_single_push` is never used [INFO] [stdout] --> src/movesets/pawn.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn black_pawn_single_push(pawn_positions: u64, empty_squares: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `black_pawn_double_push` is never used [INFO] [stdout] --> src/movesets/pawn.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn black_pawn_double_push(pawns: u64, empty_squares: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `black_pawn_attacks` is never used [INFO] [stdout] --> src/movesets/pawn.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn black_pawn_attacks(pawn_positions: u64, opponent_pieces: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `black_en_passant_calculation` is never used [INFO] [stdout] --> src/movesets/pawn.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn black_en_passant_calculation(last_move: &Move, pawn_positions: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_pawn_moves` is never used [INFO] [stdout] --> src/movesets/pawn.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn get_pawn_moves(pawn_positions: u64, empty_squares: u64, color: Color) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_pawn_attack_set` is never used [INFO] [stdout] --> src/movesets/pawn.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn get_pawn_attack_set(last_move: &Move, pawn_positions: u64, opponent_pieces: u64, color: Color) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize` is never used [INFO] [stdout] --> src/movesets/magic_bitboards.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) fn initialize(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_all_move_patterns` is never used [INFO] [stdout] --> src/movesets/magic_bitboards.rs:255:4 [INFO] [stdout] | [INFO] [stdout] 255 | fn generate_all_move_patterns(piece_name: PieceType) -> [u64; 64] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rook_move` is never used [INFO] [stdout] --> src/movesets/rook.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) fn rook_move(square : u64, occupancy : u64 ) -> u64{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `queen_move` is never used [INFO] [stdout] --> src/movesets/queen.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) fn queen_move(square : u64, occupancy : u64 ) -> u64{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.46s [INFO] running `Command { std: "docker" "inspect" "36506801fedd22a2a4fda599ad99bf2ae1cb3a27fe6facdf701ee817a5d1b558", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36506801fedd22a2a4fda599ad99bf2ae1cb3a27fe6facdf701ee817a5d1b558", kill_on_drop: false }` [INFO] [stdout] 36506801fedd22a2a4fda599ad99bf2ae1cb3a27fe6facdf701ee817a5d1b558 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 09a4bb2fd91931830ab79fd8c6dbd3b1c6937036d81b5a8aacbd79f040b4a06e [INFO] running `Command { std: "docker" "start" "-a" "09a4bb2fd91931830ab79fd8c6dbd3b1c6937036d81b5a8aacbd79f040b4a06e", kill_on_drop: false }` [INFO] [stderr] Compiling super_rusty v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `PieceInfo` [INFO] [stdout] --> src/movesets/magic_bitboards.rs:1:64 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{utils::board_utils::{RANKS, FILES}, chess::piece::{PieceInfo, PieceType}}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/chess/visualization.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut chessboard = ChessBoard::new(false); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `single_pushes` is never read [INFO] [stdout] --> src/movesets/pawn.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let mut single_pushes = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `double_pushes` is never read [INFO] [stdout] --> src/movesets/pawn.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut double_pushes = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/movesets/magic_bitboards.rs:351:13 [INFO] [stdout] | [INFO] [stdout] 351 | let mut blocker_mask: u64 = 0b11111111_10000001_10000001_10000001_10000001_10000001_10000001_11111111; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/movesets/magic_bitboards.rs:361:13 [INFO] [stdout] | [INFO] [stdout] 361 | let mut blocker_mask: u64 = 0b11111111_10000001_10000001_10000001_10000001_10000001_10000001_11111111; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Castling` is never used [INFO] [stdout] --> src/chess/castling.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) enum Castling { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active_color`, `white_king_side_castle`, `white_queen_side_castle`, `black_king_side_castle`, `black_queen_side_castle`, and `move_history` are never read [INFO] [stdout] --> src/chess/chess_board.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) struct ChessBoard { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 36 | pub piece_infos: HashMap>, [INFO] [stdout] 37 | pub active_color: Color, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 38 | pub white_king_side_castle: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub white_queen_side_castle: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 40 | pub black_king_side_castle: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 41 | pub black_queen_side_castle: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | pub move_history: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/chess/chess_board.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 46 | impl ChessBoard { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | (white_pawns_immutable, Pawn, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 65 | (white_rooks_immutable, Rook, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 66 | (white_knights_immutable, Knight, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 67 | (white_bishops_immutable, Bishop, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 68 | (white_queens_immutable, Queen, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 69 | (white_kings_immutable, King, White), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 70 | (black_pawns_immutable, Pawn, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 71 | (black_rooks_immutable, Rook, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 72 | (black_knights_immutable, Knight, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | (black_bishops_immutable, Bishop, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 74 | (black_queens_immutable, Queen, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 75 | (black_kings_immutable, King, Black), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub(crate) fn set_active_color(&mut self, color: Color) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub(crate) fn set_castling(&mut self, color: Color, castling: Castling) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `piece_accessors_immutable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_pawn_attack_set` is never used [INFO] [stdout] --> src/movesets/pawn.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn get_pawn_attack_set(last_move: &Move, pawn_positions: u64, opponent_pieces: u64, color: Color) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.59s [INFO] running `Command { std: "docker" "inspect" "09a4bb2fd91931830ab79fd8c6dbd3b1c6937036d81b5a8aacbd79f040b4a06e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09a4bb2fd91931830ab79fd8c6dbd3b1c6937036d81b5a8aacbd79f040b4a06e", kill_on_drop: false }` [INFO] [stdout] 09a4bb2fd91931830ab79fd8c6dbd3b1c6937036d81b5a8aacbd79f040b4a06e