[INFO] cloning repository https://github.com/sjpeters2/ChessEngine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sjpeters2/ChessEngine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsjpeters2%2FChessEngine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsjpeters2%2FChessEngine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 766e93649d28ee214479da63239cbdc2f4acf9a2 [INFO] checking sjpeters2/ChessEngine against master#5337252b9952fdd9482ed6a4add17254e5bd2c40 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsjpeters2%2FChessEngine" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sjpeters2/ChessEngine on toolchain 5337252b9952fdd9482ed6a4add17254e5bd2c40 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5337252b9952fdd9482ed6a4add17254e5bd2c40" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sjpeters2/ChessEngine [INFO] finished tweaking git repo https://github.com/sjpeters2/ChessEngine [INFO] tweaked toml for git repo https://github.com/sjpeters2/ChessEngine written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sjpeters2/ChessEngine 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" "+5337252b9952fdd9482ed6a4add17254e5bd2c40" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+5337252b9952fdd9482ed6a4add17254e5bd2c40" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4c3d5da9c0f5d797417b98d2e3e8a81bb606f044a1912efd8072b70838f1422 [INFO] running `Command { std: "docker" "start" "-a" "a4c3d5da9c0f5d797417b98d2e3e8a81bb606f044a1912efd8072b70838f1422", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4c3d5da9c0f5d797417b98d2e3e8a81bb606f044a1912efd8072b70838f1422", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4c3d5da9c0f5d797417b98d2e3e8a81bb606f044a1912efd8072b70838f1422", kill_on_drop: false }` [INFO] [stdout] a4c3d5da9c0f5d797417b98d2e3e8a81bb606f044a1912efd8072b70838f1422 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+5337252b9952fdd9482ed6a4add17254e5bd2c40" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f4c73db9c6df7d4baa632076859da716fc2029fdf40cc80fbae00ff797cd306 [INFO] running `Command { std: "docker" "start" "-a" "1f4c73db9c6df7d4baa632076859da716fc2029fdf40cc80fbae00ff797cd306", kill_on_drop: false }` [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Checking rust_chess_engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:180:17 [INFO] [stdout] | [INFO] [stdout] 180 | let mut piece_position = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/rayattacks.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let mut bit_index; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `knight_attacks` [INFO] [stdout] --> src/knightattacks.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | let knight_attacks = KnightAttacks::init(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_knight_attacks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Square` is more private than the item `game::Game::squares` [INFO] [stdout] --> src/game.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub squares: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ field `game::Game::squares` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/game.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | enum Square { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push_piece_and_square` and `push_empty_square` are never used [INFO] [stdout] --> src/game.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 131 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 132 | [INFO] [stdout] 133 | fn push_piece_and_square(&mut self, position: usize, color: Color, piece_type: PieceType, index: &mut usize){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn push_empty_square(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `COL_MAP` is never used [INFO] [stdout] --> src/rayattacks.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | static COL_MAP : [char; 8] = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/rayattacks.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Rays { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 20 | n_rays: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | e_rays: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | w_rays: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | s_rays: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 24 | nw_rays: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | ne_rays: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 26 | sw_rays: Vec, [INFO] [stdout] 27 | se_rays: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `n_ray` is never used [INFO] [stdout] --> src/rayattacks.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn n_ray(row: i64, col: i64) -> Bitboard { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:180:17 [INFO] [stdout] | [INFO] [stdout] 180 | let mut piece_position = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/rayattacks.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let mut bit_index; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Square` is more private than the item `game::Game::squares` [INFO] [stdout] --> src/game.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | pub squares: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ field `game::Game::squares` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Square` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/game.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | enum Square { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push_piece_and_square` and `push_empty_square` are never used [INFO] [stdout] --> src/game.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 131 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 132 | [INFO] [stdout] 133 | fn push_piece_and_square(&mut self, position: usize, color: Color, piece_type: PieceType, index: &mut usize){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn push_empty_square(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Bitboard` is never used [INFO] [stdout] --> src/rayattacks.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | type Bitboard = u64; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `COL_MAP` is never used [INFO] [stdout] --> src/rayattacks.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | static COL_MAP : [char; 8] = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/rayattacks.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Rays { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 20 | n_rays: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 21 | e_rays: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | w_rays: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 23 | s_rays: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 24 | nw_rays: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | ne_rays: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 26 | sw_rays: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 27 | se_rays: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `init` is never used [INFO] [stdout] --> src/rayattacks.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl Rays { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 31 | fn init() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `n_ray` is never used [INFO] [stdout] --> src/rayattacks.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn n_ray(row: i64, col: i64) -> Bitboard { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/rayattacks.rs:82:6 [INFO] [stdout] | [INFO] [stdout] 82 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_ray` is never used [INFO] [stdout] --> src/rayattacks.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn make_ray(row: i64, col: i64, direction: Direction) -> Bitboard { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_bit` is never used [INFO] [stdout] --> src/rayattacks.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn set_bit(bitboard: Bitboard, row: i64, col: i64) -> Bitboard{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bitboard_to_string` is never used [INFO] [stdout] --> src/rayattacks.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn bitboard_to_string (bitboard: Bitboard, mark:Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `blocked_ray_attacks` is never used [INFO] [stdout] --> src/rayattacks.rs:158:4 [INFO] [stdout] | [INFO] [stdout] 158 | fn blocked_ray_attacks(ray: Bitboard, ray_family: &Vec, forward_ray: bool, occupancy: Bitboard) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/knightattacks.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct KnightAttacks(Vec); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `init` is never used [INFO] [stdout] --> src/knightattacks.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl KnightAttacks { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 9 | fn init() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knight_attacks` is never used [INFO] [stdout] --> src/knightattacks.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn knight_attacks(row: i32, col: i32) -> Bitboard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "1f4c73db9c6df7d4baa632076859da716fc2029fdf40cc80fbae00ff797cd306", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f4c73db9c6df7d4baa632076859da716fc2029fdf40cc80fbae00ff797cd306", kill_on_drop: false }` [INFO] [stdout] 1f4c73db9c6df7d4baa632076859da716fc2029fdf40cc80fbae00ff797cd306