[INFO] fetching crate key-lang 0.1.1... [INFO] checking key-lang-0.1.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate key-lang 0.1.1 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate key-lang 0.1.1 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate key-lang 0.1.1 [INFO] finished tweaking crates.io crate key-lang 0.1.1 [INFO] tweaked toml for crates.io crate key-lang 0.1.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate key-lang 0.1.1 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24ed3272e813d94361f55d9e83f3e090eedd35475fb735792d95a5732cc5a8a8 [INFO] running `Command { std: "docker" "start" "-a" "24ed3272e813d94361f55d9e83f3e090eedd35475fb735792d95a5732cc5a8a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24ed3272e813d94361f55d9e83f3e090eedd35475fb735792d95a5732cc5a8a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24ed3272e813d94361f55d9e83f3e090eedd35475fb735792d95a5732cc5a8a8", kill_on_drop: false }` [INFO] [stdout] 24ed3272e813d94361f55d9e83f3e090eedd35475fb735792d95a5732cc5a8a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27c6b8af119abd246ac91276bb24e54ad2aeb1c89d7ea158f2a75ff52324151d [INFO] running `Command { std: "docker" "start" "-a" "27c6b8af119abd246ac91276bb24e54ad2aeb1c89d7ea158f2a75ff52324151d", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking key-lang v0.1.1 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `key_lang` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] * src/primitive/kstd.rs [INFO] [stderr] * src/primitive/kstr.rs [INFO] [stderr] * src/primitive/mod.rs [INFO] [stderr] * src/runtime/evil.rs [INFO] [stderr] * src/scan/stmt.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/runtime/evil.rs:225:32 [INFO] [stderr] | [INFO] [stderr] 225 | macro_rules! loop_run_stmt {($stmt:expr_2021)=>{{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/primitive/kstr.rs:36:23 [INFO] [stderr] | [INFO] [stderr] 36 | macro_rules! void {($v:expr_2021)=>{{ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/scan/stmt.rs:512:42 [INFO] [stderr] | [INFO] [stderr] 512 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 512 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/primitive/kstd.rs:52:36 [INFO] [stderr] | [INFO] [stderr] 52 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 52 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/primitive/mod.rs:76:22 [INFO] [stderr] | [INFO] [stderr] 76 | if let Some(cls) = &mut CLASSES { [INFO] [stderr] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 76 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/main.rs:73:24 [INFO] [stderr] | [INFO] [stderr] 73 | let opts = unsafe {&mut GLOBAL_OPTIONS}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 73 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/runtime/evil.rs:225:38 [INFO] [stdout] | [INFO] [stdout] 225 | macro_rules! loop_run_stmt {($stmt:expr)=>{{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 225 | macro_rules! loop_run_stmt {($stmt:expr_2021)=>{{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/primitive/kstr.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | macro_rules! void {($v:expr)=>{{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 36 | macro_rules! void {($v:expr_2021)=>{{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/c.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 6 | | fn LoadLibraryA(src:*const u8)-> *const (); [INFO] [stdout] 7 | | fn GetProcAddress(lib:*const (), src:*const u8)-> *const (); [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scan/stmt.rs:512:42 [INFO] [stdout] | [INFO] [stdout] 512 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 512 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/primitive/kstd.rs:52:36 [INFO] [stdout] | [INFO] [stdout] 52 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/primitive/mod.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | if let Some(cls) = &mut CLASSES { [INFO] [stdout] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 76 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | let opts = unsafe {&mut GLOBAL_OPTIONS}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 73 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 200 | if let Expr::Empty = e { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | }else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 200 ~ match e { Expr::Empty => { [INFO] [stdout] 201 | panic!("'='后未填写默认参数") [INFO] [stdout] 202 ~ } _ => { [INFO] [stdout] 203 | e [INFO] [stdout] 204 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | if let Expr::Variant(id) = ident { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 210 | }else if let Expr::Empty = ident { [INFO] [stdout] | ----- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | }else if let Expr::Empty = ident { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 182 ~ match ident { Expr::Variant(id) => { [INFO] [stdout] 183 | match &*id.vec() { [INFO] [stdout] ... [INFO] [stdout] 209 | } [INFO] [stdout] 210 ~ } _ => { match ident { Expr::Empty => { [INFO] [stdout] 211 | let expr = self.expr(); [INFO] [stdout] ... [INFO] [stdout] 216 | } [INFO] [stdout] 217 ~ } _ => { [INFO] [stdout] 218 | let expr = self.expr_with_left(ident, vec![]); [INFO] [stdout] ... [INFO] [stdout] 223 | } [INFO] [stdout] 224 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:188:16 [INFO] [stdout] | [INFO] [stdout] 188 | if let Expr::Variant(n) = self.expr_group() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | }else {panic!("const()锁定语句只允许传入变量名")} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 188 ~ match self.expr_group() { Expr::Variant(n) => { [INFO] [stdout] 189 | Stmt::Lock(n) [INFO] [stdout] 190 ~ } _ => {panic!("const()锁定语句只允许传入变量名")}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | if let Expr::Empty = expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:214:7 [INFO] [stdout] | [INFO] [stdout] 214 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 212 ~ match expr { Expr::Empty => { [INFO] [stdout] 213 | Stmt::Empty [INFO] [stdout] 214 ~ } _ => { [INFO] [stdout] 215 | Stmt::Expression(expr) [INFO] [stdout] 216 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:219:10 [INFO] [stdout] | [INFO] [stdout] 219 | if let Expr::Empty = expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:221:7 [INFO] [stdout] | [INFO] [stdout] 221 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 219 ~ match expr { Expr::Empty => { [INFO] [stdout] 220 | Stmt::Empty [INFO] [stdout] 221 ~ } _ => { [INFO] [stdout] 222 | Stmt::Expression(expr) [INFO] [stdout] 223 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:254:28 [INFO] [stdout] | [INFO] [stdout] 254 | let mut stmts = if let Stmt::Block(b) = stmt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 254 ~ let mut stmts = match stmt { Stmt::Block(b) => { [INFO] [stdout] 255 | b [INFO] [stdout] 256 ~ } _ => { [INFO] [stdout] 257 | Statements { [INFO] [stdout] ... [INFO] [stdout] 260 | } [INFO] [stdout] 261 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:361:8 [INFO] [stdout] | [INFO] [stdout] 361 | if let Expr::Empty = expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:363:5 [INFO] [stdout] | [INFO] [stdout] 363 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 361 ~ match expr { Expr::Empty => { [INFO] [stdout] 362 | Stmt::Return(Expr::Literal(Litr::Uninit)) [INFO] [stdout] 363 ~ } _ => { [INFO] [stdout] 364 | Stmt::Return(expr) [INFO] [stdout] 365 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:410:28 [INFO] [stdout] | [INFO] [stdout] 410 | let mut stmts = if let Stmt::Block(b) = stmt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:412:9 [INFO] [stdout] | [INFO] [stdout] 412 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 410 ~ let mut stmts = match stmt { Stmt::Block(b) => { [INFO] [stdout] 411 | b [INFO] [stdout] 412 ~ } _ => { [INFO] [stdout] 413 | Statements { [INFO] [stdout] ... [INFO] [stdout] 416 | } [INFO] [stdout] 417 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 92 | if let Some(last_e) = &mut expr_catch { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 92 ~ match &mut expr_catch { Some(last_e) => { [INFO] [stdout] 93 | let mut left = Box::new(Expr::Empty); [INFO] [stdout] ... [INFO] [stdout] 106 | }); [INFO] [stdout] 107 ~ } _ => { [INFO] [stdout] 108 | expr_catch = Some(Expr::Binary { [INFO] [stdout] ... [INFO] [stdout] 112 | }); [INFO] [stdout] 113 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | if let Some(e) = &mut expr_catch { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 128 ~ match &mut expr_catch { Some(e) => { [INFO] [stdout] 129 | let mut left = Box::new(Expr::Empty); [INFO] [stdout] ... [INFO] [stdout] 134 | } [INFO] [stdout] 135 ~ } _ => { [INFO] [stdout] 136 | let str = String::from_utf8(vec).expect("字符串含非法字符"); [INFO] [stdout] 137 | Expr::Literal(Litr::Str(str)) [INFO] [stdout] 138 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:314:28 [INFO] [stdout] | [INFO] [stdout] 314 | let mut stmts = if let super::Stmt::Block(b) = stmt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 314 ~ let mut stmts = match stmt { super::Stmt::Block(b) => { [INFO] [stdout] 315 | b [INFO] [stdout] 316 ~ } _ => { [INFO] [stdout] 317 | Statements { [INFO] [stdout] ... [INFO] [stdout] 320 | } [INFO] [stdout] 321 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/expr.rs:369:18 [INFO] [stdout] | [INFO] [stdout] 369 | args.push(if let Expr::Empty = e { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/expr.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | }else {e}); [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 369 ~ args.push(match e { Expr::Empty => { [INFO] [stdout] 370 | Expr::Literal(Litr::Uninit) [INFO] [stdout] 371 ~ } _ => {e}}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:192:6 [INFO] [stdout] | [INFO] [stdout] 192 | if let Stmt::Block(exec) = &**exec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:208:3 [INFO] [stdout] | [INFO] [stdout] 208 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 192 ~ match &**exec { Stmt::Block(exec) => { [INFO] [stdout] 193 | let mut scope = this.subscope(); [INFO] [stdout] ... [INFO] [stdout] 207 | // 单语句将由当前作用域代为执行,不再创建新作用域 [INFO] [stdout] 208 ~ } _ => { [INFO] [stdout] 209 | match &**exec { [INFO] [stdout] ... [INFO] [stdout] 218 | } [INFO] [stdout] 219 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/calc.rs:461:14 [INFO] [stdout] | [INFO] [stdout] 461 | if let Litr::Str(s) = &*i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/runtime/calc.rs:463:11 [INFO] [stdout] | [INFO] [stdout] 463 | }else {panic!("Obj索引必须是Str")} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 461 ~ match &*i { Litr::Str(s) => { [INFO] [stdout] 462 | map.insert(intern(s.as_bytes()), right); [INFO] [stdout] 463 ~ } _ => {panic!("Obj索引必须是Str")}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/calc.rs:571:14 [INFO] [stdout] | [INFO] [stdout] 571 | if let Litr::Str(s) = &*i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/runtime/calc.rs:576:11 [INFO] [stdout] | [INFO] [stdout] 576 | }else {panic!("Obj索引必须是Str")} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 571 ~ match &*i { Litr::Str(s) => { [INFO] [stdout] 572 | let s = intern(s.as_bytes()); [INFO] [stdout] ... [INFO] [stdout] 575 | map.insert(s, write); [INFO] [stdout] 576 ~ } _ => {panic!("Obj索引必须是Str")}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/externer.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(v) = args.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 109 | / impl_arg!{ [INFO] [stdout] 110 | | 0 [INFO] [stdout] 111 | | 1 a [INFO] [stdout] 112 | | 2 a b [INFO] [stdout] ... | [INFO] [stdout] 125 | | 15 a b c d e f g h i j k l m n o [INFO] [stdout] 126 | | } [INFO] [stdout] | |___- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/runtime/externer.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | } [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 109 | / impl_arg!{ [INFO] [stdout] 110 | | 0 [INFO] [stdout] 111 | | 1 a [INFO] [stdout] 112 | | 2 a b [INFO] [stdout] ... | [INFO] [stdout] 125 | | 15 a b c d e f g h i j k l m n o [INFO] [stdout] 126 | | } [INFO] [stdout] | |___- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_arg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/litr.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | if let Litr::Inst(v) = res { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/litr.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 172 ~ match res { Litr::Inst(v) => { [INFO] [stdout] 173 | v [INFO] [stdout] 174 ~ } _ => { [INFO] [stdout] 175 | panic!("'{}'的@clone方法必须返回实例", cls_f.name); [INFO] [stdout] 176 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:110:6 [INFO] [stdout] | [INFO] [stdout] 110 | if let Some(f) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:121:3 [INFO] [stdout] | [INFO] [stdout] 121 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 110 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 111 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 120 | }); [INFO] [stdout] 121 ~ } _ => { [INFO] [stdout] 122 | v.dedup(); [INFO] [stdout] 123 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:130:6 [INFO] [stdout] | [INFO] [stdout] 130 | if let Some(f) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:145:3 [INFO] [stdout] | [INFO] [stdout] 145 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 130 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 131 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 144 | }); [INFO] [stdout] 145 ~ } _ => { [INFO] [stdout] 146 | v.sort_unstable(); [INFO] [stdout] 147 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:196:6 [INFO] [stdout] | [INFO] [stdout] 196 | if let Some(arg0) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:207:3 [INFO] [stdout] | [INFO] [stdout] 207 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 196 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 197 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 206 | Litr::Buf(v.split_off(v.len() - at)) [INFO] [stdout] 207 ~ } _ => { [INFO] [stdout] 208 | match v.pop() { [INFO] [stdout] ... [INFO] [stdout] 211 | } [INFO] [stdout] 212 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:217:6 [INFO] [stdout] | [INFO] [stdout] 217 | if let Some(arg0) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:230:3 [INFO] [stdout] | [INFO] [stdout] 230 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 217 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 218 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 229 | Litr::Buf(part) [INFO] [stdout] 230 ~ } _ => { [INFO] [stdout] 231 | if v.len()==0 {return Litr::Uninit;} [INFO] [stdout] 232 | Litr::Uint(v.remove(0) as usize) [INFO] [stdout] 233 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:477:8 [INFO] [stdout] | [INFO] [stdout] 477 | if let Litr::Bool(arg1) = &**arg1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:482:5 [INFO] [stdout] | [INFO] [stdout] 482 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 477 ~ match &**arg1 { Litr::Bool(arg1) => { [INFO] [stdout] 478 | if *arg1 { [INFO] [stdout] ... [INFO] [stdout] 481 | } [INFO] [stdout] 482 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:530:16 [INFO] [stdout] | [INFO] [stdout] 530 | let sep = if let Some(s) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:534:3 [INFO] [stdout] | [INFO] [stdout] 534 | }else {""}; [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 530 ~ let sep = match args.get(0) { Some(s) => { [INFO] [stdout] 531 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] 532 | panic!("buf.join第一个参数只能是字符") [INFO] [stdout] 533 | } [INFO] [stdout] 534 ~ } _ => {""}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:531:8 [INFO] [stdout] | [INFO] [stdout] 531 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:531:34 [INFO] [stdout] | [INFO] [stdout] 531 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 531 ~ match &**s { Litr::Str(s) => {s} _ => { [INFO] [stdout] 532 | panic!("buf.join第一个参数只能是字符") [INFO] [stdout] 533 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:765:6 [INFO] [stdout] | [INFO] [stdout] 765 | if let Some(n) = args.get(2) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:767:3 [INFO] [stdout] | [INFO] [stdout] 767 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 765 ~ match args.get(2) { Some(n) => { [INFO] [stdout] 766 | s.replacen(from, to, to_usize(n)) [INFO] [stdout] 767 ~ } _ => { [INFO] [stdout] 768 | s.replace(from, to) [INFO] [stdout] 769 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:798:6 [INFO] [stdout] | [INFO] [stdout] 798 | if let Some(n) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:806:3 [INFO] [stdout] | [INFO] [stdout] 806 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 798 ~ match args.get(0) { Some(n) => { [INFO] [stdout] 799 | let n = to_usize(n); [INFO] [stdout] ... [INFO] [stdout] 805 | } [INFO] [stdout] 806 ~ } _ => { [INFO] [stdout] 807 | Litr::Buf(Vec::new()) [INFO] [stdout] 808 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:814:6 [INFO] [stdout] | [INFO] [stdout] 814 | if let Some(n) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:822:3 [INFO] [stdout] | [INFO] [stdout] 822 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 814 ~ match args.get(0) { Some(n) => { [INFO] [stdout] 815 | let n = to_usize(n); [INFO] [stdout] ... [INFO] [stdout] 821 | } [INFO] [stdout] 822 ~ } _ => { [INFO] [stdout] 823 | Litr::Buf(Vec::new()) [INFO] [stdout] 824 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(f) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:85:3 [INFO] [stdout] | [INFO] [stdout] 85 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 74 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 75 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 84 | }); [INFO] [stdout] 85 ~ } _ => { [INFO] [stdout] 86 | v.dedup(); [INFO] [stdout] 87 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:94:6 [INFO] [stdout] | [INFO] [stdout] 94 | if let Some(f) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:109:3 [INFO] [stdout] | [INFO] [stdout] 109 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 94 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 95 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 108 | }); [INFO] [stdout] 109 ~ } _ => { [INFO] [stdout] 110 | v.sort_unstable_by(|a,b| [INFO] [stdout] 111 | a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal)); [INFO] [stdout] 112 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:150:6 [INFO] [stdout] | [INFO] [stdout] 150 | if let Some(arg0) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:161:3 [INFO] [stdout] | [INFO] [stdout] 161 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 150 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 151 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 160 | Litr::List(v.split_off(v.len() - at)) [INFO] [stdout] 161 ~ } _ => { [INFO] [stdout] 162 | match v.pop() { [INFO] [stdout] ... [INFO] [stdout] 165 | } [INFO] [stdout] 166 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:171:6 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(arg0) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:184:3 [INFO] [stdout] | [INFO] [stdout] 184 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 171 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 172 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 183 | Litr::List(part) [INFO] [stdout] 184 ~ } _ => { [INFO] [stdout] 185 | if v.len()==0 {return Litr::Uninit;} [INFO] [stdout] 186 | v.remove(0) [INFO] [stdout] 187 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:360:8 [INFO] [stdout] | [INFO] [stdout] 360 | if let Litr::Bool(arg1) = &**arg1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:365:5 [INFO] [stdout] | [INFO] [stdout] 365 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 360 ~ match &**arg1 { Litr::Bool(arg1) => { [INFO] [stdout] 361 | if *arg1 { [INFO] [stdout] ... [INFO] [stdout] 364 | } [INFO] [stdout] 365 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:407:16 [INFO] [stdout] | [INFO] [stdout] 407 | let sep = if let Some(s) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:411:3 [INFO] [stdout] | [INFO] [stdout] 411 | }else {""}; [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 407 ~ let sep = match args.get(0) { Some(s) => { [INFO] [stdout] 408 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] 409 | panic!("list.join第一个参数只能是字符") [INFO] [stdout] 410 | } [INFO] [stdout] 411 ~ } _ => {""}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:408:8 [INFO] [stdout] | [INFO] [stdout] 408 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:408:34 [INFO] [stdout] | [INFO] [stdout] 408 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 408 ~ match &**s { Litr::Str(s) => {s} _ => { [INFO] [stdout] 409 | panic!("list.join第一个参数只能是字符") [INFO] [stdout] 410 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:569:6 [INFO] [stdout] | [INFO] [stdout] 569 | if let Some(n) = args.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:581:3 [INFO] [stdout] | [INFO] [stdout] 581 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 569 ~ match args.next() { Some(n) => { [INFO] [stdout] 570 | let init = if let Some(init) = args.next() { [INFO] [stdout] ... [INFO] [stdout] 580 | Litr::List(v) [INFO] [stdout] 581 ~ } _ => { [INFO] [stdout] 582 | Litr::Buf(Vec::new()) [INFO] [stdout] 583 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:570:19 [INFO] [stdout] | [INFO] [stdout] 570 | let init = if let Some(init) = args.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:572:5 [INFO] [stdout] | [INFO] [stdout] 572 | }else {Litr::Uninit}; [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 570 ~ let init = match args.next() { Some(init) => { [INFO] [stdout] 571 | init.own() [INFO] [stdout] 572 ~ } _ => {Litr::Uninit}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:595:6 [INFO] [stdout] | [INFO] [stdout] 595 | if let Litr::Buf(v) = &**from { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:597:3 [INFO] [stdout] | [INFO] [stdout] 597 | }else {panic!("List::from_buf第一个参数必须是Buf")} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 595 ~ match &**from { Litr::Buf(v) => { [INFO] [stdout] 596 | Litr::List(v.iter().map(|n|Litr::Uint(*n as usize)).collect()) [INFO] [stdout] 597 ~ } _ => {panic!("List::from_buf第一个参数必须是Buf")}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | Litr::Str(if let Some(len) = args.get(1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:123:3 [INFO] [stdout] | [INFO] [stdout] 123 | }else {s.remove(index).to_string()}) [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 119 ~ Litr::Str(match args.get(1) { Some(len) => { [INFO] [stdout] 120 | let len = to_usize(len) - 1; [INFO] [stdout] 121 | let len = indice.nth(len).unwrap_or((s.len(),'\x00')).0; [INFO] [stdout] 122 | s.drain(index..len).collect() [INFO] [stdout] 123 ~ } _ => {s.remove(index).to_string()}}) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:186:6 [INFO] [stdout] | [INFO] [stdout] 186 | if let Some(times) = args.get(2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:189:3 [INFO] [stdout] | [INFO] [stdout] 189 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 186 ~ match args.get(2) { Some(times) => { [INFO] [stdout] 187 | let times = to_usize(times); [INFO] [stdout] 188 | s.replacen(from, to, times) [INFO] [stdout] 189 ~ } _ => { [INFO] [stdout] 190 | s.replace(from, to) [INFO] [stdout] 191 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 204 | if let Litr::Bool(b) = &**n { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 204 ~ match &**n { Litr::Bool(b) => { [INFO] [stdout] 205 | if *b { [INFO] [stdout] ... [INFO] [stdout] 209 | } [INFO] [stdout] 210 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:226:15 [INFO] [stdout] | [INFO] [stdout] 226 | let ls = if let Litr::List(l) = &mut *ls_ {l} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:226:47 [INFO] [stdout] | [INFO] [stdout] 226 | let ls = if let Litr::List(l) = &mut *ls_ {l} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 226 | let ls = match &mut *ls_ { Litr::List(l) => {l} _ => {panic!("Obj::group_by第一个参数必须是List")}}; [INFO] [stdout] | ~~~~~ ++++++++++++++++++ ~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:229:14 [INFO] [stdout] | [INFO] [stdout] 229 | let f = if let Litr::Func(f) = &*f_ {f} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:229:41 [INFO] [stdout] | [INFO] [stdout] 229 | let f = if let Litr::Func(f) = &*f_ {f} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 229 | let f = match &*f_ { Litr::Func(f) => {f} _ => {panic!("Obj::group_by第二个参数必须是返回字符串的Func")}}; [INFO] [stdout] | ~~~~~ ++++++++++++++++++ ~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:235:10 [INFO] [stdout] | [INFO] [stdout] 235 | if let Litr::Str(s) = &sort_str { s.as_bytes() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:235:54 [INFO] [stdout] | [INFO] [stdout] 235 | if let Litr::Str(s) = &sort_str { s.as_bytes() } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 235 | match &sort_str { Litr::Str(s) => { s.as_bytes() } _ => {UNNAMED}} [INFO] [stdout] | ~~~~~ +++++++++++++++++ ~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:253:16 [INFO] [stdout] | [INFO] [stdout] 253 | Litr::Obj(if let Some(n) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:259:3 [INFO] [stdout] | [INFO] [stdout] 259 | }else {HashMap::new()}) [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 253 ~ Litr::Obj(match args.get(0) { Some(n) => { [INFO] [stdout] 254 | HashMap::with_capacity(match &**n { [INFO] [stdout] ... [INFO] [stdout] 258 | }) [INFO] [stdout] 259 ~ } _ => {HashMap::new()}}) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `key_lang` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] * src/primitive/kstd.rs [INFO] [stderr] * src/primitive/kstr.rs [INFO] [stderr] * src/primitive/mod.rs [INFO] [stderr] * src/runtime/evil.rs [INFO] [stderr] * src/scan/stmt.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/runtime/evil.rs:225:32 [INFO] [stderr] | [INFO] [stderr] 225 | macro_rules! loop_run_stmt {($stmt:expr_2021)=>{{ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/primitive/kstr.rs:36:23 [INFO] [stderr] | [INFO] [stderr] 36 | macro_rules! void {($v:expr_2021)=>{{ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/scan/stmt.rs:512:42 [INFO] [stderr] | [INFO] [stderr] 512 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 512 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/primitive/kstd.rs:52:36 [INFO] [stderr] | [INFO] [stderr] 52 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 52 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/primitive/mod.rs:76:22 [INFO] [stderr] | [INFO] [stderr] 76 | if let Some(cls) = &mut CLASSES { [INFO] [stderr] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/runtime/evil.rs:225:38 [INFO] [stdout] | [INFO] [stdout] 225 | macro_rules! loop_run_stmt {($stmt:expr)=>{{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 225 | macro_rules! loop_run_stmt {($stmt:expr_2021)=>{{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/primitive/kstr.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | macro_rules! void {($v:expr)=>{{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 36 | macro_rules! void {($v:expr_2021)=>{{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/c.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 6 | | fn LoadLibraryA(src:*const u8)-> *const (); [INFO] [stdout] 7 | | fn GetProcAddress(lib:*const (), src:*const u8)-> *const (); [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 76 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scan/stmt.rs:512:42 [INFO] [stdout] | [INFO] [stdout] 512 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 512 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/primitive/kstd.rs:52:36 [INFO] [stdout] | [INFO] [stdout] 52 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/primitive/mod.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | if let Some(cls) = &mut CLASSES { [INFO] [stdout] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 76 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/main.rs:73:24 [INFO] [stderr] | [INFO] [stderr] 73 | let opts = unsafe {&mut GLOBAL_OPTIONS}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #114447 [INFO] [stderr] = note: this will be a hard error in the 2024 edition [INFO] [stderr] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stderr] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | let opts = unsafe {&mut GLOBAL_OPTIONS}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 73 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 73 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 200 | if let Expr::Empty = e { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | }else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 200 ~ match e { Expr::Empty => { [INFO] [stdout] 201 | panic!("'='后未填写默认参数") [INFO] [stdout] 202 ~ } _ => { [INFO] [stdout] 203 | e [INFO] [stdout] 204 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | if let Expr::Variant(id) = ident { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 210 | }else if let Expr::Empty = ident { [INFO] [stdout] | ----- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | }else if let Expr::Empty = ident { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 217 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 182 ~ match ident { Expr::Variant(id) => { [INFO] [stdout] 183 | match &*id.vec() { [INFO] [stdout] ... [INFO] [stdout] 209 | } [INFO] [stdout] 210 ~ } _ => { match ident { Expr::Empty => { [INFO] [stdout] 211 | let expr = self.expr(); [INFO] [stdout] ... [INFO] [stdout] 216 | } [INFO] [stdout] 217 ~ } _ => { [INFO] [stdout] 218 | let expr = self.expr_with_left(ident, vec![]); [INFO] [stdout] ... [INFO] [stdout] 223 | } [INFO] [stdout] 224 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:188:16 [INFO] [stdout] | [INFO] [stdout] 188 | if let Expr::Variant(n) = self.expr_group() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | }else {panic!("const()锁定语句只允许传入变量名")} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 188 ~ match self.expr_group() { Expr::Variant(n) => { [INFO] [stdout] 189 | Stmt::Lock(n) [INFO] [stdout] 190 ~ } _ => {panic!("const()锁定语句只允许传入变量名")}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | if let Expr::Empty = expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:214:7 [INFO] [stdout] | [INFO] [stdout] 214 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 212 ~ match expr { Expr::Empty => { [INFO] [stdout] 213 | Stmt::Empty [INFO] [stdout] 214 ~ } _ => { [INFO] [stdout] 215 | Stmt::Expression(expr) [INFO] [stdout] 216 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:219:10 [INFO] [stdout] | [INFO] [stdout] 219 | if let Expr::Empty = expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:221:7 [INFO] [stdout] | [INFO] [stdout] 221 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 219 ~ match expr { Expr::Empty => { [INFO] [stdout] 220 | Stmt::Empty [INFO] [stdout] 221 ~ } _ => { [INFO] [stdout] 222 | Stmt::Expression(expr) [INFO] [stdout] 223 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:254:28 [INFO] [stdout] | [INFO] [stdout] 254 | let mut stmts = if let Stmt::Block(b) = stmt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:256:9 [INFO] [stdout] | [INFO] [stdout] 256 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 254 ~ let mut stmts = match stmt { Stmt::Block(b) => { [INFO] [stdout] 255 | b [INFO] [stdout] 256 ~ } _ => { [INFO] [stdout] 257 | Statements { [INFO] [stdout] ... [INFO] [stdout] 260 | } [INFO] [stdout] 261 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:361:8 [INFO] [stdout] | [INFO] [stdout] 361 | if let Expr::Empty = expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:363:5 [INFO] [stdout] | [INFO] [stdout] 363 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 361 ~ match expr { Expr::Empty => { [INFO] [stdout] 362 | Stmt::Return(Expr::Literal(Litr::Uninit)) [INFO] [stdout] 363 ~ } _ => { [INFO] [stdout] 364 | Stmt::Return(expr) [INFO] [stdout] 365 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:410:28 [INFO] [stdout] | [INFO] [stdout] 410 | let mut stmts = if let Stmt::Block(b) = stmt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:412:9 [INFO] [stdout] | [INFO] [stdout] 412 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 410 ~ let mut stmts = match stmt { Stmt::Block(b) => { [INFO] [stdout] 411 | b [INFO] [stdout] 412 ~ } _ => { [INFO] [stdout] 413 | Statements { [INFO] [stdout] ... [INFO] [stdout] 416 | } [INFO] [stdout] 417 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:92:18 [INFO] [stdout] | [INFO] [stdout] 92 | if let Some(last_e) = &mut expr_catch { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 92 ~ match &mut expr_catch { Some(last_e) => { [INFO] [stdout] 93 | let mut left = Box::new(Expr::Empty); [INFO] [stdout] ... [INFO] [stdout] 106 | }); [INFO] [stdout] 107 ~ } _ => { [INFO] [stdout] 108 | expr_catch = Some(Expr::Binary { [INFO] [stdout] ... [INFO] [stdout] 112 | }); [INFO] [stdout] 113 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | if let Some(e) = &mut expr_catch { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 128 ~ match &mut expr_catch { Some(e) => { [INFO] [stdout] 129 | let mut left = Box::new(Expr::Empty); [INFO] [stdout] ... [INFO] [stdout] 134 | } [INFO] [stdout] 135 ~ } _ => { [INFO] [stdout] 136 | let str = String::from_utf8(vec).expect("字符串含非法字符"); [INFO] [stdout] 137 | Expr::Literal(Litr::Str(str)) [INFO] [stdout] 138 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:314:28 [INFO] [stdout] | [INFO] [stdout] 314 | let mut stmts = if let super::Stmt::Block(b) = stmt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 314 ~ let mut stmts = match stmt { super::Stmt::Block(b) => { [INFO] [stdout] 315 | b [INFO] [stdout] 316 ~ } _ => { [INFO] [stdout] 317 | Statements { [INFO] [stdout] ... [INFO] [stdout] 320 | } [INFO] [stdout] 321 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/expr.rs:369:18 [INFO] [stdout] | [INFO] [stdout] 369 | args.push(if let Expr::Empty = e { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/scan/expr.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 371 | }else {e}); [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 369 ~ args.push(match e { Expr::Empty => { [INFO] [stdout] 370 | Expr::Literal(Litr::Uninit) [INFO] [stdout] 371 ~ } _ => {e}}); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:192:6 [INFO] [stdout] | [INFO] [stdout] 192 | if let Stmt::Block(exec) = &**exec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:208:3 [INFO] [stdout] | [INFO] [stdout] 208 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 192 ~ match &**exec { Stmt::Block(exec) => { [INFO] [stdout] 193 | let mut scope = this.subscope(); [INFO] [stdout] ... [INFO] [stdout] 207 | // 单语句将由当前作用域代为执行,不再创建新作用域 [INFO] [stdout] 208 ~ } _ => { [INFO] [stdout] 209 | match &**exec { [INFO] [stdout] ... [INFO] [stdout] 218 | } [INFO] [stdout] 219 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/calc.rs:461:14 [INFO] [stdout] | [INFO] [stdout] 461 | if let Litr::Str(s) = &*i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/runtime/calc.rs:463:11 [INFO] [stdout] | [INFO] [stdout] 463 | }else {panic!("Obj索引必须是Str")} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 461 ~ match &*i { Litr::Str(s) => { [INFO] [stdout] 462 | map.insert(intern(s.as_bytes()), right); [INFO] [stdout] 463 ~ } _ => {panic!("Obj索引必须是Str")}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/calc.rs:571:14 [INFO] [stdout] | [INFO] [stdout] 571 | if let Litr::Str(s) = &*i { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/runtime/calc.rs:576:11 [INFO] [stdout] | [INFO] [stdout] 576 | }else {panic!("Obj索引必须是Str")} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 571 ~ match &*i { Litr::Str(s) => { [INFO] [stdout] 572 | let s = intern(s.as_bytes()); [INFO] [stdout] ... [INFO] [stdout] 575 | map.insert(s, write); [INFO] [stdout] 576 ~ } _ => {panic!("Obj索引必须是Str")}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/externer.rs:95:18 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(v) = args.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 109 | / impl_arg!{ [INFO] [stdout] 110 | | 0 [INFO] [stdout] 111 | | 1 a [INFO] [stdout] 112 | | 2 a b [INFO] [stdout] ... | [INFO] [stdout] 125 | | 15 a b c d e f g h i j k l m n o [INFO] [stdout] 126 | | } [INFO] [stdout] | |___- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/runtime/externer.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | } [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 109 | / impl_arg!{ [INFO] [stdout] 110 | | 0 [INFO] [stdout] 111 | | 1 a [INFO] [stdout] 112 | | 2 a b [INFO] [stdout] ... | [INFO] [stdout] 125 | | 15 a b c d e f g h i j k l m n o [INFO] [stdout] 126 | | } [INFO] [stdout] | |___- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `impl_arg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/litr.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | if let Litr::Inst(v) = res { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/litr.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 172 ~ match res { Litr::Inst(v) => { [INFO] [stdout] 173 | v [INFO] [stdout] 174 ~ } _ => { [INFO] [stdout] 175 | panic!("'{}'的@clone方法必须返回实例", cls_f.name); [INFO] [stdout] 176 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:110:6 [INFO] [stdout] | [INFO] [stdout] 110 | if let Some(f) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:121:3 [INFO] [stdout] | [INFO] [stdout] 121 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 110 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 111 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 120 | }); [INFO] [stdout] 121 ~ } _ => { [INFO] [stdout] 122 | v.dedup(); [INFO] [stdout] 123 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:130:6 [INFO] [stdout] | [INFO] [stdout] 130 | if let Some(f) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:145:3 [INFO] [stdout] | [INFO] [stdout] 145 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 130 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 131 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 144 | }); [INFO] [stdout] 145 ~ } _ => { [INFO] [stdout] 146 | v.sort_unstable(); [INFO] [stdout] 147 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:196:6 [INFO] [stdout] | [INFO] [stdout] 196 | if let Some(arg0) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:207:3 [INFO] [stdout] | [INFO] [stdout] 207 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 196 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 197 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 206 | Litr::Buf(v.split_off(v.len() - at)) [INFO] [stdout] 207 ~ } _ => { [INFO] [stdout] 208 | match v.pop() { [INFO] [stdout] ... [INFO] [stdout] 211 | } [INFO] [stdout] 212 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:217:6 [INFO] [stdout] | [INFO] [stdout] 217 | if let Some(arg0) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:230:3 [INFO] [stdout] | [INFO] [stdout] 230 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 217 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 218 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 229 | Litr::Buf(part) [INFO] [stdout] 230 ~ } _ => { [INFO] [stdout] 231 | if v.len()==0 {return Litr::Uninit;} [INFO] [stdout] 232 | Litr::Uint(v.remove(0) as usize) [INFO] [stdout] 233 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:477:8 [INFO] [stdout] | [INFO] [stdout] 477 | if let Litr::Bool(arg1) = &**arg1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:482:5 [INFO] [stdout] | [INFO] [stdout] 482 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 477 ~ match &**arg1 { Litr::Bool(arg1) => { [INFO] [stdout] 478 | if *arg1 { [INFO] [stdout] ... [INFO] [stdout] 481 | } [INFO] [stdout] 482 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:530:16 [INFO] [stdout] | [INFO] [stdout] 530 | let sep = if let Some(s) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:534:3 [INFO] [stdout] | [INFO] [stdout] 534 | }else {""}; [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 530 ~ let sep = match args.get(0) { Some(s) => { [INFO] [stdout] 531 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] 532 | panic!("buf.join第一个参数只能是字符") [INFO] [stdout] 533 | } [INFO] [stdout] 534 ~ } _ => {""}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:531:8 [INFO] [stdout] | [INFO] [stdout] 531 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:531:34 [INFO] [stdout] | [INFO] [stdout] 531 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 531 ~ match &**s { Litr::Str(s) => {s} _ => { [INFO] [stdout] 532 | panic!("buf.join第一个参数只能是字符") [INFO] [stdout] 533 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:765:6 [INFO] [stdout] | [INFO] [stdout] 765 | if let Some(n) = args.get(2) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:767:3 [INFO] [stdout] | [INFO] [stdout] 767 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 765 ~ match args.get(2) { Some(n) => { [INFO] [stdout] 766 | s.replacen(from, to, to_usize(n)) [INFO] [stdout] 767 ~ } _ => { [INFO] [stdout] 768 | s.replace(from, to) [INFO] [stdout] 769 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:798:6 [INFO] [stdout] | [INFO] [stdout] 798 | if let Some(n) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:806:3 [INFO] [stdout] | [INFO] [stdout] 806 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 798 ~ match args.get(0) { Some(n) => { [INFO] [stdout] 799 | let n = to_usize(n); [INFO] [stdout] ... [INFO] [stdout] 805 | } [INFO] [stdout] 806 ~ } _ => { [INFO] [stdout] 807 | Litr::Buf(Vec::new()) [INFO] [stdout] 808 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:814:6 [INFO] [stdout] | [INFO] [stdout] 814 | if let Some(n) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:822:3 [INFO] [stdout] | [INFO] [stdout] 822 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 814 ~ match args.get(0) { Some(n) => { [INFO] [stdout] 815 | let n = to_usize(n); [INFO] [stdout] ... [INFO] [stdout] 821 | } [INFO] [stdout] 822 ~ } _ => { [INFO] [stdout] 823 | Litr::Buf(Vec::new()) [INFO] [stdout] 824 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 74 | if let Some(f) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:85:3 [INFO] [stdout] | [INFO] [stdout] 85 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 74 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 75 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 84 | }); [INFO] [stdout] 85 ~ } _ => { [INFO] [stdout] 86 | v.dedup(); [INFO] [stdout] 87 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:94:6 [INFO] [stdout] | [INFO] [stdout] 94 | if let Some(f) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:109:3 [INFO] [stdout] | [INFO] [stdout] 109 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 94 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 95 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 108 | }); [INFO] [stdout] 109 ~ } _ => { [INFO] [stdout] 110 | v.sort_unstable_by(|a,b| [INFO] [stdout] 111 | a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal)); [INFO] [stdout] 112 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:150:6 [INFO] [stdout] | [INFO] [stdout] 150 | if let Some(arg0) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:161:3 [INFO] [stdout] | [INFO] [stdout] 161 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 150 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 151 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 160 | Litr::List(v.split_off(v.len() - at)) [INFO] [stdout] 161 ~ } _ => { [INFO] [stdout] 162 | match v.pop() { [INFO] [stdout] ... [INFO] [stdout] 165 | } [INFO] [stdout] 166 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:171:6 [INFO] [stdout] | [INFO] [stdout] 171 | if let Some(arg0) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:184:3 [INFO] [stdout] | [INFO] [stdout] 184 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 171 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 172 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 183 | Litr::List(part) [INFO] [stdout] 184 ~ } _ => { [INFO] [stdout] 185 | if v.len()==0 {return Litr::Uninit;} [INFO] [stdout] 186 | v.remove(0) [INFO] [stdout] 187 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:360:8 [INFO] [stdout] | [INFO] [stdout] 360 | if let Litr::Bool(arg1) = &**arg1 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:365:5 [INFO] [stdout] | [INFO] [stdout] 365 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 360 ~ match &**arg1 { Litr::Bool(arg1) => { [INFO] [stdout] 361 | if *arg1 { [INFO] [stdout] ... [INFO] [stdout] 364 | } [INFO] [stdout] 365 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:407:16 [INFO] [stdout] | [INFO] [stdout] 407 | let sep = if let Some(s) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:411:3 [INFO] [stdout] | [INFO] [stdout] 411 | }else {""}; [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 407 ~ let sep = match args.get(0) { Some(s) => { [INFO] [stdout] 408 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] 409 | panic!("list.join第一个参数只能是字符") [INFO] [stdout] 410 | } [INFO] [stdout] 411 ~ } _ => {""}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:408:8 [INFO] [stdout] | [INFO] [stdout] 408 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:408:34 [INFO] [stdout] | [INFO] [stdout] 408 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 408 ~ match &**s { Litr::Str(s) => {s} _ => { [INFO] [stdout] 409 | panic!("list.join第一个参数只能是字符") [INFO] [stdout] 410 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:569:6 [INFO] [stdout] | [INFO] [stdout] 569 | if let Some(n) = args.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:581:3 [INFO] [stdout] | [INFO] [stdout] 581 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 569 ~ match args.next() { Some(n) => { [INFO] [stdout] 570 | let init = if let Some(init) = args.next() { [INFO] [stdout] ... [INFO] [stdout] 580 | Litr::List(v) [INFO] [stdout] 581 ~ } _ => { [INFO] [stdout] 582 | Litr::Buf(Vec::new()) [INFO] [stdout] 583 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:570:19 [INFO] [stdout] | [INFO] [stdout] 570 | let init = if let Some(init) = args.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^----------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:572:5 [INFO] [stdout] | [INFO] [stdout] 572 | }else {Litr::Uninit}; [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 570 ~ let init = match args.next() { Some(init) => { [INFO] [stdout] 571 | init.own() [INFO] [stdout] 572 ~ } _ => {Litr::Uninit}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:595:6 [INFO] [stdout] | [INFO] [stdout] 595 | if let Litr::Buf(v) = &**from { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:597:3 [INFO] [stdout] | [INFO] [stdout] 597 | }else {panic!("List::from_buf第一个参数必须是Buf")} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 595 ~ match &**from { Litr::Buf(v) => { [INFO] [stdout] 596 | Litr::List(v.iter().map(|n|Litr::Uint(*n as usize)).collect()) [INFO] [stdout] 597 ~ } _ => {panic!("List::from_buf第一个参数必须是Buf")}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 119 | Litr::Str(if let Some(len) = args.get(1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:123:3 [INFO] [stdout] | [INFO] [stdout] 123 | }else {s.remove(index).to_string()}) [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 119 ~ Litr::Str(match args.get(1) { Some(len) => { [INFO] [stdout] 120 | let len = to_usize(len) - 1; [INFO] [stdout] 121 | let len = indice.nth(len).unwrap_or((s.len(),'\x00')).0; [INFO] [stdout] 122 | s.drain(index..len).collect() [INFO] [stdout] 123 ~ } _ => {s.remove(index).to_string()}}) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:186:6 [INFO] [stdout] | [INFO] [stdout] 186 | if let Some(times) = args.get(2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:189:3 [INFO] [stdout] | [INFO] [stdout] 189 | }else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 186 ~ match args.get(2) { Some(times) => { [INFO] [stdout] 187 | let times = to_usize(times); [INFO] [stdout] 188 | s.replacen(from, to, times) [INFO] [stdout] 189 ~ } _ => { [INFO] [stdout] 190 | s.replace(from, to) [INFO] [stdout] 191 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 204 | if let Litr::Bool(b) = &**n { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 210 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 204 ~ match &**n { Litr::Bool(b) => { [INFO] [stdout] 205 | if *b { [INFO] [stdout] ... [INFO] [stdout] 209 | } [INFO] [stdout] 210 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:226:15 [INFO] [stdout] | [INFO] [stdout] 226 | let ls = if let Litr::List(l) = &mut *ls_ {l} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:226:47 [INFO] [stdout] | [INFO] [stdout] 226 | let ls = if let Litr::List(l) = &mut *ls_ {l} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 226 | let ls = match &mut *ls_ { Litr::List(l) => {l} _ => {panic!("Obj::group_by第一个参数必须是List")}}; [INFO] [stdout] | ~~~~~ ++++++++++++++++++ ~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:229:14 [INFO] [stdout] | [INFO] [stdout] 229 | let f = if let Litr::Func(f) = &*f_ {f} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:229:41 [INFO] [stdout] | [INFO] [stdout] 229 | let f = if let Litr::Func(f) = &*f_ {f} [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 229 | let f = match &*f_ { Litr::Func(f) => {f} _ => {panic!("Obj::group_by第二个参数必须是返回字符串的Func")}}; [INFO] [stdout] | ~~~~~ ++++++++++++++++++ ~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:235:10 [INFO] [stdout] | [INFO] [stdout] 235 | if let Litr::Str(s) = &sort_str { s.as_bytes() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:235:54 [INFO] [stdout] | [INFO] [stdout] 235 | if let Litr::Str(s) = &sort_str { s.as_bytes() } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 235 | match &sort_str { Litr::Str(s) => { s.as_bytes() } _ => {UNNAMED}} [INFO] [stdout] | ~~~~~ +++++++++++++++++ ~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:253:16 [INFO] [stdout] | [INFO] [stdout] 253 | Litr::Obj(if let Some(n) = args.get(0) { [INFO] [stdout] | ^^^^^^^^^^^^^^----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:259:3 [INFO] [stdout] | [INFO] [stdout] 259 | }else {HashMap::new()}) [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 253 ~ Litr::Obj(match args.get(0) { Some(n) => { [INFO] [stdout] 254 | HashMap::with_capacity(match &**n { [INFO] [stdout] ... [INFO] [stdout] 258 | }) [INFO] [stdout] 259 ~ } _ => {HashMap::new()}}) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.31s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking key-lang v0.1.1 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/c.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / extern { [INFO] [stdout] 6 | | fn LoadLibraryA(src:*const u8)-> *const (); [INFO] [stdout] 7 | | fn GetProcAddress(lib:*const (), src:*const u8)-> *const (); [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/c.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / extern { [INFO] [stdout] 6 | | fn LoadLibraryA(src:*const u8)-> *const (); [INFO] [stdout] 7 | | fn GetProcAddress(lib:*const (), src:*const u8)-> *const (); [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/scan/stmt.rs:512:42 [INFO] [stdout] | [INFO] [stdout] 512 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 512 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/scan/stmt.rs:512:42 [INFO] [stdout] | [INFO] [stdout] 512 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 512 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/primitive/kstd.rs:52:36 [INFO] [stdout] | [INFO] [stdout] 52 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/primitive/kstd.rs:52:36 [INFO] [stdout] | [INFO] [stdout] 52 | let mut place = std::mem::take(&mut crate::PLACE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | let mut place = std::mem::take(addr_of_mut!(crate::PLACE)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/primitive/mod.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | if let Some(cls) = &mut CLASSES { [INFO] [stdout] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 76 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/main.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | let opts = unsafe {&mut GLOBAL_OPTIONS}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 73 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/primitive/mod.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | if let Some(cls) = &mut CLASSES { [INFO] [stdout] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 76 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/main.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | let opts = unsafe {&mut GLOBAL_OPTIONS}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 73 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `key-lang` (bin "key-lang") due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `key-lang` (bin "key-lang" test) due to 6 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "27c6b8af119abd246ac91276bb24e54ad2aeb1c89d7ea158f2a75ff52324151d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27c6b8af119abd246ac91276bb24e54ad2aeb1c89d7ea158f2a75ff52324151d", kill_on_drop: false }` [INFO] [stdout] 27c6b8af119abd246ac91276bb24e54ad2aeb1c89d7ea158f2a75ff52324151d