[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] testing PerfectDemo/ninja_chess against try#eafdee2dfae8c2233b74f98b123308be7ccefcc6 for pr-79296 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPerfectDemo%2Fninja_chess" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PerfectDemo/ninja_chess on toolchain eafdee2dfae8c2233b74f98b123308be7ccefcc6 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-8/source/Cargo.toml [INFO] crate git repo https://github.com/PerfectDemo/ninja_chess already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3987c4528ed22c3c324a31c429bc786bebc24b86f74d0e847b237df172911309 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3987c4528ed22c3c324a31c429bc786bebc24b86f74d0e847b237df172911309", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3987c4528ed22c3c324a31c429bc786bebc24b86f74d0e847b237df172911309", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3987c4528ed22c3c324a31c429bc786bebc24b86f74d0e847b237df172911309", kill_on_drop: false }` [INFO] [stdout] 3987c4528ed22c3c324a31c429bc786bebc24b86f74d0e847b237df172911309 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a80afa9a11e7aa33e6a6c2e7e5bedbe5bc07e1d3e49a021ba88b8a4c731c6a0a [INFO] running `Command { std: "docker" "start" "-a" "a80afa9a11e7aa33e6a6c2e7e5bedbe5bc07e1d3e49a021ba88b8a4c731c6a0a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling colored v2.0.0 [INFO] [stderr] Compiling ninja_chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `max`, `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)]` 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: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_from_location` instead [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] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: associated function is never used: `init` [INFO] [stdout] --> src/board.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn init() -> Board<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/board.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse` [INFO] [stdout] --> src/parser.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn parse<'a>(command: String) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [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: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.36s [INFO] running `Command { std: "docker" "inspect" "a80afa9a11e7aa33e6a6c2e7e5bedbe5bc07e1d3e49a021ba88b8a4c731c6a0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a80afa9a11e7aa33e6a6c2e7e5bedbe5bc07e1d3e49a021ba88b8a4c731c6a0a", kill_on_drop: false }` [INFO] [stdout] a80afa9a11e7aa33e6a6c2e7e5bedbe5bc07e1d3e49a021ba88b8a4c731c6a0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3caca4b244c0a6b4cc11768f2a8607bcbee452f41d717c8bc29efe77c0583651 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3caca4b244c0a6b4cc11768f2a8607bcbee452f41d717c8bc29efe77c0583651", kill_on_drop: false }` [INFO] [stderr] Compiling ninja_chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `max`, `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)]` 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: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_from_location` instead [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] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: associated function is never used: `init` [INFO] [stdout] --> src/board.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn init() -> Board<'a> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/board.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse` [INFO] [stdout] --> src/parser.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn parse<'a>(command: String) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [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: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `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)]` 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: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_from_location` instead [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] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: associated function is never used: `parse` [INFO] [stdout] --> src/parser.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | fn parse<'a>(command: String) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run` [INFO] [stdout] --> src/operate/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.20s [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3caca4b244c0a6b4cc11768f2a8607bcbee452f41d717c8bc29efe77c0583651", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3caca4b244c0a6b4cc11768f2a8607bcbee452f41d717c8bc29efe77c0583651", kill_on_drop: false }` [INFO] [stdout] 3caca4b244c0a6b4cc11768f2a8607bcbee452f41d717c8bc29efe77c0583651 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+eafdee2dfae8c2233b74f98b123308be7ccefcc6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] eb7c00634b5df91b9fbace9dff84495ff838f1bf10d47964f5ceea614d0a7558 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "eb7c00634b5df91b9fbace9dff84495ff838f1bf10d47964f5ceea614d0a7558", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `max`, `min` [INFO] [stderr] --> src/operate/knight.rs:4:16 [INFO] [stderr] | [INFO] [stderr] 4 | use std::cmp::{min, max}; [INFO] [stderr] | ^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `STAGE` [INFO] [stderr] --> src/operate/knight.rs:7:21 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::{PIECES, STAGE, COLOUR}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `from_location` is assigned to, but never used [INFO] [stderr] --> src/operate/knight.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | let mut from_location; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] = note: consider using `_from_location` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `from_location` is never read [INFO] [stderr] --> src/operate/knight.rs:22:21 [INFO] [stderr] | [INFO] [stderr] 22 | from_location = Location { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/operate/knight.rs:33:14 [INFO] [stderr] | [INFO] [stderr] 33 | fn check(board: &mut Board, location: &(Location, Location)) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `location` [INFO] [stderr] --> src/operate/knight.rs:33:33 [INFO] [stderr] | [INFO] [stderr] 33 | fn check(board: &mut Board, location: &(Location, Location)) -> bool { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/operate/knight.rs:36:22 [INFO] [stderr] | [INFO] [stderr] 36 | fn move_location(board: &mut Board, location: &(Location, Location)) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `location` [INFO] [stderr] --> src/operate/knight.rs:36:41 [INFO] [stderr] | [INFO] [stderr] 36 | fn move_location(board: &mut Board, location: &(Location, Location)) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/operate/knight.rs:39:18 [INFO] [stderr] | [INFO] [stderr] 39 | fn after_run(board: &mut Board, location: &(Location, Location)) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `location` [INFO] [stderr] --> src/operate/knight.rs:39:37 [INFO] [stderr] | [INFO] [stderr] 39 | fn after_run(board: &mut Board, location: &(Location, Location)) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `init` [INFO] [stderr] --> src/board.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn init() -> Board<'a> { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `print` [INFO] [stderr] --> src/board.rs:140:8 [INFO] [stderr] | [INFO] [stderr] 140 | fn print(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `parse` [INFO] [stderr] --> src/parser.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | fn parse<'a>(command: String) -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `run` [INFO] [stderr] --> src/operate/mod.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn run() { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: 14 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: unused imports: `max`, `min` [INFO] [stderr] --> src/operate/knight.rs:4:16 [INFO] [stderr] | [INFO] [stderr] 4 | use std::cmp::{min, max}; [INFO] [stderr] | ^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `STAGE` [INFO] [stderr] --> src/operate/knight.rs:7:21 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::{PIECES, STAGE, COLOUR}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable `from_location` is assigned to, but never used [INFO] [stderr] --> src/operate/knight.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | let mut from_location; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] = note: consider using `_from_location` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `from_location` is never read [INFO] [stderr] --> src/operate/knight.rs:22:21 [INFO] [stderr] | [INFO] [stderr] 22 | from_location = Location { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/operate/knight.rs:33:14 [INFO] [stderr] | [INFO] [stderr] 33 | fn check(board: &mut Board, location: &(Location, Location)) -> bool { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `location` [INFO] [stderr] --> src/operate/knight.rs:33:33 [INFO] [stderr] | [INFO] [stderr] 33 | fn check(board: &mut Board, location: &(Location, Location)) -> bool { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/operate/knight.rs:36:22 [INFO] [stderr] | [INFO] [stderr] 36 | fn move_location(board: &mut Board, location: &(Location, Location)) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `location` [INFO] [stderr] --> src/operate/knight.rs:36:41 [INFO] [stderr] | [INFO] [stderr] 36 | fn move_location(board: &mut Board, location: &(Location, Location)) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `board` [INFO] [stderr] --> src/operate/knight.rs:39:18 [INFO] [stderr] | [INFO] [stderr] 39 | fn after_run(board: &mut Board, location: &(Location, Location)) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_board` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `location` [INFO] [stderr] --> src/operate/knight.rs:39:37 [INFO] [stderr] | [INFO] [stderr] 39 | fn after_run(board: &mut Board, location: &(Location, Location)) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_location` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `parse` [INFO] [stderr] --> src/parser.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | fn parse<'a>(command: String) -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `run` [INFO] [stderr] --> src/operate/mod.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn run() { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: 12 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/ninja_chess-5dadb4cc3a98259c [INFO] [stdout] running 3 tests [INFO] [stderr] Running /opt/rustwide/target/debug/deps/ninja_chess-8e4516d2ce30acd9 [INFO] [stdout] test operate::rook::tests::show_board ... ok [INFO] [stdout] test board::tests::show_board ... ok [INFO] [stdout] test piece::tests::show ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests ninja_chess [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "eb7c00634b5df91b9fbace9dff84495ff838f1bf10d47964f5ceea614d0a7558", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb7c00634b5df91b9fbace9dff84495ff838f1bf10d47964f5ceea614d0a7558", kill_on_drop: false }` [INFO] [stdout] eb7c00634b5df91b9fbace9dff84495ff838f1bf10d47964f5ceea614d0a7558