[INFO] cloning repository https://github.com/crippa1337/command-line-chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/crippa1337/command-line-chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrippa1337%2Fcommand-line-chess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrippa1337%2Fcommand-line-chess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0142874af9ec56f583ab3cbd9bdc92d707f0b895 [INFO] checking crippa1337/command-line-chess against 49a6044d37d694890450f52ceaceb66277a36b1e for pr-161154 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrippa1337%2Fcommand-line-chess" "/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/crippa1337/command-line-chess [INFO] finished tweaking git repo https://github.com/crippa1337/command-line-chess [INFO] tweaked toml for git repo https://github.com/crippa1337/command-line-chess written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/crippa1337/command-line-chess on toolchain 49a6044d37d694890450f52ceaceb66277a36b1e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/crippa1337/command-line-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" "+49a6044d37d694890450f52ceaceb66277a36b1e" "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/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 83358f135f39008d991e5aeed1da98b1cb17b4e4c5014d8c729148947621d951 [INFO] running `Command { std: "docker" "start" "83358f135f39008d991e5aeed1da98b1cb17b4e4c5014d8c729148947621d951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83358f135f39008d991e5aeed1da98b1cb17b4e4c5014d8c729148947621d951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "83358f135f39008d991e5aeed1da98b1cb17b4e4c5014d8c729148947621d951" "/opt/rustwide/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83358f135f39008d991e5aeed1da98b1cb17b4e4c5014d8c729148947621d951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "83358f135f39008d991e5aeed1da98b1cb17b4e4c5014d8c729148947621d951" "/opt/rustwide/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking fastrand v1.8.0 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking c-chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated constant `std::i32::MIN`: replaced by the `MIN` associated constant on this type [INFO] [stdout] --> src/engine.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | let mut max_eval = std::i32::MIN; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/engine.rs:69:38 [INFO] [stdout] | [INFO] [stdout] 69 | let mut min_eval = std::i32::MAX; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MIN`: replaced by the `MIN` associated constant on this type [INFO] [stdout] --> src/engine.rs:96:34 [INFO] [stdout] | [INFO] [stdout] 96 | let mut max_eval = std::i32::MIN; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MIN`: replaced by the `MIN` associated constant on this type [INFO] [stdout] --> src/engine.rs:108:64 [INFO] [stdout] | [INFO] [stdout] 108 | let eval = minimax(new_board, depth - 1, std::i32::MIN, std::i32::MAX, false); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/engine.rs:108:79 [INFO] [stdout] | [INFO] [stdout] 108 | let eval = minimax(new_board, depth - 1, std::i32::MIN, std::i32::MAX, false); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/engine.rs:123:34 [INFO] [stdout] | [INFO] [stdout] 123 | let mut min_eval = std::i32::MAX; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MIN`: replaced by the `MIN` associated constant on this type [INFO] [stdout] --> src/engine.rs:135:64 [INFO] [stdout] | [INFO] [stdout] 135 | let eval = minimax(new_board, depth - 1, std::i32::MIN, std::i32::MAX, true); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/engine.rs:135:79 [INFO] [stdout] | [INFO] [stdout] 135 | let eval = minimax(new_board, depth - 1, std::i32::MIN, std::i32::MAX, true); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/evaluation.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | return std::i32::MAX; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MIN`: replaced by the `MIN` associated constant on this type [INFO] [stdout] --> src/evaluation.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | return std::i32::MIN; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MIN`: replaced by the `MIN` associated constant on this type [INFO] [stdout] --> src/engine.rs:44:38 [INFO] [stdout] | [INFO] [stdout] 44 | let mut max_eval = std::i32::MIN; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/engine.rs:69:38 [INFO] [stdout] | [INFO] [stdout] 69 | let mut min_eval = std::i32::MAX; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MIN`: replaced by the `MIN` associated constant on this type [INFO] [stdout] --> src/engine.rs:96:34 [INFO] [stdout] | [INFO] [stdout] 96 | let mut max_eval = std::i32::MIN; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MIN`: replaced by the `MIN` associated constant on this type [INFO] [stdout] --> src/engine.rs:108:64 [INFO] [stdout] | [INFO] [stdout] 108 | let eval = minimax(new_board, depth - 1, std::i32::MIN, std::i32::MAX, false); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/engine.rs:108:79 [INFO] [stdout] | [INFO] [stdout] 108 | let eval = minimax(new_board, depth - 1, std::i32::MIN, std::i32::MAX, false); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/engine.rs:123:34 [INFO] [stdout] | [INFO] [stdout] 123 | let mut min_eval = std::i32::MAX; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MIN`: replaced by the `MIN` associated constant on this type [INFO] [stdout] --> src/engine.rs:135:64 [INFO] [stdout] | [INFO] [stdout] 135 | let eval = minimax(new_board, depth - 1, std::i32::MIN, std::i32::MAX, true); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/engine.rs:135:79 [INFO] [stdout] | [INFO] [stdout] 135 | let eval = minimax(new_board, depth - 1, std::i32::MIN, std::i32::MAX, true); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MAX`: replaced by the `MAX` associated constant on this type [INFO] [stdout] --> src/evaluation.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | return std::i32::MAX; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::i32::MIN`: replaced by the `MIN` associated constant on this type [INFO] [stdout] --> src/evaluation.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | return std::i32::MIN; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `board` is never read [INFO] [stdout] --> src/moves.rs:310:17 [INFO] [stdout] | [INFO] [stdout] 310 | board.tiles[to.0][to.1].piece.piece_type = Type::Queen; [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] [stdout] warning: value assigned to `board` is never read [INFO] [stdout] --> src/moves.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | board.tiles[to.0][to.1].piece.piece_type = Type::Knight; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `board` is never read [INFO] [stdout] --> src/moves.rs:318:17 [INFO] [stdout] | [INFO] [stdout] 318 | board.tiles[to.0][to.1].piece.piece_type = Type::Bishop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `board` is never read [INFO] [stdout] --> src/moves.rs:322:17 [INFO] [stdout] | [INFO] [stdout] 322 | board.tiles[to.0][to.1].piece.piece_type = Type::Rook(true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `board` is never read [INFO] [stdout] --> src/moves.rs:310:17 [INFO] [stdout] | [INFO] [stdout] 310 | board.tiles[to.0][to.1].piece.piece_type = Type::Queen; [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: value assigned to `board` is never read [INFO] [stdout] --> src/moves.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | board.tiles[to.0][to.1].piece.piece_type = Type::Knight; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `board` is never read [INFO] [stdout] --> src/moves.rs:318:17 [INFO] [stdout] | [INFO] [stdout] 318 | board.tiles[to.0][to.1].piece.piece_type = Type::Bishop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `board` is never read [INFO] [stdout] --> src/moves.rs:322:17 [INFO] [stdout] | [INFO] [stdout] 322 | board.tiles[to.0][to.1].piece.piece_type = Type::Rook(true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pawn_swap` is never used [INFO] [stdout] --> src/moves.rs:292:8 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn pawn_swap(mut board: Board, to: (usize, usize), is_white: bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pawn_swap` is never used [INFO] [stdout] --> src/moves.rs:292:8 [INFO] [stdout] | [INFO] [stdout] 292 | pub fn pawn_swap(mut board: Board, to: (usize, usize), is_white: bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "83358f135f39008d991e5aeed1da98b1cb17b4e4c5014d8c729148947621d951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83358f135f39008d991e5aeed1da98b1cb17b4e4c5014d8c729148947621d951", kill_on_drop: false }` [INFO] [stdout] 83358f135f39008d991e5aeed1da98b1cb17b4e4c5014d8c729148947621d951