[INFO] cloning repository https://github.com/JoshuaK-PoI/lithanium [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JoshuaK-PoI/lithanium" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaK-PoI%2Flithanium", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaK-PoI%2Flithanium'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2b96364a671d0f4707d26df05de4f796cc58b2ba [INFO] checking JoshuaK-PoI/lithanium/2b96364a671d0f4707d26df05de4f796cc58b2ba 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%2FJoshuaK-PoI%2Flithanium" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JoshuaK-PoI/lithanium 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/JoshuaK-PoI/lithanium [INFO] finished tweaking git repo https://github.com/JoshuaK-PoI/lithanium [INFO] tweaked toml for git repo https://github.com/JoshuaK-PoI/lithanium written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/JoshuaK-PoI/lithanium 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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 976a6063e550678ef658aca879fe20cca84de6f0b3e3f32ac3f4c9ef2bc069c0 [INFO] running `Command { std: "docker" "start" "-a" "976a6063e550678ef658aca879fe20cca84de6f0b3e3f32ac3f4c9ef2bc069c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "976a6063e550678ef658aca879fe20cca84de6f0b3e3f32ac3f4c9ef2bc069c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "976a6063e550678ef658aca879fe20cca84de6f0b3e3f32ac3f4c9ef2bc069c0", kill_on_drop: false }` [INFO] [stdout] 976a6063e550678ef658aca879fe20cca84de6f0b3e3f32ac3f4c9ef2bc069c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 4da8811809b1cb10681099dddd1a920161b2cf2db280c1788b6004172ed62791 [INFO] running `Command { std: "docker" "start" "-a" "4da8811809b1cb10681099dddd1a920161b2cf2db280c1788b6004172ed62791", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling rustix v0.38.28 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking linux-raw-sys v0.4.12 [INFO] [stderr] Checking anstream v0.6.5 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking clap_builder v4.4.14 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking ariadne v0.4.0 [INFO] [stderr] Checking is-terminal v0.4.10 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking env_logger v0.10.1 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking clap v4.4.14 [INFO] [stderr] Checking lithanium v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lang/compiler/expression.rs:152:37 [INFO] [stdout] | [INFO] [stdout] 152 | if tokens.next_matches_any(&[todo!()]) { [INFO] [stdout] | ^-------^ [INFO] [stdout] | || [INFO] [stdout] | |any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lang/compiler/expression.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | if tokens.next_matches_any(&[todo!()]) { [INFO] [stdout] | ^-------^ [INFO] [stdout] | || [INFO] [stdout] | |any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lang/compiler/expression.rs:152:37 [INFO] [stdout] | [INFO] [stdout] 152 | if tokens.next_matches_any(&[todo!()]) { [INFO] [stdout] | ^-------^ [INFO] [stdout] | || [INFO] [stdout] | |any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/lang/compiler/expression.rs:196:37 [INFO] [stdout] | [INFO] [stdout] 196 | if tokens.next_matches_any(&[todo!()]) { [INFO] [stdout] | ^-------^ [INFO] [stdout] | || [INFO] [stdout] | |any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lang/compiler/expression.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut expr = Expression::or(tokens)?; [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/lang/compiler/expression.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut expr = Expression::and(tokens)?; [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/lang/compiler/expression.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut expr = Expression::equality(tokens)?; [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/lang/compiler/expression.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut expr = Expression::comparison(tokens)?; [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/lang/compiler/expression.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut expr = Expression::term(tokens)?; [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/lang/compiler/expression.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut expr = Expression::factor(tokens)?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `initializer` is assigned to, but never used [INFO] [stdout] --> src/lang/compiler/statement.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 246 | let mut initializer = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_initializer` instead [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/lang/compiler/expression.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut expr = Expression::or(tokens)?; [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/lang/compiler/expression.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let mut expr = Expression::and(tokens)?; [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/lang/compiler/expression.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | let mut expr = Expression::equality(tokens)?; [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/lang/compiler/expression.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let mut expr = Expression::comparison(tokens)?; [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/lang/compiler/expression.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let mut expr = Expression::term(tokens)?; [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/lang/compiler/expression.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut expr = Expression::factor(tokens)?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `condition` is assigned to, but never used [INFO] [stdout] --> src/lang/compiler/statement.rs:247:17 [INFO] [stdout] | [INFO] [stdout] 247 | let mut condition = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_condition` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `increment` is assigned to, but never used [INFO] [stdout] --> src/lang/compiler/statement.rs:248:17 [INFO] [stdout] | [INFO] [stdout] 248 | let mut increment = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_increment` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initializer` is never read [INFO] [stdout] --> src/lang/compiler/statement.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | initializer = Some(Expression::parse(tokens)?); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `condition` is never read [INFO] [stdout] --> src/lang/compiler/statement.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | condition = Some(Expression::parse(tokens)?); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment` is never read [INFO] [stdout] --> src/lang/compiler/statement.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | increment = Some(Expression::parse(tokens)?); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/lang/compiler/statement.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | let condition = Expression::parse(tokens)?; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `initializer` is assigned to, but never used [INFO] [stdout] --> src/lang/compiler/statement.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 246 | let mut initializer = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_initializer` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `condition` is assigned to, but never used [INFO] [stdout] --> src/lang/compiler/statement.rs:247:17 [INFO] [stdout] | [INFO] [stdout] 247 | let mut condition = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_condition` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `increment` is assigned to, but never used [INFO] [stdout] --> src/lang/compiler/statement.rs:248:17 [INFO] [stdout] | [INFO] [stdout] 248 | let mut increment = None; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_increment` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `initializer` is never read [INFO] [stdout] --> src/lang/compiler/statement.rs:256:13 [INFO] [stdout] | [INFO] [stdout] 256 | initializer = Some(Expression::parse(tokens)?); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `condition` is never read [INFO] [stdout] --> src/lang/compiler/statement.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | condition = Some(Expression::parse(tokens)?); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `increment` is never read [INFO] [stdout] --> src/lang/compiler/statement.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | increment = Some(Expression::parse(tokens)?); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/lang/compiler/mod.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) struct Compiler<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 51 | pub(crate) input: &'a str, [INFO] [stdout] 52 | pub(crate) filename: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Compiler` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `unary` and `primary` are never used [INFO] [stdout] --> src/lang/compiler/expression.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl Expression { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | fn unary(tokens: &mut TokenStream) -> CompilerResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn primary(tokens: &mut TokenStream) -> CompilerResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unshift_if` is never used [INFO] [stdout] --> src/lang/util/vec.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) trait UnshiftExpect { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 38 | fn unshift_if(&mut self, expected: K) -> Option<&mut T>; [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/lang/compiler/statement.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 110 | let mut value: Option = None; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 120 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 121 | | StatementType::Let(LetStatement { name, value }), [INFO] [stdout] 122 | | start.span.start..end.span.end, [INFO] [stdout] 123 | | )) [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/lang/compiler/statement.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 202 | let body = Statement::block(tokens)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 203 | [INFO] [stdout] 204 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 205 | | StatementType::Function(FunctionStatement { [INFO] [stdout] 206 | | name, [INFO] [stdout] 207 | | parameters, [INFO] [stdout] ... | [INFO] [stdout] 214 | | start.span.start..body.1.end, [INFO] [stdout] 215 | | )) [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/lang/compiler/statement.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 246 | let mut initializer = None; [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 247 | let mut condition = None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 248 | let mut increment = None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 271 | let body = Statement::block(tokens)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 272 | [INFO] [stdout] 273 | Ok((StatementType::Unknown, start.span.start..body.1.end)) [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/lang/compiler/statement.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 277 | let condition = Expression::parse(tokens)?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 278 | let body = Statement::block(tokens)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 279 | [INFO] [stdout] 280 | let mut else_body = None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 287 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 288 | | StatementType::Unknown, [INFO] [stdout] 289 | | condition.span.start..else_body.unwrap_or(body).1.end, [INFO] [stdout] 290 | | )) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/lang/compiler/statement.rs:302:12 [INFO] [stdout] | [INFO] [stdout] 295 | let mut value = None; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 302 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 303 | | StatementType::Return(ReturnStatement { value }), [INFO] [stdout] 304 | | start.span.start..end.span.end, [INFO] [stdout] 305 | | )) [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/lang/compiler/statement.rs:325:12 [INFO] [stdout] | [INFO] [stdout] 322 | let condition = Expression::parse(tokens)?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 323 | let body = Statement::block(tokens)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 324 | [INFO] [stdout] 325 | Ok((StatementType::Unknown, start.span.start..body.1.end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/lang/compiler/statement.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 331 | 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] 339 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 340 | | StatementType::Block(BlockStatement { statements }), [INFO] [stdout] 341 | | start..end.span.end, [INFO] [stdout] 342 | | )) [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/lang/compiler/statement.rs:349:12 [INFO] [stdout] | [INFO] [stdout] 346 | let expr = Expression::parse(tokens)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 349 | Ok((StatementType::Unknown, expr.span.start..end.span.end)) [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] warning: unused variable: `condition` [INFO] [stdout] --> src/lang/compiler/statement.rs:322:13 [INFO] [stdout] | [INFO] [stdout] 322 | let condition = Expression::parse(tokens)?; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [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/lang/compiler/statement.rs:367:12 [INFO] [stdout] | [INFO] [stdout] 356 | let mut arguments = Vec::new(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 367 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 368 | | StatementType::Intrinsic(IntrinsicStatement { name, arguments }), [INFO] [stdout] 369 | | start.span.start..end.span.end, [INFO] [stdout] 370 | | )) [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 9 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lithanium` (bin "lithanium") due to 10 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/lang/compiler/mod.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 50 | pub(crate) struct Compiler<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 51 | pub(crate) input: &'a str, [INFO] [stdout] 52 | pub(crate) filename: &'a str, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Compiler` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `unary` and `primary` are never used [INFO] [stdout] --> src/lang/compiler/expression.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl Expression { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | fn unary(tokens: &mut TokenStream) -> CompilerResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn primary(tokens: &mut TokenStream) -> CompilerResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `unshift_if` is never used [INFO] [stdout] --> src/lang/util/vec.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub(crate) trait UnshiftExpect { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 38 | fn unshift_if(&mut self, expected: K) -> Option<&mut T>; [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/lang/compiler/statement.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 110 | let mut value: Option = None; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 120 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 121 | | StatementType::Let(LetStatement { name, value }), [INFO] [stdout] 122 | | start.span.start..end.span.end, [INFO] [stdout] 123 | | )) [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/lang/compiler/statement.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 202 | let body = Statement::block(tokens)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 203 | [INFO] [stdout] 204 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 205 | | StatementType::Function(FunctionStatement { [INFO] [stdout] 206 | | name, [INFO] [stdout] 207 | | parameters, [INFO] [stdout] ... | [INFO] [stdout] 214 | | start.span.start..body.1.end, [INFO] [stdout] 215 | | )) [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/lang/compiler/statement.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 246 | let mut initializer = None; [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 247 | let mut condition = None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 248 | let mut increment = None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 271 | let body = Statement::block(tokens)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 272 | [INFO] [stdout] 273 | Ok((StatementType::Unknown, start.span.start..body.1.end)) [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/lang/compiler/statement.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 277 | let condition = Expression::parse(tokens)?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 278 | let body = Statement::block(tokens)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 279 | [INFO] [stdout] 280 | let mut else_body = None; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 287 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 288 | | StatementType::Unknown, [INFO] [stdout] 289 | | condition.span.start..else_body.unwrap_or(body).1.end, [INFO] [stdout] 290 | | )) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/lang/compiler/statement.rs:302:12 [INFO] [stdout] | [INFO] [stdout] 295 | let mut value = None; [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 302 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 303 | | StatementType::Return(ReturnStatement { value }), [INFO] [stdout] 304 | | start.span.start..end.span.end, [INFO] [stdout] 305 | | )) [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/lang/compiler/statement.rs:325:12 [INFO] [stdout] | [INFO] [stdout] 322 | let condition = Expression::parse(tokens)?; [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 323 | let body = Statement::block(tokens)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 324 | [INFO] [stdout] 325 | Ok((StatementType::Unknown, start.span.start..body.1.end)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [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/lang/compiler/statement.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 331 | 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] 339 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 340 | | StatementType::Block(BlockStatement { statements }), [INFO] [stdout] 341 | | start..end.span.end, [INFO] [stdout] 342 | | )) [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/lang/compiler/statement.rs:349:12 [INFO] [stdout] | [INFO] [stdout] 346 | let expr = Expression::parse(tokens)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 349 | Ok((StatementType::Unknown, expr.span.start..end.span.end)) [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/lang/compiler/statement.rs:367:12 [INFO] [stdout] | [INFO] [stdout] 356 | let mut arguments = Vec::new(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 367 | Ok(( [INFO] [stdout] | ____________^ [INFO] [stdout] 368 | | StatementType::Intrinsic(IntrinsicStatement { name, arguments }), [INFO] [stdout] 369 | | start.span.start..end.span.end, [INFO] [stdout] 370 | | )) [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/main.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | INIT.call_once(|| env_logger::builder() [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 10 previous errors; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lithanium` (bin "lithanium" test) due to 11 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4da8811809b1cb10681099dddd1a920161b2cf2db280c1788b6004172ed62791", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4da8811809b1cb10681099dddd1a920161b2cf2db280c1788b6004172ed62791", kill_on_drop: false }` [INFO] [stdout] 4da8811809b1cb10681099dddd1a920161b2cf2db280c1788b6004172ed62791