[INFO] cloning repository https://github.com/begleynk/terminal-chess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/begleynk/terminal-chess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbegleynk%2Fterminal-chess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbegleynk%2Fterminal-chess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 964b387d9e1d1e188c7f0cb86f687df502da75eb [INFO] testing begleynk/terminal-chess/964b387d9e1d1e188c7f0cb86f687df502da75eb against 1.82.0 for beta-1.83-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbegleynk%2Fterminal-chess" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/begleynk/terminal-chess on toolchain 1.82.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.82.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/begleynk/terminal-chess [INFO] finished tweaking git repo https://github.com/begleynk/terminal-chess [INFO] tweaked toml for git repo https://github.com/begleynk/terminal-chess written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/begleynk/terminal-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" "+1.82.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+1.82.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1d3d93834bacb0631f2f0ccf6a02971aa6ac497db1b30e16ec805fc501adb470 [INFO] running `Command { std: "docker" "start" "-a" "1d3d93834bacb0631f2f0ccf6a02971aa6ac497db1b30e16ec805fc501adb470", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d3d93834bacb0631f2f0ccf6a02971aa6ac497db1b30e16ec805fc501adb470", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d3d93834bacb0631f2f0ccf6a02971aa6ac497db1b30e16ec805fc501adb470", kill_on_drop: false }` [INFO] [stdout] 1d3d93834bacb0631f2f0ccf6a02971aa6ac497db1b30e16ec805fc501adb470 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+1.82.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0955ca1b713d7d1cb6cb41677a3cd5fa27be6883564420ba82c8996b617e4760 [INFO] running `Command { std: "docker" "start" "-a" "0955ca1b713d7d1cb6cb41677a3cd5fa27be6883564420ba82c8996b617e4760", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.2.36 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling ansi_term v0.10.2 [INFO] [stderr] Compiling vec_map v0.8.0 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling textwrap v0.9.0 [INFO] [stderr] Compiling atty v0.2.6 [INFO] [stderr] Compiling termion v1.5.1 [INFO] [stderr] Compiling clap v2.30.0 [INFO] [stderr] Compiling terminal-chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ui.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | fn row_iterator<'a>(session: &'a Session) -> Box; 8]> + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 153 | fn row_iterator<'a>(session: &'a Session) -> Box; 8]> + 'a> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ui.rs:160:79 [INFO] [stdout] | [INFO] [stdout] 160 | fn column_iterator<'a>(session: &Session, row: &'a [Option; 8]) -> Box> + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 160 | fn column_iterator<'a>(session: &Session, row: &'a [Option; 8]) -> Box> + 'a> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/piece.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | i => panic!(format!("Unknown rank {:08b}", i)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 43 - i => panic!(format!("Unknown rank {:08b}", i)) [INFO] [stdout] 43 + i => panic!("Unknown rank {:08b}", i) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> src/board.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | self.data.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 82 | self.data.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 82 | IntoIterator::into_iter(self.data) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/board.rs:193:25 [INFO] [stdout] | [INFO] [stdout] 193 | _ => panic!(format!("Bad column index in coordinates: {}", self.column)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 193 - _ => panic!(format!("Bad column index in coordinates: {}", self.column)), [INFO] [stdout] 193 + _ => panic!("Bad column index in coordinates: {}", self.column), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut session = terminal_chess::new_session(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.39s [INFO] running `Command { std: "docker" "inspect" "0955ca1b713d7d1cb6cb41677a3cd5fa27be6883564420ba82c8996b617e4760", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0955ca1b713d7d1cb6cb41677a3cd5fa27be6883564420ba82c8996b617e4760", kill_on_drop: false }` [INFO] [stdout] 0955ca1b713d7d1cb6cb41677a3cd5fa27be6883564420ba82c8996b617e4760 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+1.82.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5d57c18dc9644e00f05e11511a07c2868ff6489bb64caa05ba2c82362febd12 [INFO] running `Command { std: "docker" "start" "-a" "d5d57c18dc9644e00f05e11511a07c2868ff6489bb64caa05ba2c82362febd12", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ui.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | fn row_iterator<'a>(session: &'a Session) -> Box; 8]> + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 153 | fn row_iterator<'a>(session: &'a Session) -> Box; 8]> + 'a> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ui.rs:160:79 [INFO] [stdout] | [INFO] [stdout] 160 | fn column_iterator<'a>(session: &Session, row: &'a [Option; 8]) -> Box> + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 160 | fn column_iterator<'a>(session: &Session, row: &'a [Option; 8]) -> Box> + 'a> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/piece.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | i => panic!(format!("Unknown rank {:08b}", i)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 43 - i => panic!(format!("Unknown rank {:08b}", i)) [INFO] [stdout] 43 + i => panic!("Unknown rank {:08b}", i) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> src/board.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | self.data.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 82 | self.data.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 82 | IntoIterator::into_iter(self.data) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/board.rs:193:25 [INFO] [stdout] | [INFO] [stdout] 193 | _ => panic!(format!("Bad column index in coordinates: {}", self.column)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 193 - _ => panic!(format!("Bad column index in coordinates: {}", self.column)), [INFO] [stdout] 193 + _ => panic!("Bad column index in coordinates: {}", self.column), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling terminal-chess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut session = terminal_chess::new_session(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/engine/knight.rs:135:40 [INFO] [stdout] | [INFO] [stdout] 135 | let mut board = Board::empty();; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ui.rs:153:50 [INFO] [stdout] | [INFO] [stdout] 153 | fn row_iterator<'a>(session: &'a Session) -> Box; 8]> + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 153 | fn row_iterator<'a>(session: &'a Session) -> Box; 8]> + 'a> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ui.rs:160:79 [INFO] [stdout] | [INFO] [stdout] 160 | fn column_iterator<'a>(session: &Session, row: &'a [Option; 8]) -> Box> + 'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 160 | fn column_iterator<'a>(session: &Session, row: &'a [Option; 8]) -> Box> + 'a> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/piece.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | i => panic!(format!("Unknown rank {:08b}", i)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 43 - i => panic!(format!("Unknown rank {:08b}", i)) [INFO] [stdout] 43 + i => panic!("Unknown rank {:08b}", i) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stdout] --> src/board.rs:82:19 [INFO] [stdout] | [INFO] [stdout] 82 | self.data.into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 82 | self.data.iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 82 | IntoIterator::into_iter(self.data) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/board.rs:193:25 [INFO] [stdout] | [INFO] [stdout] 193 | _ => panic!(format!("Bad column index in coordinates: {}", self.column)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 193 - _ => panic!(format!("Bad column index in coordinates: {}", self.column)), [INFO] [stdout] 193 + _ => panic!("Bad column index in coordinates: {}", self.column), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `Command { std: "docker" "inspect" "d5d57c18dc9644e00f05e11511a07c2868ff6489bb64caa05ba2c82362febd12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5d57c18dc9644e00f05e11511a07c2868ff6489bb64caa05ba2c82362febd12", kill_on_drop: false }` [INFO] [stdout] d5d57c18dc9644e00f05e11511a07c2868ff6489bb64caa05ba2c82362febd12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+1.82.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b2c7891c30af39fdb73f210cf2096c39627bef6633b18b46bd8ffc0351f1b2ef [INFO] running `Command { std: "docker" "start" "-a" "b2c7891c30af39fdb73f210cf2096c39627bef6633b18b46bd8ffc0351f1b2ef", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ui.rs:153:50 [INFO] [stderr] | [INFO] [stderr] 153 | fn row_iterator<'a>(session: &'a Session) -> Box; 8]> + 'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] help: if this is an object-safe trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 153 | fn row_iterator<'a>(session: &'a Session) -> Box; 8]> + 'a> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/ui.rs:160:79 [INFO] [stderr] | [INFO] [stderr] 160 | fn column_iterator<'a>(session: &Session, row: &'a [Option; 8]) -> Box> + 'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 160 | fn column_iterator<'a>(session: &Session, row: &'a [Option; 8]) -> Box> + 'a> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/piece.rs:43:25 [INFO] [stderr] | [INFO] [stderr] 43 | i => panic!(format!("Unknown rank {:08b}", i)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 43 - i => panic!(format!("Unknown rank {:08b}", i)) [INFO] [stderr] 43 + i => panic!("Unknown rank {:08b}", i) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021 [INFO] [stderr] --> src/board.rs:82:19 [INFO] [stderr] | [INFO] [stderr] 82 | self.data.into_iter() [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this changes meaning in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(array_into_iter)]` on by default [INFO] [stderr] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stderr] | [INFO] [stderr] 82 | self.data.iter() [INFO] [stderr] | ~~~~ [INFO] [stderr] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stderr] | [INFO] [stderr] 82 | IntoIterator::into_iter(self.data) [INFO] [stderr] | ++++++++++++++++++++++++ ~ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/board.rs:193:25 [INFO] [stderr] | [INFO] [stderr] 193 | _ => panic!(format!("Bad column index in coordinates: {}", self.column)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 193 - _ => panic!(format!("Bad column index in coordinates: {}", self.column)), [INFO] [stderr] 193 + _ => panic!("Bad column index in coordinates: {}", self.column), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/engine/knight.rs:135:40 [INFO] [stderr] | [INFO] [stderr] 135 | let mut board = Board::empty();; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `terminal-chess` (lib) generated 5 warnings (run `cargo fix --lib -p terminal-chess` to apply 5 suggestions) [INFO] [stderr] warning: `terminal-chess` (lib test) generated 6 warnings (5 duplicates) [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | let mut session = terminal_chess::new_session(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `terminal-chess` (bin "terminal-chess" test) generated 1 warning (run `cargo fix --bin "terminal-chess" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/terminal_chess-f93ca39e59d454c8) [INFO] [stdout] [INFO] [stdout] running 37 tests [INFO] [stdout] test board::tests::coordinates_can_be_created_from_human_readable_strings ... ok [INFO] [stdout] test board::tests::finds_coordinates_of_pieces_on_the_board ... ok [INFO] [stdout] test board::tests::pieces_are_at_correct_starting_position ... ok [INFO] [stdout] test engine::bishop::tests::captures_diagonally ... ok [INFO] [stdout] test engine::bishop::tests::moves_north_east_until_it_hits_something ... ok [INFO] [stdout] test engine::bishop::tests::moves_north_west_until_it_hits_something ... ok [INFO] [stdout] test engine::bishop::tests::moves_south_east_until_it_hits_something ... ok [INFO] [stdout] test engine::bishop::tests::moves_south_west_until_it_hits_something ... ok [INFO] [stdout] test engine::king::tests::can_capture_one_step_in_every_direction ... ok [INFO] [stdout] test engine::knight::tests::can_capture_pieces ... ok [INFO] [stdout] test engine::knight::tests::cannot_jump_off_the_board ... ok [INFO] [stdout] test engine::knight::tests::in_a_shocking_turn_of_events_moves_like_a_knight ... ok [INFO] [stdout] test engine::king::tests::can_move_one_step_in_every_direction ... ok [INFO] [stdout] test engine::knight::tests::cannot_move_to_taken_squares ... ok [INFO] [stdout] test engine::pawn::tests::finds_correct_captures ... ok [INFO] [stdout] test engine::pawn::tests::cannot_move_ahead_if_the_pawn_is_blocked ... ok [INFO] [stdout] test engine::queen::tests::captures_in_straight_lines_and_diagonally ... ok [INFO] [stdout] test engine::queen::tests::moves_in_straight_lines_and_diagonally_until_it_hits_something ... ok [INFO] [stdout] test engine::pawn::tests::can_move_pawns_one_step_ahead ... ok [INFO] [stdout] test engine::pawn::tests::can_move_pawns_two_step_ahead_if_on_starting_row ... ok [INFO] [stdout] test engine::rook::tests::moves_in_straight_lines_until_it_hits_something ... ok [INFO] [stdout] test engine::tests::can_detect_check ... ok [INFO] [stdout] test engine::tests::can_detect_when_not_in_check ... ok [INFO] [stdout] test engine::tests::detects_checkmate ... ok [INFO] [stdout] test engine::tests::dis_bug ... ok [INFO] [stdout] test engine::rook::tests::captures_in_straight_lines ... ok [INFO] [stdout] test game::tests::can_undo_captures ... ok [INFO] [stdout] test game::tests::can_undo_moves ... ok [INFO] [stdout] test engine::tests::prunes_moves_that_do_not_get_the_player_out_of_check ... ok [INFO] [stdout] test game::tests::coordinates_can_be_created_from_human_readable_strings ... ok [INFO] [stdout] test game::tests::undoing_without_a_history_is_a_noop ... ok [INFO] [stdout] test game::tests::it_initializes_the_game ... ok [INFO] [stdout] test piece::tests::encodes_rank_in_lower_bits ... ok [INFO] [stdout] test piece::tests::can_pack_a_piece_from_a_side_and_rank ... ok [INFO] [stdout] test piece::tests::encodes_side_in_the_first_bit ... ok [INFO] [stdout] test ai::tests::makes_the_obvious_move ... ok [INFO] [stdout] test ai::tests::queen_wins_with_two_moves ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 37 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.47s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/terminal_chess-57f20f14f607e028) [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; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests terminal_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; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b2c7891c30af39fdb73f210cf2096c39627bef6633b18b46bd8ffc0351f1b2ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2c7891c30af39fdb73f210cf2096c39627bef6633b18b46bd8ffc0351f1b2ef", kill_on_drop: false }` [INFO] [stdout] b2c7891c30af39fdb73f210cf2096c39627bef6633b18b46bd8ffc0351f1b2ef