[INFO] cloning repository https://github.com/voelklmichael/varidor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/voelklmichael/varidor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvoelklmichael%2Fvaridor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvoelklmichael%2Fvaridor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ba8691397116cc03e96eb6721db8449ff1bfca68 [INFO] building voelklmichael/varidor against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvoelklmichael%2Fvaridor" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/voelklmichael/varidor on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/voelklmichael/varidor [INFO] finished tweaking git repo https://github.com/voelklmichael/varidor [INFO] tweaked toml for git repo https://github.com/voelklmichael/varidor written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/voelklmichael/varidor 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-traits v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4794ab1341d4ad4ed4745e4f713fc3ce7ecfef76c338d7d900307af0bf60434 [INFO] running `Command { std: "docker" "start" "-a" "a4794ab1341d4ad4ed4745e4f713fc3ce7ecfef76c338d7d900307af0bf60434", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4794ab1341d4ad4ed4745e4f713fc3ce7ecfef76c338d7d900307af0bf60434", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4794ab1341d4ad4ed4745e4f713fc3ce7ecfef76c338d7d900307af0bf60434", kill_on_drop: false }` [INFO] [stdout] a4794ab1341d4ad4ed4745e4f713fc3ce7ecfef76c338d7d900307af0bf60434 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1907159d0251dd929d855df880d59fc0f054da5505ddb18c0f37b56e37bf00d1 [INFO] running `Command { std: "docker" "start" "-a" "1907159d0251dd929d855df880d59fc0f054da5505ddb18c0f37b56e37bf00d1", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling num-traits v0.2.0 [INFO] [stderr] Compiling lazy_static v1.0.0 [INFO] [stderr] Compiling varidor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self::square_board3::*` [INFO] [stdout] --> src/board_square/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use self::square_board3::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::square_board4::*` [INFO] [stdout] --> src/board_square/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use self::square_board4::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::square_board4::*` [INFO] [stdout] --> src/board_square/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use self::square_board4::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::square_board5::*` [INFO] [stdout] --> src/board_square/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use self::square_board5::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/lib.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | / lazy_static! { [INFO] [stdout] 88 | | static ref DATA: Mutex = Mutex::new(GameData::new()); [INFO] [stdout] 89 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/board_square/square_board.rs:259:17 [INFO] [stdout] | [INFO] [stdout] 259 | let mut data = board.get_player_data_mut(player); [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: variable does not need to be mutable [INFO] [stdout] --> src/board_square/square_board.rs:259:17 [INFO] [stdout] | [INFO] [stdout] 259 | let mut data = board.get_player_data_mut(player); [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: trait `FieldIndexTrait` is never used [INFO] [stdout] --> src/board_square/mod.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait FieldIndexTrait: Clone + Copy + PartialEq {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_wall_count` is never used [INFO] [stdout] --> src/board_square/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait PlayerDataTrait { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 28 | fn get_wall_count(&self) -> Self::WallCountType; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotConnected` is never constructed [INFO] [stdout] --> src/board_square/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum WallPlacmentError { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 48 | NotConnected, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FieldsNotAdjacent` is never constructed [INFO] [stdout] --> src/board_square/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum MoveError { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 53 | FieldsNotAdjacent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_for_wall` is never used [INFO] [stdout] --> src/board_square/mod.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub trait BoardTrait { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 84 | fn check_for_wall( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `next_player`, `to_string`, and `get_color_as_string` are never used [INFO] [stdout] --> src/board_square/player.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait PlayerIndexTrait: Clone + Copy + 'static { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 5 | fn next_player(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | fn to_string(self) -> &'static str; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | fn get_color_as_string(self) -> &'static str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/board_square/type_level_integers.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait IntegerTrait: Sized { [INFO] [stdout] | ------------ associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn new() -> Self; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Usize4` is never used [INFO] [stdout] --> src/board_square/type_level_integers.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub type Usize4 = UsizeNext; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Usize5` is never used [INFO] [stdout] --> src/board_square/type_level_integers.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | pub type Usize5 = UsizeNext; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `wall_lookup_unsafe` and `croosing_lookup_unsafe` are never used [INFO] [stdout] --> src/board_square/square_board.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 101 | / impl< [INFO] [stdout] 102 | | T: Clone + Copy + PartialEq + Add + One, [INFO] [stdout] 103 | | SizeType, [INFO] [stdout] 104 | | WallDataType: WallPositionTrait, [INFO] [stdout] 105 | | [INFO] [stdout] 106 | | WallCrosingType: WallCrosingTrait, [INFO] [stdout] 107 | | > SquareBoard [INFO] [stdout] | |_________________________________________________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn wall_lookup_unsafe( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn croosing_lookup_unsafe(&self, lower_left_field: FieldIndexSquare) -> WallCrossing { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SquareBoard5` is never used [INFO] [stdout] --> src/board_square/square_board5.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub type SquareBoard5 = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SquareBoard4` is never used [INFO] [stdout] --> src/board_square/square_board4.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub type SquareBoard4 = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/board_square/mod.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | / new_visited_fields [INFO] [stdout] 176 | | .iter() [INFO] [stdout] 177 | | .map(|&x| visited_fields.push(x)) [INFO] [stdout] 178 | | .collect::>(); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 175 | let _ = new_visited_fields [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_square/player.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | [White, Black].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] 21 | [White, Black].iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 21 | IntoIterator::into_iter([White, Black]) [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_square/square_board.rs:27:33 [INFO] [stdout] | [INFO] [stdout] 27 | [Up, Down, Left, Right].into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 27 | [Up, Down, Left, Right].iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 27 | IntoIterator::into_iter([Up, Down, Left, Right]) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FieldIndexTrait` is never used [INFO] [stdout] --> src/board_square/mod.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait FieldIndexTrait: Clone + Copy + PartialEq {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_for_wall` is never used [INFO] [stdout] --> src/board_square/mod.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub trait BoardTrait { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 84 | fn check_for_wall( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/board_square/type_level_integers.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait IntegerTrait: Sized { [INFO] [stdout] | ------------ associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn new() -> Self; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SquareBoard3` is never used [INFO] [stdout] --> src/board_square/square_board3.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub type SquareBoard3 = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SquareBoard4` is never used [INFO] [stdout] --> src/board_square/square_board4.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub type SquareBoard4 = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/board_square/mod.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | / new_visited_fields [INFO] [stdout] 176 | | .iter() [INFO] [stdout] 177 | | .map(|&x| visited_fields.push(x)) [INFO] [stdout] 178 | | .collect::>(); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 175 | let _ = new_visited_fields [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_square/player.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | [White, Black].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] 21 | [White, Black].iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 21 | IntoIterator::into_iter([White, Black]) [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_square/square_board.rs:27:33 [INFO] [stdout] | [INFO] [stdout] 27 | [Up, Down, Left, Right].into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 27 | [Up, Down, Left, Right].iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 27 | IntoIterator::into_iter([Up, Down, Left, Right]) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.32s [INFO] running `Command { std: "docker" "inspect" "1907159d0251dd929d855df880d59fc0f054da5505ddb18c0f37b56e37bf00d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1907159d0251dd929d855df880d59fc0f054da5505ddb18c0f37b56e37bf00d1", kill_on_drop: false }` [INFO] [stdout] 1907159d0251dd929d855df880d59fc0f054da5505ddb18c0f37b56e37bf00d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06540a3dd751cb880562e8e89d6d7f60ad0374c6949d9790be09c6ea58174760 [INFO] running `Command { std: "docker" "start" "-a" "06540a3dd751cb880562e8e89d6d7f60ad0374c6949d9790be09c6ea58174760", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling varidor v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self::square_board4::*` [INFO] [stdout] --> src/board_square/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use self::square_board4::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::square_board5::*` [INFO] [stdout] --> src/board_square/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use self::square_board5::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::square_board3::*` [INFO] [stdout] --> src/board_square/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use self::square_board3::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::square_board4::*` [INFO] [stdout] --> src/board_square/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use self::square_board4::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/lib.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | / lazy_static! { [INFO] [stdout] 88 | | static ref DATA: Mutex = Mutex::new(GameData::new()); [INFO] [stdout] 89 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/board_square/square_board.rs:259:17 [INFO] [stdout] | [INFO] [stdout] 259 | let mut data = board.get_player_data_mut(player); [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: trait `FieldIndexTrait` is never used [INFO] [stdout] --> src/board_square/mod.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait FieldIndexTrait: Clone + Copy + PartialEq {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_wall_count` is never used [INFO] [stdout] --> src/board_square/mod.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait PlayerDataTrait { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 28 | fn get_wall_count(&self) -> Self::WallCountType; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotConnected` is never constructed [INFO] [stdout] --> src/board_square/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum WallPlacmentError { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 48 | NotConnected, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FieldsNotAdjacent` is never constructed [INFO] [stdout] --> src/board_square/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub enum MoveError { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 53 | FieldsNotAdjacent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_for_wall` is never used [INFO] [stdout] --> src/board_square/mod.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub trait BoardTrait { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 84 | fn check_for_wall( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `next_player`, `to_string`, and `get_color_as_string` are never used [INFO] [stdout] --> src/board_square/player.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait PlayerIndexTrait: Clone + Copy + 'static { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 5 | fn next_player(self) -> Self; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | fn to_string(self) -> &'static str; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | fn get_color_as_string(self) -> &'static str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/board_square/type_level_integers.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait IntegerTrait: Sized { [INFO] [stdout] | ------------ associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn new() -> Self; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Usize4` is never used [INFO] [stdout] --> src/board_square/type_level_integers.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub type Usize4 = UsizeNext; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Usize5` is never used [INFO] [stdout] --> src/board_square/type_level_integers.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | pub type Usize5 = UsizeNext; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `wall_lookup_unsafe` and `croosing_lookup_unsafe` are never used [INFO] [stdout] --> src/board_square/square_board.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 101 | / impl< [INFO] [stdout] 102 | | T: Clone + Copy + PartialEq + Add + One, [INFO] [stdout] 103 | | SizeType, [INFO] [stdout] 104 | | WallDataType: WallPositionTrait, [INFO] [stdout] 105 | | [INFO] [stdout] 106 | | WallCrosingType: WallCrosingTrait, [INFO] [stdout] 107 | | > SquareBoard [INFO] [stdout] | |_________________________________________________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn wall_lookup_unsafe( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn croosing_lookup_unsafe(&self, lower_left_field: FieldIndexSquare) -> WallCrossing { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SquareBoard5` is never used [INFO] [stdout] --> src/board_square/square_board5.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub type SquareBoard5 = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SquareBoard4` is never used [INFO] [stdout] --> src/board_square/square_board4.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub type SquareBoard4 = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/board_square/mod.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | / new_visited_fields [INFO] [stdout] 176 | | .iter() [INFO] [stdout] 177 | | .map(|&x| visited_fields.push(x)) [INFO] [stdout] 178 | | .collect::>(); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 175 | let _ = new_visited_fields [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_square/player.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | [White, Black].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] 21 | [White, Black].iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 21 | IntoIterator::into_iter([White, Black]) [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_square/square_board.rs:27:33 [INFO] [stdout] | [INFO] [stdout] 27 | [Up, Down, Left, Right].into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 27 | [Up, Down, Left, Right].iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 27 | IntoIterator::into_iter([Up, Down, Left, Right]) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/board_square/square_board.rs:259:17 [INFO] [stdout] | [INFO] [stdout] 259 | let mut data = board.get_player_data_mut(player); [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: trait `FieldIndexTrait` is never used [INFO] [stdout] --> src/board_square/mod.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait FieldIndexTrait: Clone + Copy + PartialEq {} [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `check_for_wall` is never used [INFO] [stdout] --> src/board_square/mod.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub trait BoardTrait { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 84 | fn check_for_wall( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/board_square/type_level_integers.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait IntegerTrait: Sized { [INFO] [stdout] | ------------ associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn new() -> Self; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SquareBoard3` is never used [INFO] [stdout] --> src/board_square/square_board3.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub type SquareBoard3 = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SquareBoard4` is never used [INFO] [stdout] --> src/board_square/square_board4.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub type SquareBoard4 = [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/board_square/mod.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | / new_visited_fields [INFO] [stdout] 176 | | .iter() [INFO] [stdout] 177 | | .map(|&x| visited_fields.push(x)) [INFO] [stdout] 178 | | .collect::>(); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 175 | let _ = new_visited_fields [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_square/player.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | [White, Black].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] 21 | [White, Black].iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 21 | IntoIterator::into_iter([White, Black]) [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_square/square_board.rs:27:33 [INFO] [stdout] | [INFO] [stdout] 27 | [Up, Down, Left, Right].into_iter() [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 27 | [Up, Down, Left, Right].iter() [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 27 | IntoIterator::into_iter([Up, Down, Left, Right]) [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.80s [INFO] running `Command { std: "docker" "inspect" "06540a3dd751cb880562e8e89d6d7f60ad0374c6949d9790be09c6ea58174760", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06540a3dd751cb880562e8e89d6d7f60ad0374c6949d9790be09c6ea58174760", kill_on_drop: false }` [INFO] [stdout] 06540a3dd751cb880562e8e89d6d7f60ad0374c6949d9790be09c6ea58174760