[INFO] cloning repository https://github.com/guthrum/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/guthrum/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguthrum%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguthrum%2Fchess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a3d809ae71a1421aceaf6b0352046cdeb4482c23 [INFO] checking guthrum/chess against try#438eb4c1a1c3841523d7f672601e8adbe04cff28 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fguthrum%2Fchess" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/guthrum/chess [INFO] finished tweaking git repo https://github.com/guthrum/chess [INFO] tweaked toml for git repo https://github.com/guthrum/chess written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/guthrum/chess on toolchain 438eb4c1a1c3841523d7f672601e8adbe04cff28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/guthrum/chess 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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6eec7f49c0a18e67231fcc6f6a40194090015c4a97156b965300e3698a0a4df2 [INFO] running `Command { std: "docker" "start" "-a" "6eec7f49c0a18e67231fcc6f6a40194090015c4a97156b965300e3698a0a4df2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6eec7f49c0a18e67231fcc6f6a40194090015c4a97156b965300e3698a0a4df2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6eec7f49c0a18e67231fcc6f6a40194090015c4a97156b965300e3698a0a4df2", kill_on_drop: false }` [INFO] [stdout] 6eec7f49c0a18e67231fcc6f6a40194090015c4a97156b965300e3698a0a4df2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a64487574cbc085415582283c3dcc69f83e208ff29e2427708f95e3e6d198b92 [INFO] running `Command { std: "docker" "start" "-a" "a64487574cbc085415582283c3dcc69f83e208ff29e2427708f95e3e6d198b92", kill_on_drop: false }` [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking xxhash-rust v0.8.15 [INFO] [stderr] Checking colored v3.0.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ChessBoard` and `ChessPiece` [INFO] [stdout] --> src/render.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{ChessBoard, ChessColour, ChessPiece}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ChessBoard` and `ChessPiece` [INFO] [stdout] --> src/render.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{ChessBoard, ChessColour, ChessPiece}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/core.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game.rs:222:55 [INFO] [stdout] | [INFO] [stdout] 222 | fn available_move_for_king(&self, pos: &Position, piece: &ChessPiece) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | piece: &ChessPiece, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game.rs:251:57 [INFO] [stdout] | [INFO] [stdout] 251 | fn available_move_for_bishop(&self, pos: &Position, piece: &ChessPiece) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game.rs:258:55 [INFO] [stdout] | [INFO] [stdout] 258 | fn available_move_for_rook(&self, pos: &Position, piece: &ChessPiece) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game.rs:265:56 [INFO] [stdout] | [INFO] [stdout] 265 | fn available_move_for_queen(&self, pos: &Position, piece: &ChessPiece) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/solver/mod.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | for (position, piece) in movable_pieces { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/solver/mod.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | if let Ok(state) = new_game.make_move(&mv) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `status` is never read [INFO] [stdout] --> src/main.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | ... status = game_state.status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash_value` is never used [INFO] [stdout] --> src/core.rs:290:8 [INFO] [stdout] | [INFO] [stdout] 289 | impl ChessPieceKind { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 290 | fn hash_value(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash_multiplier` is never used [INFO] [stdout] --> src/core.rs:330:8 [INFO] [stdout] | [INFO] [stdout] 329 | impl ChessColour { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 330 | fn hash_multiplier(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash` is never used [INFO] [stdout] --> src/core.rs:474:12 [INFO] [stdout] | [INFO] [stdout] 441 | impl ChessBoard { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 474 | pub fn hash(&self) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Checkmate` and `Stalemate` are never constructed [INFO] [stdout] --> src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum GameStatus { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 6 | Ongoing, [INFO] [stdout] 7 | Checkmate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | Stalemate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `board` is never read [INFO] [stdout] --> src/game.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct GameState<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 12 | pub status: GameStatus, [INFO] [stdout] 13 | board: &'a ChessBoard, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `recurse` is never used [INFO] [stdout] --> src/solver/mod.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl RecursionContext { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | fn recurse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `game` is never read [INFO] [stdout] --> src/solver/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 49 | struct MoveState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 53 | game: ChessGame, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hasher` [INFO] [stdout] --> src/core.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::{Hash, Hasher}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game.rs:222:55 [INFO] [stdout] | [INFO] [stdout] 222 | fn available_move_for_king(&self, pos: &Position, piece: &ChessPiece) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | piece: &ChessPiece, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game.rs:251:57 [INFO] [stdout] | [INFO] [stdout] 251 | fn available_move_for_bishop(&self, pos: &Position, piece: &ChessPiece) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game.rs:258:55 [INFO] [stdout] | [INFO] [stdout] 258 | fn available_move_for_rook(&self, pos: &Position, piece: &ChessPiece) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/game.rs:265:56 [INFO] [stdout] | [INFO] [stdout] 265 | fn available_move_for_queen(&self, pos: &Position, piece: &ChessPiece) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/solver/mod.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | for (position, piece) in movable_pieces { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/solver/mod.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | if let Ok(state) = new_game.make_move(&mv) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `status` is never read [INFO] [stdout] --> src/main.rs:60:29 [INFO] [stdout] | [INFO] [stdout] 60 | ... status = game_state.status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash_value` is never used [INFO] [stdout] --> src/core.rs:290:8 [INFO] [stdout] | [INFO] [stdout] 289 | impl ChessPieceKind { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 290 | fn hash_value(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash_multiplier` is never used [INFO] [stdout] --> src/core.rs:330:8 [INFO] [stdout] | [INFO] [stdout] 329 | impl ChessColour { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 330 | fn hash_multiplier(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash` is never used [INFO] [stdout] --> src/core.rs:474:12 [INFO] [stdout] | [INFO] [stdout] 441 | impl ChessBoard { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 474 | pub fn hash(&self) -> u64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Checkmate` and `Stalemate` are never constructed [INFO] [stdout] --> src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum GameStatus { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 6 | Ongoing, [INFO] [stdout] 7 | Checkmate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | Stalemate, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `board` is never read [INFO] [stdout] --> src/game.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct GameState<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 12 | pub status: GameStatus, [INFO] [stdout] 13 | board: &'a ChessBoard, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `recurse` is never used [INFO] [stdout] --> src/solver/mod.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl RecursionContext { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | fn recurse(&self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `game` is never read [INFO] [stdout] --> src/solver/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 49 | struct MoveState { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 53 | game: ChessGame, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.50s [INFO] running `Command { std: "docker" "inspect" "a64487574cbc085415582283c3dcc69f83e208ff29e2427708f95e3e6d198b92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a64487574cbc085415582283c3dcc69f83e208ff29e2427708f95e3e6d198b92", kill_on_drop: false }` [INFO] [stdout] a64487574cbc085415582283c3dcc69f83e208ff29e2427708f95e3e6d198b92