[INFO] cloning repository https://github.com/TyomoGit/simple-calc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TyomoGit/simple-calc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyomoGit%2Fsimple-calc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyomoGit%2Fsimple-calc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ecdd1490098d98853a4e08890ae545f5ae94d8ea [INFO] checking TyomoGit/simple-calc/ecdd1490098d98853a4e08890ae545f5ae94d8ea 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%2FTyomoGit%2Fsimple-calc" "/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/TyomoGit/simple-calc 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/TyomoGit/simple-calc [INFO] finished tweaking git repo https://github.com/TyomoGit/simple-calc [INFO] tweaked toml for git repo https://github.com/TyomoGit/simple-calc written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/TyomoGit/simple-calc 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] 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] 0bdca5cf8c7b6b40449c14824778625a68d4b2763653afcfa28c9aef5345f667 [INFO] running `Command { std: "docker" "start" "-a" "0bdca5cf8c7b6b40449c14824778625a68d4b2763653afcfa28c9aef5345f667", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0bdca5cf8c7b6b40449c14824778625a68d4b2763653afcfa28c9aef5345f667", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bdca5cf8c7b6b40449c14824778625a68d4b2763653afcfa28c9aef5345f667", kill_on_drop: false }` [INFO] [stdout] 0bdca5cf8c7b6b40449c14824778625a68d4b2763653afcfa28c9aef5345f667 [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] 111d3b990e3c737999adb3df3eed6b104d3cea9cb2c005ff5226cca450542872 [INFO] running `Command { std: "docker" "start" "-a" "111d3b990e3c737999adb3df3eed6b104d3cea9cb2c005ff5226cca450542872", kill_on_drop: false }` [INFO] [stderr] Checking simple-calc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{self, Write, Read}, env::args, fs::File}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{self, Write, Read}, env::args, fs::File}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | _ => Primitive::Number(0.0) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 105 | Primitive::Number(n) => Primitive::Number(*n), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 106 | Primitive::Boolean(b) => Primitive::Boolean(*b), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 107 | Primitive::String(s) => Primitive::String(s.clone()), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 108 | _ => Primitive::Number(0.0) [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> src/interpreter.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | stack: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PostfixExpr` is never constructed [INFO] [stdout] --> src/parse.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 52 | PostfixExpr { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: variant `Postfix` is never constructed [INFO] [stdout] --> src/parse.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub enum Precedence { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 94 | Postfix, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Precedence` 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: variants `While`, `Break`, and `Continue` are never constructed [INFO] [stdout] --> src/token.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum Reserved { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 134 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Reserved` 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: method `is_peeking` is never used [INFO] [stdout] --> src/token.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 159 | impl Lexer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn is_peeking(&self, c: &char) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Object` is never used [INFO] [stdout] --> src/types.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Object { [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/parse.rs:179:74 [INFO] [stdout] | [INFO] [stdout] 179 | _ => self.parse_expr(Precedence::Lowest).map(|expr| Box::new(Statement::Expr(expr))), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/parse.rs:199:14 [INFO] [stdout] | [INFO] [stdout] 189 | let mut statements = Vec::new(); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 199 | Some(Box::new(Statement::Block(statements))) [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/parse.rs:224:44 [INFO] [stdout] | [INFO] [stdout] 224 | expression.map(|expr| Box::new(Statement::Print(expr))) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/parse.rs:237:44 [INFO] [stdout] | [INFO] [stdout] 237 | expression.map(|expr| Box::new(Statement::Return(expr))) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/parse.rs:262:14 [INFO] [stdout] | [INFO] [stdout] 248 | let condition = self.parse_expr(Precedence::Lowest); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 252 | let block = self.parse_block()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 253 | [INFO] [stdout] 254 | let mut else_block: Option> = None; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 262 | Some(Box::new(Statement::If { [INFO] [stdout] | ______________^ [INFO] [stdout] 263 | | condition: condition?, [INFO] [stdout] 264 | | block, [INFO] [stdout] 265 | | else_block, [INFO] [stdout] 266 | | })) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |__________| [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/parse.rs:379:14 [INFO] [stdout] | [INFO] [stdout] 371 | pub fn parse_infix_expr(&mut self, left: Box) -> Option> { [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 377 | let right = self.parse_expr(precedence)?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 378 | [INFO] [stdout] 379 | Some(Box::new(Expr::InfixExpr { [INFO] [stdout] | ______________^ [INFO] [stdout] 380 | | left, [INFO] [stdout] 381 | | operator, [INFO] [stdout] 382 | | right, [INFO] [stdout] 383 | | })) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |__________| [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; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | _ => Primitive::Number(0.0) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 105 | Primitive::Number(n) => Primitive::Number(*n), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 106 | Primitive::Boolean(b) => Primitive::Boolean(*b), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 107 | Primitive::String(s) => Primitive::String(s.clone()), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 108 | _ => Primitive::Number(0.0) [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `simple-calc` (bin "simple-calc" test) due to 7 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> src/interpreter.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | stack: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PostfixExpr` is never constructed [INFO] [stdout] --> src/parse.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 52 | PostfixExpr { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: variant `Postfix` is never constructed [INFO] [stdout] --> src/parse.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub enum Precedence { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 94 | Postfix, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Precedence` 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: variants `While`, `Break`, and `Continue` are never constructed [INFO] [stdout] --> src/token.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum Reserved { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 134 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Reserved` 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: method `is_peeking` is never used [INFO] [stdout] --> src/token.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 159 | impl Lexer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn is_peeking(&self, c: &char) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Object` is never used [INFO] [stdout] --> src/types.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Object { [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/parse.rs:179:74 [INFO] [stdout] | [INFO] [stdout] 179 | _ => self.parse_expr(Precedence::Lowest).map(|expr| Box::new(Statement::Expr(expr))), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/parse.rs:199:14 [INFO] [stdout] | [INFO] [stdout] 189 | let mut statements = Vec::new(); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 199 | Some(Box::new(Statement::Block(statements))) [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/parse.rs:224:44 [INFO] [stdout] | [INFO] [stdout] 224 | expression.map(|expr| Box::new(Statement::Print(expr))) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/parse.rs:237:44 [INFO] [stdout] | [INFO] [stdout] 237 | expression.map(|expr| Box::new(Statement::Return(expr))) [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/parse.rs:262:14 [INFO] [stdout] | [INFO] [stdout] 248 | let condition = self.parse_expr(Precedence::Lowest); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 252 | let block = self.parse_block()?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 253 | [INFO] [stdout] 254 | let mut else_block: Option> = None; [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 262 | Some(Box::new(Statement::If { [INFO] [stdout] | ______________^ [INFO] [stdout] 263 | | condition: condition?, [INFO] [stdout] 264 | | block, [INFO] [stdout] 265 | | else_block, [INFO] [stdout] 266 | | })) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |__________| [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/parse.rs:379:14 [INFO] [stdout] | [INFO] [stdout] 371 | pub fn parse_infix_expr(&mut self, left: Box) -> Option> { [INFO] [stdout] | --------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 377 | let right = self.parse_expr(precedence)?; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 378 | [INFO] [stdout] 379 | Some(Box::new(Expr::InfixExpr { [INFO] [stdout] | ______________^ [INFO] [stdout] 380 | | left, [INFO] [stdout] 381 | | operator, [INFO] [stdout] 382 | | right, [INFO] [stdout] 383 | | })) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |__________| [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; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `simple-calc` (bin "simple-calc") due to 7 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "111d3b990e3c737999adb3df3eed6b104d3cea9cb2c005ff5226cca450542872", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "111d3b990e3c737999adb3df3eed6b104d3cea9cb2c005ff5226cca450542872", kill_on_drop: false }` [INFO] [stdout] 111d3b990e3c737999adb3df3eed6b104d3cea9cb2c005ff5226cca450542872