[INFO] cloning repository https://github.com/samumartinf/rust-chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/samumartinf/rust-chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamumartinf%2Frust-chess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamumartinf%2Frust-chess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 30be8625239d00bc4201984b8d107329b32cd473 [INFO] checking samumartinf/rust-chess against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamumartinf%2Frust-chess" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/samumartinf/rust-chess [INFO] finished tweaking git repo https://github.com/samumartinf/rust-chess [INFO] tweaked toml for git repo https://github.com/samumartinf/rust-chess written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/samumartinf/rust-chess on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/samumartinf/rust-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" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d2f32edcb18207ce1828f2350157374de7750e163c715946126c67dfedcb5407 [INFO] running `Command { std: "docker" "start" "-a" "d2f32edcb18207ce1828f2350157374de7750e163c715946126c67dfedcb5407", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d2f32edcb18207ce1828f2350157374de7750e163c715946126c67dfedcb5407", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2f32edcb18207ce1828f2350157374de7750e163c715946126c67dfedcb5407", kill_on_drop: false }` [INFO] [stdout] d2f32edcb18207ce1828f2350157374de7750e163c715946126c67dfedcb5407 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a8258fc058f86359563c511dba5f4e802e828bdc8368279c552a93e22baaff9 [INFO] running `Command { std: "docker" "start" "-a" "0a8258fc058f86359563c511dba5f4e802e828bdc8368279c552a93e22baaff9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Checking gimli v0.27.3 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking object v0.31.1 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking owo-colors v1.3.0 [INFO] [stderr] Checking tracing-subscriber v0.2.25 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Compiling backtrace v0.3.68 [INFO] [stderr] Compiling syn v2.0.27 [INFO] [stderr] Checking addr2line v0.20.0 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tracing-error v0.1.2 [INFO] [stderr] Checking color-spantrace v0.1.6 [INFO] [stderr] Checking color-eyre v0.5.11 [INFO] [stderr] Checking cherris v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/lib.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let row = position_helper::get_row(position); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `ROW` [INFO] [stdout] | [INFO] [stdout] 250 - let row = position_helper::get_row(position); [INFO] [stdout] 250 + let ROW = position_helper::get_row(position); [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 250 | let _row = position_helper::get_row(position); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/lib.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | let col = position_helper::get_col(position); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `COL` [INFO] [stdout] | [INFO] [stdout] 251 - let col = position_helper::get_col(position); [INFO] [stdout] 251 + let COL = position_helper::get_col(position); [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 251 | let _col = position_helper::get_col(position); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/lib.rs:314:41 [INFO] [stdout] | [INFO] [stdout] 314 | fn knight_moves(self, position: u8, board: Board) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/lib.rs:357:29 [INFO] [stdout] | [INFO] [stdout] 357 | fn is_move_valid(&self, position: u8, board: Board) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/lib.rs:357:43 [INFO] [stdout] | [INFO] [stdout] 357 | fn is_move_valid(&self, position: u8, board: Board) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `possible_positions` is never read [INFO] [stdout] --> src/lib.rs:364:38 [INFO] [stdout] | [INFO] [stdout] 364 | let mut possible_positions = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 367 | possible_positions = Piece::pawn_moves(self.clone(), position, board.clone()) [INFO] [stdout] | ------------------ `possible_positions` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `color_string` is never read [INFO] [stdout] --> src/lib.rs:413:32 [INFO] [stdout] | [INFO] [stdout] 413 | let mut color_string = String::from(""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 418 | color_string = String::from("b"); [INFO] [stdout] | ------------ `color_string` is overwritten here before the previous value is read [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `moves_done` is never read [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 16 | white_turn: bool, [INFO] [stdout] 17 | moves_done: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Engine` is never constructed [INFO] [stdout] --> src/lib.rs:630:16 [INFO] [stdout] | [INFO] [stdout] 630 | pub struct Engine { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `game` is never read [INFO] [stdout] --> src/lib.rs:631:9 [INFO] [stdout] | [INFO] [stdout] 630 | pub struct Engine { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 631 | game: Game, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cherris` (lib) due to 1 previous error; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/lib.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let row = position_helper::get_row(position); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `ROW` [INFO] [stdout] | [INFO] [stdout] 250 - let row = position_helper::get_row(position); [INFO] [stdout] 250 + let ROW = position_helper::get_row(position); [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 250 | let _row = position_helper::get_row(position); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/lib.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | let col = position_helper::get_col(position); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `COL` [INFO] [stdout] | [INFO] [stdout] 251 - let col = position_helper::get_col(position); [INFO] [stdout] 251 + let COL = position_helper::get_col(position); [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 251 | let _col = position_helper::get_col(position); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/lib.rs:314:41 [INFO] [stdout] | [INFO] [stdout] 314 | fn knight_moves(self, position: u8, board: Board) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/lib.rs:357:29 [INFO] [stdout] | [INFO] [stdout] 357 | fn is_move_valid(&self, position: u8, board: Board) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cherris` (lib test) due to 1 previous error; 9 warnings emitted [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/lib.rs:357:43 [INFO] [stdout] | [INFO] [stdout] 357 | fn is_move_valid(&self, position: u8, board: Board) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `possible_positions` is never read [INFO] [stdout] --> src/lib.rs:364:38 [INFO] [stdout] | [INFO] [stdout] 364 | let mut possible_positions = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 367 | possible_positions = Piece::pawn_moves(self.clone(), position, board.clone()) [INFO] [stdout] | ------------------ `possible_positions` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `color_string` is never read [INFO] [stdout] --> src/lib.rs:413:32 [INFO] [stdout] | [INFO] [stdout] 413 | let mut color_string = String::from(""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 418 | color_string = String::from("b"); [INFO] [stdout] | ------------ `color_string` is overwritten here before the previous value is read [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `moves_done` is never read [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 16 | white_turn: bool, [INFO] [stdout] 17 | moves_done: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Engine` is never constructed [INFO] [stdout] --> src/lib.rs:630:16 [INFO] [stdout] | [INFO] [stdout] 630 | pub struct Engine { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `game` is never read [INFO] [stdout] --> src/lib.rs:631:9 [INFO] [stdout] | [INFO] [stdout] 630 | pub struct Engine { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 631 | game: Game, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0a8258fc058f86359563c511dba5f4e802e828bdc8368279c552a93e22baaff9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a8258fc058f86359563c511dba5f4e802e828bdc8368279c552a93e22baaff9", kill_on_drop: false }` [INFO] [stdout] 0a8258fc058f86359563c511dba5f4e802e828bdc8368279c552a93e22baaff9