[INFO] cloning repository https://github.com/PerfectDemo/ninja_chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PerfectDemo/ninja_chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPerfectDemo%2Fninja_chess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPerfectDemo%2Fninja_chess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ae7847cafcdf0c11db0cd0f6a8494e2e6ee9c829 [INFO] checking PerfectDemo/ninja_chess against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPerfectDemo%2Fninja_chess" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/PerfectDemo/ninja_chess [INFO] finished tweaking git repo https://github.com/PerfectDemo/ninja_chess [INFO] tweaked toml for git repo https://github.com/PerfectDemo/ninja_chess written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/PerfectDemo/ninja_chess on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/PerfectDemo/ninja_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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f0e00ba9a89f702ef72f94bd8d5f5af68d036073f0ca0d99c1d0e3976e0c4e3 [INFO] running `Command { std: "docker" "start" "-a" "2f0e00ba9a89f702ef72f94bd8d5f5af68d036073f0ca0d99c1d0e3976e0c4e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f0e00ba9a89f702ef72f94bd8d5f5af68d036073f0ca0d99c1d0e3976e0c4e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f0e00ba9a89f702ef72f94bd8d5f5af68d036073f0ca0d99c1d0e3976e0c4e3", kill_on_drop: false }` [INFO] [stdout] 2f0e00ba9a89f702ef72f94bd8d5f5af68d036073f0ca0d99c1d0e3976e0c4e3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 73078bc90770ac129cbfb6ce9ac44fad9964531de64bec98df41f9cf8156db1e [INFO] running `Command { std: "docker" "start" "-a" "73078bc90770ac129cbfb6ce9ac44fad9964531de64bec98df41f9cf8156db1e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking ninja_chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/operate/knight.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp::{min, max}; [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: `STAGE` [INFO] [stdout] --> src/operate/knight.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{PIECES, STAGE, COLOUR}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `from_location` is assigned to, but never used [INFO] [stdout] --> src/operate/knight.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut from_location; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_from_location` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `from_location` is never read [INFO] [stdout] --> src/operate/knight.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | / from_location = Location { [INFO] [stdout] 23 | | x: command.from, [INFO] [stdout] 24 | | y: i [INFO] [stdout] 25 | | } [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: unused variable: `board` [INFO] [stdout] --> src/operate/knight.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | fn check(board: &mut Board, location: &(Location, Location)) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/operate/knight.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | fn check(board: &mut Board, location: &(Location, Location)) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/operate/knight.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | fn move_location(board: &mut Board, location: &(Location, Location)) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/operate/knight.rs:36:41 [INFO] [stdout] | [INFO] [stdout] 36 | fn move_location(board: &mut Board, location: &(Location, Location)) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/operate/knight.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | fn after_run(board: &mut Board, location: &(Location, Location)) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/operate/knight.rs:39:37 [INFO] [stdout] | [INFO] [stdout] 39 | fn after_run(board: &mut Board, location: &(Location, Location)) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Show` is never used [INFO] [stdout] --> src/piece.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Show { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Piece` is never constructed [INFO] [stdout] --> src/piece.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Piece<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/piece.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl <'a> Piece<'a> { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(colour: COLOUR, identity: PIECES) -> Piece<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Board` is never constructed [INFO] [stdout] --> src/board.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Board<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `init` and `print` are never used [INFO] [stdout] --> src/board.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl <'a>Board<'a> { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | pub fn init() -> Board<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Command` is never constructed [INFO] [stdout] --> src/parser.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Command { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/parser.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Command { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 13 | fn parse<'a>(command: String) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Location` is never constructed [INFO] [stdout] --> src/operate/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Location { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Operate` is never used [INFO] [stdout] --> src/operate/mod.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Operate { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/operate/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RookOperate` is never constructed [INFO] [stdout] --> src/operate/rook.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct RookOperate {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KnightOperate` is never constructed [INFO] [stdout] --> src/operate/knight.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct KnightOperate {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max` and `min` [INFO] [stdout] --> src/operate/knight.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp::{min, max}; [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: `STAGE` [INFO] [stdout] --> src/operate/knight.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{PIECES, STAGE, COLOUR}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `from_location` is assigned to, but never used [INFO] [stdout] --> src/operate/knight.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut from_location; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_from_location` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `from_location` is never read [INFO] [stdout] --> src/operate/knight.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | / from_location = Location { [INFO] [stdout] 23 | | x: command.from, [INFO] [stdout] 24 | | y: i [INFO] [stdout] 25 | | } [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: unused variable: `board` [INFO] [stdout] --> src/operate/knight.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | fn check(board: &mut Board, location: &(Location, Location)) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/operate/knight.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | fn check(board: &mut Board, location: &(Location, Location)) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/operate/knight.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | fn move_location(board: &mut Board, location: &(Location, Location)) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/operate/knight.rs:36:41 [INFO] [stdout] | [INFO] [stdout] 36 | fn move_location(board: &mut Board, location: &(Location, Location)) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `board` [INFO] [stdout] --> src/operate/knight.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | fn after_run(board: &mut Board, location: &(Location, Location)) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `location` [INFO] [stdout] --> src/operate/knight.rs:39:37 [INFO] [stdout] | [INFO] [stdout] 39 | fn after_run(board: &mut Board, location: &(Location, Location)) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `identity` is never read [INFO] [stdout] --> src/parser.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Command { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 6 | pub identity: PIECES, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> src/parser.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Command { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 13 | fn parse<'a>(command: String) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/operate/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Location { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | x: usize, [INFO] [stdout] | ^ [INFO] [stdout] 12 | y: usize, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `check`, `move_location`, and `after_run` are never used [INFO] [stdout] --> src/operate/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Operate { [INFO] [stdout] | ------- associated functions in this trait [INFO] [stdout] 16 | fn final_location(board: &mut Board, command: &Command, colour: &COLOUR) -> Result<(Location, Location), String>; [INFO] [stdout] 17 | fn check(board: &mut Board, location: &(Location, Location)) -> bool; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | fn move_location(board: &mut Board, location: &(Location, Location)); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 19 | fn after_run(board: &mut Board, location: &(Location, Location)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/operate/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KnightOperate` is never constructed [INFO] [stdout] --> src/operate/knight.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct KnightOperate {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.49s [INFO] running `Command { std: "docker" "inspect" "73078bc90770ac129cbfb6ce9ac44fad9964531de64bec98df41f9cf8156db1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73078bc90770ac129cbfb6ce9ac44fad9964531de64bec98df41f9cf8156db1e", kill_on_drop: false }` [INFO] [stdout] 73078bc90770ac129cbfb6ce9ac44fad9964531de64bec98df41f9cf8156db1e