[INFO] cloning repository https://github.com/beatmadsen/chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/beatmadsen/chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbeatmadsen%2Fchess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbeatmadsen%2Fchess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e4bd1f56a7ea4da6b7ea9f773601463b3ad9e610 [INFO] testing beatmadsen/chess against try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbeatmadsen%2Fchess" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/beatmadsen/chess on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/beatmadsen/chess [INFO] finished tweaking git repo https://github.com/beatmadsen/chess [INFO] tweaked toml for git repo https://github.com/beatmadsen/chess written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/beatmadsen/chess already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5dd134577d7f1d513c3f75d0ab947c5e2562b5f53f578db0df7917d5e05e9052 [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" "5dd134577d7f1d513c3f75d0ab947c5e2562b5f53f578db0df7917d5e05e9052", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5dd134577d7f1d513c3f75d0ab947c5e2562b5f53f578db0df7917d5e05e9052", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dd134577d7f1d513c3f75d0ab947c5e2562b5f53f578db0df7917d5e05e9052", kill_on_drop: false }` [INFO] [stdout] 5dd134577d7f1d513c3f75d0ab947c5e2562b5f53f578db0df7917d5e05e9052 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c0e7a0614de7c7f2c24bf78f7ff8ffecb54fe61fb637680cd980bb93437506e [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" "8c0e7a0614de7c7f2c24bf78f7ff8ffecb54fe61fb637680cd980bb93437506e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | (0...7, 0...7) => Name { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | (0...7, 0...7) => Name { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | (0...7, 0...7) => Some(Name { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | (0...7, 0...7) => Some(Name { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | 'a'...'h' => Some(c as i8 - 'a' as i8), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | 'A'...'H' => Some(c as i8 - 'A' as i8), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/piece.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | fn box_clone(&self) -> Box; [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/piece.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | impl Clone for Box { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/piece.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn clone(&self) -> Box { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/piece.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | fn box_clone(&self) -> Box { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/square.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | piece: Option>, [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | ChessError::new(err.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pawn` [INFO] [stdout] --> src/piece.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Pawn {} [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Queen` [INFO] [stdout] --> src/piece.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Queen {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `King` [INFO] [stdout] --> src/piece.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct King {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Knight` [INFO] [stdout] --> src/piece.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Knight {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rook` [INFO] [stdout] --> src/piece.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Rook {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Square` [INFO] [stdout] --> src/square.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Square { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `legal_moves` [INFO] [stdout] --> src/square.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn legal_moves(&self) -> Vec<(Name, Name)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Position` [INFO] [stdout] --> src/square.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `legal_moves` [INFO] [stdout] --> src/square.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn legal_moves(&self) -> Vec<(Name, Name)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.06s [INFO] running `Command { std: "docker" "inspect" "8c0e7a0614de7c7f2c24bf78f7ff8ffecb54fe61fb637680cd980bb93437506e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c0e7a0614de7c7f2c24bf78f7ff8ffecb54fe61fb637680cd980bb93437506e", kill_on_drop: false }` [INFO] [stdout] 8c0e7a0614de7c7f2c24bf78f7ff8ffecb54fe61fb637680cd980bb93437506e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen" "--no-run" "--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] 3eebf4f301338795f4c4670950c2eb49d7ff46dcc80e157de05e9d44190562fb [INFO] running `Command { std: "docker" "start" "-a" "3eebf4f301338795f4c4670950c2eb49d7ff46dcc80e157de05e9d44190562fb", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | (0...7, 0...7) => Name { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 39 | (0...7, 0...7) => Name { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | (0...7, 0...7) => Some(Name { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | (0...7, 0...7) => Some(Name { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | 'a'...'h' => Some(c as i8 - 'a' as i8), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/name.rs:87:20 [INFO] [stdout] | [INFO] [stdout] 87 | 'A'...'H' => Some(c as i8 - 'A' as i8), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/piece.rs:7:32 [INFO] [stdout] | [INFO] [stdout] 7 | fn box_clone(&self) -> Box; [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/piece.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | impl Clone for Box { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/piece.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | fn clone(&self) -> Box { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/piece.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | fn box_clone(&self) -> Box { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/square.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | piece: Option>, [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | ChessError::new(err.description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pawn` [INFO] [stdout] --> src/piece.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Pawn {} [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Queen` [INFO] [stdout] --> src/piece.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Queen {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `King` [INFO] [stdout] --> src/piece.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct King {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Knight` [INFO] [stdout] --> src/piece.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Knight {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rook` [INFO] [stdout] --> src/piece.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Rook {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Square` [INFO] [stdout] --> src/square.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Square { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `legal_moves` [INFO] [stdout] --> src/square.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn legal_moves(&self) -> Vec<(Name, Name)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Position` [INFO] [stdout] --> src/square.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `legal_moves` [INFO] [stdout] --> src/square.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn legal_moves(&self) -> Vec<(Name, Name)> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.47s [INFO] running `Command { std: "docker" "inspect" "3eebf4f301338795f4c4670950c2eb49d7ff46dcc80e157de05e9d44190562fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3eebf4f301338795f4c4670950c2eb49d7ff46dcc80e157de05e9d44190562fb", kill_on_drop: false }` [INFO] [stdout] 3eebf4f301338795f4c4670950c2eb49d7ff46dcc80e157de05e9d44190562fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 65a86796451746701dbd2c6b8dcec94c79fd82d35b63616fed22d0b4dd8b6a5b [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" "65a86796451746701dbd2c6b8dcec94c79fd82d35b63616fed22d0b4dd8b6a5b", kill_on_drop: false }` [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/name.rs:39:15 [INFO] [stderr] | [INFO] [stderr] 39 | (0...7, 0...7) => Name { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/name.rs:39:22 [INFO] [stderr] | [INFO] [stderr] 39 | (0...7, 0...7) => Name { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/name.rs:55:15 [INFO] [stderr] | [INFO] [stderr] 55 | (0...7, 0...7) => Some(Name { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/name.rs:55:22 [INFO] [stderr] | [INFO] [stderr] 55 | (0...7, 0...7) => Some(Name { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/name.rs:86:20 [INFO] [stderr] | [INFO] [stderr] 86 | 'a'...'h' => Some(c as i8 - 'a' as i8), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/name.rs:87:20 [INFO] [stderr] | [INFO] [stderr] 87 | 'A'...'H' => Some(c as i8 - 'A' as i8), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/piece.rs:7:32 [INFO] [stderr] | [INFO] [stderr] 7 | fn box_clone(&self) -> Box; [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/piece.rs:10:20 [INFO] [stderr] | [INFO] [stderr] 10 | impl Clone for Box { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/piece.rs:11:28 [INFO] [stderr] | [INFO] [stderr] 11 | fn clone(&self) -> Box { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/piece.rs:37:32 [INFO] [stderr] | [INFO] [stderr] 37 | fn box_clone(&self) -> Box { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/square.rs:5:23 [INFO] [stderr] | [INFO] [stderr] 5 | piece: Option>, [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Piece` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/error.rs:32:29 [INFO] [stderr] | [INFO] [stderr] 32 | ChessError::new(err.description()) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Pawn` [INFO] [stderr] --> src/piece.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct Pawn {} [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Queen` [INFO] [stderr] --> src/piece.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct Queen {} [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `King` [INFO] [stderr] --> src/piece.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct King {} [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Knight` [INFO] [stderr] --> src/piece.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 19 | pub struct Knight {} [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Rook` [INFO] [stderr] --> src/piece.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct Rook {} [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Square` [INFO] [stderr] --> src/square.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct Square { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `legal_moves` [INFO] [stderr] --> src/square.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn legal_moves(&self) -> Vec<(Name, Name)> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Position` [INFO] [stderr] --> src/square.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 19 | pub struct Position { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `legal_moves` [INFO] [stderr] --> src/square.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn legal_moves(&self) -> Vec<(Name, Name)> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `chess` (bin "chess" test) generated 21 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/chess-e054572791f2e046) [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test name::tests::d4_has_correct_east_neighbour ... ok [INFO] [stdout] test name::tests::d4_has_correct_north_neighbour ... ok [INFO] [stdout] test name::tests::d4_has_correct_south_neighbour ... ok [INFO] [stdout] test name::tests::d4_has_correct_west_neighbour ... ok [INFO] [stdout] test name::tests::g2_has_correct_south_east_neighbour ... ok [INFO] [stdout] test name::tests::h1_has_no_south_east_neighbour ... ok [INFO] [stdout] test name::tests::g7_has_correct_north_east_neighbour ... ok [INFO] [stdout] test name::tests::b7_has_correct_north_west_neighbour ... ok [INFO] [stdout] test name::tests::a1_collects_correct_east_neighbours ... ok [INFO] [stdout] test name::tests::a8_has_no_north_west_neighbour ... ok [INFO] [stdout] test name::tests::b2_has_correct_south_west_neighbour ... ok [INFO] [stdout] test name::tests::h8_has_no_north_east_neighbour ... ok [INFO] [stdout] test name::tests::a1_has_no_south_west_neighbour ... ok [INFO] [stdout] test name::tests::a3_collects_correct_south_west_neighbours ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "65a86796451746701dbd2c6b8dcec94c79fd82d35b63616fed22d0b4dd8b6a5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65a86796451746701dbd2c6b8dcec94c79fd82d35b63616fed22d0b4dd8b6a5b", kill_on_drop: false }` [INFO] [stdout] 65a86796451746701dbd2c6b8dcec94c79fd82d35b63616fed22d0b4dd8b6a5b