[INFO] cloning repository https://github.com/adamek727/rust_snake_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/adamek727/rust_snake_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadamek727%2Frust_snake_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadamek727%2Frust_snake_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 05b62af9b19e80ef17004f84c070f46e25ac4525 [INFO] checking adamek727/rust_snake_game/05b62af9b19e80ef17004f84c070f46e25ac4525 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%2Fadamek727%2Frust_snake_game" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/adamek727/rust_snake_game 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/adamek727/rust_snake_game [INFO] finished tweaking git repo https://github.com/adamek727/rust_snake_game [INFO] tweaked toml for git repo https://github.com/adamek727/rust_snake_game written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/adamek727/rust_snake_game 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] ef84309c25a99cd1ad0ba2028d8b49b5b66abedc18f878215d3de67fdcfd647e [INFO] running `Command { std: "docker" "start" "-a" "ef84309c25a99cd1ad0ba2028d8b49b5b66abedc18f878215d3de67fdcfd647e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef84309c25a99cd1ad0ba2028d8b49b5b66abedc18f878215d3de67fdcfd647e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef84309c25a99cd1ad0ba2028d8b49b5b66abedc18f878215d3de67fdcfd647e", kill_on_drop: false }` [INFO] [stdout] ef84309c25a99cd1ad0ba2028d8b49b5b66abedc18f878215d3de67fdcfd647e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] eb8b2a345e4d7ac2a142cef205f8849c5481571b107ccd143d1137fc7feba856 [INFO] running `Command { std: "docker" "start" "-a" "eb8b2a345e4d7ac2a142cef205f8849c5481571b107ccd143d1137fc7feba856", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking termion v1.5.6 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking timer v0.2.0 [INFO] [stderr] Checking rust_snake_game v0.1.0 (/opt/rustwide/workdir) [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/snake_engine.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(key_event_rx: mpsc::Receiver) -> SnakeEngine { [INFO] [stdout] | -------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | let mut init_food: HashSet = HashSet::new(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 61 | snake: Arc::new(Mutex::new(Snake::new())), [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/snake_engine.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(key_event_rx: mpsc::Receiver) -> SnakeEngine { [INFO] [stdout] | -------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | let mut init_food: HashSet = HashSet::new(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 64 | snake_dir: Arc::new(Mutex::new(SnakeDirection::NotMoving)), [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/snake_engine.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(key_event_rx: mpsc::Receiver) -> SnakeEngine { [INFO] [stdout] | -------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | let mut init_food: HashSet = HashSet::new(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 65 | food: Arc::new(Mutex::new(init_food)), [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/snake_engine.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(key_event_rx: mpsc::Receiver) -> SnakeEngine { [INFO] [stdout] | -------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | let mut init_food: HashSet = HashSet::new(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 66 | score: Arc::new(Mutex::new(0)), [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/snake_engine.rs:140:71 [INFO] [stdout] | [INFO] [stdout] 132 | fn create_simulation_routine(&self, timer: &Timer, sim_event_tx: mpsc::Sender) -> Guard { [INFO] [stdout] | ------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 133 | [INFO] [stdout] 134 | let snake_dir = self.snake_dir.clone(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 135 | let snake_guard = self.snake.clone(); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 136 | let map_size_sim = self.map_size.clone(); [INFO] [stdout] 137 | let food = self.food.clone(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 138 | let score = self.score.clone(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 139 | [INFO] [stdout] 140 | timer.schedule_repeating(chrono::Duration::milliseconds(500), move || { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 141 | | [INFO] [stdout] 142 | | let mut snake = snake_guard.lock().unwrap(); [INFO] [stdout] 143 | | let mut did_eat_food = false; [INFO] [stdout] ... | [INFO] [stdout] 210 | | } [INFO] [stdout] 211 | | }) [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/snake_engine.rs:222:70 [INFO] [stdout] | [INFO] [stdout] 217 | let snake_guard = self.snake.clone(); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 218 | let score = self.score.clone(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 219 | let food = self.food.clone(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 220 | let mut stdout = stdout().into_raw_mode().unwrap(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 221 | [INFO] [stdout] 222 | timer.schedule_repeating(chrono::Duration::milliseconds(33), move || { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 223 | | [INFO] [stdout] 224 | | let snake = snake_guard.lock().unwrap(); [INFO] [stdout] 225 | | write!(stdout, "{}", termion::clear::All).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 246 | | stdout.flush().unwrap(); [INFO] [stdout] 247 | | }) [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 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_snake_game` (lib) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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/snake_engine.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(key_event_rx: mpsc::Receiver) -> SnakeEngine { [INFO] [stdout] | -------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | let mut init_food: HashSet = HashSet::new(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 61 | snake: Arc::new(Mutex::new(Snake::new())), [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/snake_engine.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(key_event_rx: mpsc::Receiver) -> SnakeEngine { [INFO] [stdout] | -------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | let mut init_food: HashSet = HashSet::new(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 64 | snake_dir: Arc::new(Mutex::new(SnakeDirection::NotMoving)), [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/snake_engine.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(key_event_rx: mpsc::Receiver) -> SnakeEngine { [INFO] [stdout] | -------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | let mut init_food: HashSet = HashSet::new(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 65 | food: Arc::new(Mutex::new(init_food)), [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/snake_engine.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn new(key_event_rx: mpsc::Receiver) -> SnakeEngine { [INFO] [stdout] | -------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | let mut init_food: HashSet = HashSet::new(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 66 | score: Arc::new(Mutex::new(0)), [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/snake_engine.rs:140:71 [INFO] [stdout] | [INFO] [stdout] 132 | fn create_simulation_routine(&self, timer: &Timer, sim_event_tx: mpsc::Sender) -> Guard { [INFO] [stdout] | ------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 133 | [INFO] [stdout] 134 | let snake_dir = self.snake_dir.clone(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 135 | let snake_guard = self.snake.clone(); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 136 | let map_size_sim = self.map_size.clone(); [INFO] [stdout] 137 | let food = self.food.clone(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 138 | let score = self.score.clone(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 139 | [INFO] [stdout] 140 | timer.schedule_repeating(chrono::Duration::milliseconds(500), move || { [INFO] [stdout] | _______________________________________________________________________^ [INFO] [stdout] 141 | | [INFO] [stdout] 142 | | let mut snake = snake_guard.lock().unwrap(); [INFO] [stdout] 143 | | let mut did_eat_food = false; [INFO] [stdout] ... | [INFO] [stdout] 210 | | } [INFO] [stdout] 211 | | }) [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/snake_engine.rs:222:70 [INFO] [stdout] | [INFO] [stdout] 217 | let snake_guard = self.snake.clone(); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 218 | let score = self.score.clone(); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 219 | let food = self.food.clone(); [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 220 | let mut stdout = stdout().into_raw_mode().unwrap(); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 221 | [INFO] [stdout] 222 | timer.schedule_repeating(chrono::Duration::milliseconds(33), move || { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 223 | | [INFO] [stdout] 224 | | let snake = snake_guard.lock().unwrap(); [INFO] [stdout] 225 | | write!(stdout, "{}", termion::clear::All).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 246 | | stdout.flush().unwrap(); [INFO] [stdout] 247 | | }) [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 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_snake_game` (lib test) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "eb8b2a345e4d7ac2a142cef205f8849c5481571b107ccd143d1137fc7feba856", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb8b2a345e4d7ac2a142cef205f8849c5481571b107ccd143d1137fc7feba856", kill_on_drop: false }` [INFO] [stdout] eb8b2a345e4d7ac2a142cef205f8849c5481571b107ccd143d1137fc7feba856