[INFO] cloning repository https://github.com/dlinman/rgame [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dlinman/rgame" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdlinman%2Frgame", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdlinman%2Frgame'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d89d04a4848bf95b20b09b41bd39e2daacb70c5c [INFO] checking dlinman/rgame/d89d04a4848bf95b20b09b41bd39e2daacb70c5c 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%2Fdlinman%2Frgame" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dlinman/rgame 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/dlinman/rgame [INFO] finished tweaking git repo https://github.com/dlinman/rgame [INFO] tweaked toml for git repo https://github.com/dlinman/rgame written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/dlinman/rgame 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 9b76a25eb961a323794848105f6571a8733dba8d071a764b0eb2e73535e18562 [INFO] running `Command { std: "docker" "start" "-a" "9b76a25eb961a323794848105f6571a8733dba8d071a764b0eb2e73535e18562", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b76a25eb961a323794848105f6571a8733dba8d071a764b0eb2e73535e18562", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b76a25eb961a323794848105f6571a8733dba8d071a764b0eb2e73535e18562", kill_on_drop: false }` [INFO] [stdout] 9b76a25eb961a323794848105f6571a8733dba8d071a764b0eb2e73535e18562 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] b8bdfeade25b5ef8979317665bf13062a8e1e00194b2d23c7a9eb2b2a064f7ce [INFO] running `Command { std: "docker" "start" "-a" "b8bdfeade25b5ef8979317665bf13062a8e1e00194b2d23c7a9eb2b2a064f7ce", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rgame v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/single_game.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `human_player`, `pick_highest_action_agent`, `self_minimax_agent`, and `strict_random_agent` [INFO] [stdout] --> src/main.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use agents::{strict_random_agent, pick_highest_action_agent, self_minimax_agent, alpha_beta_agent, human_player}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/single_game.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `human_player`, `pick_highest_action_agent`, `self_minimax_agent`, and `strict_random_agent` [INFO] [stdout] --> src/main.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use agents::{strict_random_agent, pick_highest_action_agent, self_minimax_agent, alpha_beta_agent, human_player}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_agent` is never used [INFO] [stdout] --> src/agents/strict_random_agent.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_agent() -> impl Agent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrictRandomAgent` is never constructed [INFO] [stdout] --> src/agents/strict_random_agent.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct StrictRandomAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_agent` is never used [INFO] [stdout] --> src/agents/pick_highest_action_agent.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_agent( heuristic_description : HeuristicDescription, player : u32 ) -> impl Agent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PickHighestActionAgent` is never constructed [INFO] [stdout] --> src/agents/pick_highest_action_agent.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct PickHighestActionAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_agent` is never used [INFO] [stdout] --> src/agents/self_minimax_agent.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn get_agent( heuristic_description : HeuristicDescription, player : u32, depth : u32 ) -> impl Agent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SelfMinimaxAgent` is never constructed [INFO] [stdout] --> src/agents/self_minimax_agent.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct SelfMinimaxAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_agent` is never used [INFO] [stdout] --> src/agents/human_player.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn get_agent() -> impl Agent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HumanAgent` is never constructed [INFO] [stdout] --> src/agents/human_player.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct HumanAgent {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contest` is never used [INFO] [stdout] --> src/two_player_contest.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn contest( game : &G, player_1 : &mut P1, player_2 : &mut P2, game_count : u32 ) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scores` is never read [INFO] [stdout] --> src/games/game_form.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | Winner { player: u32, scores : Vec<(u32, i32)> }, [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scores` is never read [INFO] [stdout] --> src/games/game_form.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | Draw { scores : Vec<(u32, i32)> }, [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Misc` is never constructed [INFO] [stdout] --> src/games/game_form.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum HeuristicDescription { [INFO] [stdout] | -------------------- variant in this enum [INFO] [stdout] 10 | Misc(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `players_allowed` is never used [INFO] [stdout] --> src/games/game_form.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Game { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn players_allowed(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_game` is never used [INFO] [stdout] --> src/games/tic_tac_toe.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn get_game() -> impl Game { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TicTacToeGame` is never constructed [INFO] [stdout] --> src/games/tic_tac_toe.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct TicTacToeGame { } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Empty` is never constructed [INFO] [stdout] --> src/games/tic_tac_toe.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum Square { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Square` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row`, `col`, `square`, and `player_turn` are never read [INFO] [stdout] --> src/games/tic_tac_toe.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct TicTacToeTurn { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 24 | row : usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | col : usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | square : Square, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | player_turn : u32, [INFO] [stdout] | ^^^^^^^^^^^ [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/agents/strict_random_agent.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut turns = game.legal_turns(&state).collect::>(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 17 | turns.shuffle(&mut self.rng); [INFO] [stdout] 18 | turns.into_iter().nth(0).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] warning: function `get_agent` is never used [INFO] [stdout] --> src/agents/strict_random_agent.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn get_agent() -> impl Agent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrictRandomAgent` is never constructed [INFO] [stdout] --> src/agents/strict_random_agent.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct StrictRandomAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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/agents/pick_highest_action_agent.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 18 | .map(|turn| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | let new_state = game.take_turn(&state, &turn); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | let score = game.state_score(&new_state, &heuristic, self.player); [INFO] [stdout] 21 | (score, Some(turn)) [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] warning: function `get_agent` is never used [INFO] [stdout] --> src/agents/pick_highest_action_agent.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_agent( heuristic_description : HeuristicDescription, player : u32 ) -> impl Agent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PickHighestActionAgent` is never constructed [INFO] [stdout] --> src/agents/pick_highest_action_agent.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct PickHighestActionAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_agent` is never used [INFO] [stdout] --> src/agents/self_minimax_agent.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn get_agent( heuristic_description : HeuristicDescription, player : u32, depth : u32 ) -> impl Agent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SelfMinimaxAgent` is never constructed [INFO] [stdout] --> src/agents/self_minimax_agent.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct SelfMinimaxAgent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_agent` is never used [INFO] [stdout] --> src/agents/human_player.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn get_agent() -> impl Agent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HumanAgent` is never constructed [INFO] [stdout] --> src/agents/human_player.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct HumanAgent {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `contest` is never used [INFO] [stdout] --> src/two_player_contest.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn contest( game : &G, player_1 : &mut P1, player_2 : &mut P2, game_count : u32 ) { [INFO] [stdout] | ^^^^^^^ [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/agents/self_minimax_agent.rs:44:41 [INFO] [stdout] | [INFO] [stdout] 41 | .map(|turn| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | let new_state = game.take_turn(&state, &turn); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 43 | let score = minimax(game, &new_state, &heuristic, self.player, self.depth, false); [INFO] [stdout] 44 | (score, Some(turn)) [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] warning: field `scores` is never read [INFO] [stdout] --> src/games/game_form.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | Winner { player: u32, scores : Vec<(u32, i32)> }, [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scores` is never read [INFO] [stdout] --> src/games/game_form.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | Draw { scores : Vec<(u32, i32)> }, [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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/agents/alpha_beta_agent.rs:68:41 [INFO] [stdout] | [INFO] [stdout] 57 | .map(|turn| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 58 | let new_state = game.take_turn(&state, &turn); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 68 | (score, Some(turn)) [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] warning: variant `Misc` is never constructed [INFO] [stdout] --> src/games/game_form.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum HeuristicDescription { [INFO] [stdout] | -------------------- variant in this enum [INFO] [stdout] 10 | Misc(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `players_allowed` is never used [INFO] [stdout] --> src/games/game_form.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait Game { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn players_allowed(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_game` is never used [INFO] [stdout] --> src/games/tic_tac_toe.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn get_game() -> impl Game { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TicTacToeGame` is never constructed [INFO] [stdout] --> src/games/tic_tac_toe.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct TicTacToeGame { } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Empty` is never constructed [INFO] [stdout] --> src/games/tic_tac_toe.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | enum Square { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 14 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Square` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row`, `col`, `square`, and `player_turn` are never read [INFO] [stdout] --> src/games/tic_tac_toe.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct TicTacToeTurn { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 24 | row : usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 25 | col : usize, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | square : Square, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | player_turn : u32, [INFO] [stdout] | ^^^^^^^^^^^ [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/agents/strict_random_agent.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut turns = game.legal_turns(&state).collect::>(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 17 | turns.shuffle(&mut self.rng); [INFO] [stdout] 18 | turns.into_iter().nth(0).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/agents/pick_highest_action_agent.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 18 | .map(|turn| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | let new_state = game.take_turn(&state, &turn); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | let score = game.state_score(&new_state, &heuristic, self.player); [INFO] [stdout] 21 | (score, Some(turn)) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/agents/self_minimax_agent.rs:44:41 [INFO] [stdout] | [INFO] [stdout] 41 | .map(|turn| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 42 | let new_state = game.take_turn(&state, &turn); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 43 | let score = minimax(game, &new_state, &heuristic, self.player, self.depth, false); [INFO] [stdout] 44 | (score, Some(turn)) [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/agents/alpha_beta_agent.rs:68:41 [INFO] [stdout] | [INFO] [stdout] 57 | .map(|turn| { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 58 | let new_state = game.take_turn(&state, &turn); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 68 | (score, Some(turn)) [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 4 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rgame` (bin "rgame" test) due to 5 previous errors; 19 warnings emitted [INFO] [stdout] error: aborting due to 4 previous errors; 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rgame` (bin "rgame") due to 5 previous errors; 19 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b8bdfeade25b5ef8979317665bf13062a8e1e00194b2d23c7a9eb2b2a064f7ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8bdfeade25b5ef8979317665bf13062a8e1e00194b2d23c7a9eb2b2a064f7ce", kill_on_drop: false }` [INFO] [stdout] b8bdfeade25b5ef8979317665bf13062a8e1e00194b2d23c7a9eb2b2a064f7ce