[INFO] cloning repository https://github.com/Sean-Hastings/rust_tron [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sean-Hastings/rust_tron" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSean-Hastings%2Frust_tron", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSean-Hastings%2Frust_tron'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3d264e880c82f451a731ba478bd1ae388c8a8747 [INFO] checking Sean-Hastings/rust_tron/3d264e880c82f451a731ba478bd1ae388c8a8747 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSean-Hastings%2Frust_tron" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Sean-Hastings/rust_tron on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Sean-Hastings/rust_tron [INFO] finished tweaking git repo https://github.com/Sean-Hastings/rust_tron [INFO] tweaked toml for git repo https://github.com/Sean-Hastings/rust_tron written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Sean-Hastings/rust_tron 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] da58d4e23825e05a8d2df295ed9fb1669b1f3112a8002d5a83f5d72d3d4e474e [INFO] running `Command { std: "docker" "start" "-a" "da58d4e23825e05a8d2df295ed9fb1669b1f3112a8002d5a83f5d72d3d4e474e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da58d4e23825e05a8d2df295ed9fb1669b1f3112a8002d5a83f5d72d3d4e474e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da58d4e23825e05a8d2df295ed9fb1669b1f3112a8002d5a83f5d72d3d4e474e", kill_on_drop: false }` [INFO] [stdout] da58d4e23825e05a8d2df295ed9fb1669b1f3112a8002d5a83f5d72d3d4e474e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47f989072a2de438848cb31e0671880c9d257dd2eae44d4b4e1aa1bf2a875e29 [INFO] running `Command { std: "docker" "start" "-a" "47f989072a2de438848cb31e0671880c9d257dd2eae44d4b4e1aa1bf2a875e29", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rust_tron v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::game::GameState` [INFO] [stdout] --> src/board.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::GameState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/player_controller.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Pointer` and `write` [INFO] [stdout] --> src/player_controller.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Formatter, Pointer, write}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BoardCell` [INFO] [stdout] --> src/player_controller.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::board::{Board, BoardCell, CellState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerController` [INFO] [stdout] --> src/main.rs:9:32 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::player_controller::{PlayerController, ClockwiseController, BFSController}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::GameState` [INFO] [stdout] --> src/board.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::game::GameState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/player_controller.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Pointer` and `write` [INFO] [stdout] --> src/player_controller.rs:3:36 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::{Display, Formatter, Pointer, write}; [INFO] [stdout] | ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BoardCell` [INFO] [stdout] --> src/player_controller.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::board::{Board, BoardCell, CellState}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlayerController` [INFO] [stdout] --> src/main.rs:9:32 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::player_controller::{PlayerController, ClockwiseController, BFSController}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/player_controller.rs:183:60 [INFO] [stdout] | [INFO] [stdout] 183 | ... PowerUp::DoubleSpeed { duration } => { 3 } [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `duration: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player_controller.rs:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | let mut frontier = &mut frontiers[id]; [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/game.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | let mut controller = self.player_controllers.get_mut(active_id).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `controller_clockwise` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut controller_clockwise = ClockwiseController{}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_controller_clockwise` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut controller_clockwise = ClockwiseController{}; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut controller_smart = BFSController{ turn_time_milliseconds: 1000, score_tracker: HashMap::new() }; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut controller_smart_2 = BFSController{ turn_time_milliseconds: 1000, score_tracker: HashMap::new() }; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PowerUp` and `Wall` are never constructed [INFO] [stdout] --> src/board.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum CellState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 9 | Empty, [INFO] [stdout] 10 | PowerUp { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | Wall, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CellState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_position` is never used [INFO] [stdout] --> src/board.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl BoardCell { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 37 | fn get_position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `height` and `width` are never used [INFO] [stdout] --> src/board.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn height(&self) -> usize{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn width(&self) -> usize{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_id` is never used [INFO] [stdout] --> src/player.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Player { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn get_id(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DoubleSpeed`, `Armor`, and `Bomb` are never constructed [INFO] [stdout] --> src/power_up.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum PowerUp { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 3 | DoubleSpeed { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | Armor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Bomb [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PowerUp` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `winner_id` is never read [INFO] [stdout] --> src/game.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | Over { [INFO] [stdout] | ---- field in this variant [INFO] [stdout] 12 | winner_id: usize [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/game.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new_default(player_controllers: [Box; 2]) -> Self { [INFO] [stdout] | -------------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 26 | Game::new(board, Vec::from(player_controllers)).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/game.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(board: Board, player_controllers: Vec>) -> Result { [INFO] [stdout] | -------------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 42 | Ok(Game { [INFO] [stdout] | ____________^ [INFO] [stdout] 43 | | board, [INFO] [stdout] 44 | | player_controllers, [INFO] [stdout] 45 | | state: GameState::Active { [INFO] [stdout] ... | [INFO] [stdout] 48 | | } [INFO] [stdout] 49 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_tron` (bin "rust_tron" test) due to 3 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/player_controller.rs:183:60 [INFO] [stdout] | [INFO] [stdout] 183 | ... PowerUp::DoubleSpeed { duration } => { 3 } [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `duration: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/player_controller.rs:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | let mut frontier = &mut frontiers[id]; [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/game.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | let mut controller = self.player_controllers.get_mut(active_id).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `controller_clockwise` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut controller_clockwise = ClockwiseController{}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_controller_clockwise` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let mut controller_clockwise = ClockwiseController{}; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut controller_smart = BFSController{ turn_time_milliseconds: 1000, score_tracker: HashMap::new() }; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut controller_smart_2 = BFSController{ turn_time_milliseconds: 1000, score_tracker: HashMap::new() }; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PowerUp` and `Wall` are never constructed [INFO] [stdout] --> src/board.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum CellState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 9 | Empty, [INFO] [stdout] 10 | PowerUp { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | Wall, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CellState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_position` is never used [INFO] [stdout] --> src/board.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 36 | impl BoardCell { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 37 | fn get_position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `height` and `width` are never used [INFO] [stdout] --> src/board.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl Board { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn height(&self) -> usize{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn width(&self) -> usize{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_id` is never used [INFO] [stdout] --> src/player.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl Player { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn get_id(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DoubleSpeed`, `Armor`, and `Bomb` are never constructed [INFO] [stdout] --> src/power_up.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum PowerUp { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 3 | DoubleSpeed { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | Armor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Bomb [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PowerUp` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `winner_id` is never read [INFO] [stdout] --> src/game.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | Over { [INFO] [stdout] | ---- field in this variant [INFO] [stdout] 12 | winner_id: usize [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/game.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new_default(player_controllers: [Box; 2]) -> Self { [INFO] [stdout] | -------------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 26 | Game::new(board, Vec::from(player_controllers)).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/game.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new(board: Board, player_controllers: Vec>) -> Result { [INFO] [stdout] | -------------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 42 | Ok(Game { [INFO] [stdout] | ____________^ [INFO] [stdout] 43 | | board, [INFO] [stdout] 44 | | player_controllers, [INFO] [stdout] 45 | | state: GameState::Active { [INFO] [stdout] ... | [INFO] [stdout] 48 | | } [INFO] [stdout] 49 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_tron` (bin "rust_tron") due to 3 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "47f989072a2de438848cb31e0671880c9d257dd2eae44d4b4e1aa1bf2a875e29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47f989072a2de438848cb31e0671880c9d257dd2eae44d4b4e1aa1bf2a875e29", kill_on_drop: false }` [INFO] [stdout] 47f989072a2de438848cb31e0671880c9d257dd2eae44d4b4e1aa1bf2a875e29