[INFO] cloning repository https://github.com/Bylx666/key-lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Bylx666/key-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBylx666%2Fkey-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBylx666%2Fkey-lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51abb176cee53da57b07e423a1c29df289020771 [INFO] checking Bylx666/key-lang/51abb176cee53da57b07e423a1c29df289020771 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBylx666%2Fkey-lang" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Bylx666/key-lang 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] removed /workspace/builds/worker-3-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/Bylx666/key-lang [INFO] finished tweaking git repo https://github.com/Bylx666/key-lang [INFO] tweaked toml for git repo https://github.com/Bylx666/key-lang written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Bylx666/key-lang 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] c077892a2b4d33b1ea34e2438c6abfe2711325edffd2685e8d09a710e7783e3c [INFO] running `Command { std: "docker" "start" "-a" "c077892a2b4d33b1ea34e2438c6abfe2711325edffd2685e8d09a710e7783e3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c077892a2b4d33b1ea34e2438c6abfe2711325edffd2685e8d09a710e7783e3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c077892a2b4d33b1ea34e2438c6abfe2711325edffd2685e8d09a710e7783e3c", kill_on_drop: false }` [INFO] [stdout] c077892a2b4d33b1ea34e2438c6abfe2711325edffd2685e8d09a710e7783e3c [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] 582956360f0e11508d1c8f2b2be3f026858c78572ac39403b5dee8c9c670df70 [INFO] running `Command { std: "docker" "start" "-a" "582956360f0e11508d1c8f2b2be3f026858c78572ac39403b5dee8c9c670df70", 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.6 (/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/call.rs [INFO] [stderr] * src/runtime/evil.rs [INFO] [stderr] * src/scan/stmt.rs [INFO] [stderr] * src/utils.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:344:32 [INFO] [stderr] | [INFO] [stderr] 344 | 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:576:43 [INFO] [stderr] | [INFO] [stderr] 576 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 576 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/scan/stmt.rs:590:45 [INFO] [stderr] | [INFO] [stderr] 590 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 590 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/runtime/call.rs:152:42 [INFO] [stderr] | [INFO] [stderr] 152 | let mut file_path = std::mem::take(&mut crate::FILE_PATH); [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] 152 | let mut file_path = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/primitive/kstd.rs:50:39 [INFO] [stderr] | [INFO] [stderr] 50 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 50 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/primitive/mod.rs:77:22 [INFO] [stderr] | [INFO] [stderr] 77 | 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] 77 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/utils.rs:52:16 [INFO] [stderr] | [INFO] [stderr] 52 | buf.push(&crate::FILE_PATH); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stderr] help: use `addr_of!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 52 | buf.push(addr_of!(crate::FILE_PATH)); [INFO] [stderr] | ~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/main.rs:56:24 [INFO] [stderr] | [INFO] [stderr] 56 | 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] 56 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/runtime/evil.rs:344:38 [INFO] [stdout] | [INFO] [stdout] 344 | 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] 344 | macro_rules! loop_run_stmt {($stmt:expr_2021)=>{{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [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] error: aborting due to 2 previous errors; 7 warnings emitted [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/c.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | extern { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | ___help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 21 | | #[link_name = "dlopen"] [INFO] [stdout] 22 | | fn dlopen_(src:*const u8, m:i32)-> *const (); [INFO] [stdout] 23 | | pub fn dlsym(lib:*const (), src:*const u8)-> *const (); [INFO] [stdout] 24 | | } [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] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scan/stmt.rs:576:43 [INFO] [stdout] | [INFO] [stdout] 576 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 576 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scan/stmt.rs:590:45 [INFO] [stdout] | [INFO] [stdout] 590 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 590 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Original diagnostics will follow. [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/runtime/call.rs:152:42 [INFO] [stdout] | [INFO] [stdout] 152 | let mut file_path = std::mem::take(&mut crate::FILE_PATH); [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] 152 | let mut file_path = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [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:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 50 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/primitive/mod.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | 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] 77 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/utils.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | buf.push(&crate::FILE_PATH); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | buf.push(addr_of!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | 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] 56 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClassFunc` is never constructed [INFO] [stdout] --> src/scan/stmt.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct ClassFunc { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassFunc` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kself` is never read [INFO] [stdout] --> src/runtime/mod.rs:218:7 [INFO] [stdout] | [INFO] [stdout] 215 | pub struct RunResult { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 218 | pub kself: Litr [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RunResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 204 | 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:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | }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] 204 ~ match e { Expr::Empty => { [INFO] [stdout] 205 | panic!("'='后未填写默认参数") [INFO] [stdout] 206 ~ } _ => { [INFO] [stdout] 207 | e [INFO] [stdout] 208 ~ }} [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:8 [INFO] [stdout] | [INFO] [stdout] 212 | 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] 244 | }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:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | }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:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | } 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 ident { Expr::Variant(id) => { [INFO] [stdout] 213 | match &*id.vec() { [INFO] [stdout] ... [INFO] [stdout] 243 | } [INFO] [stdout] 244 ~ } _ => { match ident { Expr::Empty => { [INFO] [stdout] 245 | let expr = self.expr(); [INFO] [stdout] ... [INFO] [stdout] 250 | } [INFO] [stdout] 251 ~ } _ => { [INFO] [stdout] 252 | let expr = self.expr_with_left(ident, vec![]); [INFO] [stdout] ... [INFO] [stdout] 257 | } [INFO] [stdout] 258 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:218:16 [INFO] [stdout] | [INFO] [stdout] 218 | 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:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | }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] 218 ~ match self.expr_group() { Expr::Variant(n) => { [INFO] [stdout] 219 | Stmt::Lock(n) [INFO] [stdout] 220 ~ } _ => {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:246:10 [INFO] [stdout] | [INFO] [stdout] 246 | 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:248:7 [INFO] [stdout] | [INFO] [stdout] 248 | }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] 246 ~ match expr { Expr::Empty => { [INFO] [stdout] 247 | Stmt::Empty [INFO] [stdout] 248 ~ } _ => { [INFO] [stdout] 249 | Stmt::Expression(expr) [INFO] [stdout] 250 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | 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:255:7 [INFO] [stdout] | [INFO] [stdout] 255 | }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] 253 ~ match expr { Expr::Empty => { [INFO] [stdout] 254 | Stmt::Empty [INFO] [stdout] 255 ~ } _ => { [INFO] [stdout] 256 | Stmt::Expression(expr) [INFO] [stdout] 257 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:319:24 [INFO] [stdout] | [INFO] [stdout] 319 | let 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:321:9 [INFO] [stdout] | [INFO] [stdout] 321 | }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] 319 ~ let stmts = match stmt { Stmt::Block(b) => { [INFO] [stdout] 320 | b [INFO] [stdout] 321 ~ } _ => { [INFO] [stdout] 322 | Statements { [INFO] [stdout] ... [INFO] [stdout] 325 | } [INFO] [stdout] 326 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:434:8 [INFO] [stdout] | [INFO] [stdout] 434 | 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:436:5 [INFO] [stdout] | [INFO] [stdout] 436 | }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] 434 ~ match expr { Expr::Empty => { [INFO] [stdout] 435 | Stmt::Return(Expr::Literal(Litr::Uninit)) [INFO] [stdout] 436 ~ } _ => { [INFO] [stdout] 437 | Stmt::Return(expr) [INFO] [stdout] 438 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:483:24 [INFO] [stdout] | [INFO] [stdout] 483 | let 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:485:9 [INFO] [stdout] | [INFO] [stdout] 485 | }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] 483 ~ let stmts = match stmt { Stmt::Block(b) => { [INFO] [stdout] 484 | b [INFO] [stdout] 485 ~ } _ => { [INFO] [stdout] 486 | Statements { [INFO] [stdout] ... [INFO] [stdout] 489 | } [INFO] [stdout] 490 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:531:21 [INFO] [stdout] | [INFO] [stdout] 531 | let id = if let AssignTo::One(n) = asn.id {n}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/scan/stmt.rs:531:53 [INFO] [stdout] | [INFO] [stdout] 531 | let id = if let AssignTo::One(n) = asn.id {n}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 ~ let id = match asn.id { AssignTo::One(n) => {n} _ => { [INFO] [stdout] 532 | panic!("mod.语句一次只能导出一个函数"); [INFO] [stdout] 533 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:730:26 [INFO] [stdout] | [INFO] [stdout] 730 | let run = if let Stmt::Block(stmt) = self.stmt() {stmt}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/scan/stmt.rs:730:67 [INFO] [stdout] | [INFO] [stdout] 730 | let run = if let Stmt::Block(stmt) = self.stmt() {stmt}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] 730 ~ let run = match self.stmt() { Stmt::Block(stmt) => {stmt} _ => { [INFO] [stdout] 731 | unreachable!(); [INFO] [stdout] 732 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:768:20 [INFO] [stdout] | [INFO] [stdout] 768 | let run = if let Stmt::Block(stmt) = self.stmt() {stmt}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/scan/stmt.rs:768:61 [INFO] [stdout] | [INFO] [stdout] 768 | let run = if let Stmt::Block(stmt) = self.stmt() {stmt}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] 768 ~ let run = match self.stmt() { Stmt::Block(stmt) => {stmt} _ => { [INFO] [stdout] 769 | unreachable!(); [INFO] [stdout] 770 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | 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:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | }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] 89 ~ match &mut expr_catch { Some(last_e) => { [INFO] [stdout] 90 | let mut left = Box::new(Expr::Empty); [INFO] [stdout] ... [INFO] [stdout] 103 | }); [INFO] [stdout] 104 ~ } _ => { [INFO] [stdout] 105 | expr_catch = Some(Expr::Binary { [INFO] [stdout] ... [INFO] [stdout] 109 | }); [INFO] [stdout] 110 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | 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:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | }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] 125 ~ match &mut expr_catch { Some(e) => { [INFO] [stdout] 126 | let mut left = Box::new(Expr::Empty); [INFO] [stdout] ... [INFO] [stdout] 131 | } [INFO] [stdout] 132 ~ } _ => { [INFO] [stdout] 133 | let str = String::from_utf8(vec).expect("字符串含非法字符"); [INFO] [stdout] 134 | Expr::Literal(Litr::Str(str)) [INFO] [stdout] 135 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:356:24 [INFO] [stdout] | [INFO] [stdout] 356 | let 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:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | }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] 356 ~ let stmts = match stmt { super::Stmt::Block(b) => { [INFO] [stdout] 357 | b [INFO] [stdout] 358 ~ } _ => { [INFO] [stdout] 359 | Statements { [INFO] [stdout] ... [INFO] [stdout] 362 | } [INFO] [stdout] 363 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/expr.rs:368:18 [INFO] [stdout] | [INFO] [stdout] 368 | 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:370:5 [INFO] [stdout] | [INFO] [stdout] 370 | }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] 368 ~ args.push(match e { Expr::Empty => { [INFO] [stdout] 369 | Expr::Literal(Litr::Uninit) [INFO] [stdout] 370 ~ } _ => {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:185:28 [INFO] [stdout] | [INFO] [stdout] 185 | let matched = if let MatchOrd::Eq = conds[0].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/runtime/evil.rs:187:11 [INFO] [stdout] | [INFO] [stdout] 187 | }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] 185 ~ let matched = match conds[0].1 { MatchOrd::Eq => { [INFO] [stdout] 186 | conds.iter().any(matcher) [INFO] [stdout] 187 ~ } _ => { [INFO] [stdout] 188 | // 如果是大于小于就是逻辑与(all, 全部符合) [INFO] [stdout] 189 | conds.iter().all(matcher) [INFO] [stdout] 190 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:215:14 [INFO] [stdout] | [INFO] [stdout] 215 | if let Err(err) = 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/runtime/evil.rs:224:11 [INFO] [stdout] | [INFO] [stdout] 224 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 215 ~ match res { Err(err) => { [INFO] [stdout] 216 | let s = if let Some(mes) = err.downcast_ref::<&'static str>() { [INFO] [stdout] ... [INFO] [stdout] 223 | scope.run(catc); [INFO] [stdout] 224 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:216:24 [INFO] [stdout] | [INFO] [stdout] 216 | let s = if let Some(mes) = err.downcast_ref::<&'static str>() { [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] 217 | mes.to_string() [INFO] [stdout] 218 | }else if let Some(mes) = err.downcast_ref::() { [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:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | }else if let Some(mes) = err.downcast_ref::() { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | }else{"错误".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] 216 ~ let s = match err.downcast_ref::<&'static str>() { Some(mes) => { [INFO] [stdout] 217 | mes.to_string() [INFO] [stdout] 218 ~ } _ => { match err.downcast_ref::() { Some(mes) => { [INFO] [stdout] 219 | mes.clone() [INFO] [stdout] 220 ~ } _ => {"错误".to_string()}}}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:311:6 [INFO] [stdout] | [INFO] [stdout] 311 | 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:327:3 [INFO] [stdout] | [INFO] [stdout] 327 | }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] 311 ~ match &**exec { Stmt::Block(exec) => { [INFO] [stdout] 312 | let mut scope = this.subscope(); [INFO] [stdout] ... [INFO] [stdout] 326 | // 单语句将由当前作用域代为执行,不再创建新作用域 [INFO] [stdout] 327 ~ } _ => { [INFO] [stdout] 328 | match &**exec { [INFO] [stdout] ... [INFO] [stdout] 337 | } [INFO] [stdout] 338 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/calc.rs:457:14 [INFO] [stdout] | [INFO] [stdout] 457 | 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:459:11 [INFO] [stdout] | [INFO] [stdout] 459 | }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] 457 ~ match &*i { Litr::Str(s) => { [INFO] [stdout] 458 | map.insert(intern(s.as_bytes()), right); [INFO] [stdout] 459 ~ } _ => {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:569:14 [INFO] [stdout] | [INFO] [stdout] 569 | 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:574:11 [INFO] [stdout] | [INFO] [stdout] 574 | }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] 569 ~ match &*i { Litr::Str(s) => { [INFO] [stdout] 570 | let s = intern(s.as_bytes()); [INFO] [stdout] ... [INFO] [stdout] 573 | map.insert(s, write); [INFO] [stdout] 574 ~ } _ => {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:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | 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] 107 | / impl_arg!{ [INFO] [stdout] 108 | | 0 [INFO] [stdout] 109 | | 1 a [INFO] [stdout] 110 | | 2 a b [INFO] [stdout] ... | [INFO] [stdout] 123 | | 15 a b c d e f g h i j k l m n o [INFO] [stdout] 124 | | } [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:96:15 [INFO] [stdout] | [INFO] [stdout] 96 | } [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 107 | / impl_arg!{ [INFO] [stdout] 108 | | 0 [INFO] [stdout] 109 | | 1 a [INFO] [stdout] 110 | | 2 a b [INFO] [stdout] ... | [INFO] [stdout] 123 | | 15 a b c d e f g h i j k l m n o [INFO] [stdout] 124 | | } [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:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | 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:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | }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] 185 ~ match res { Litr::Inst(v) => { [INFO] [stdout] 186 | v [INFO] [stdout] 187 ~ } _ => { [INFO] [stdout] 188 | panic!("'{}'的@clone方法必须返回实例", cls_f.f.name); [INFO] [stdout] 189 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstd.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | while let Some(s) = 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/kstd.rs:111:3 [INFO] [stdout] | [INFO] [stdout] 111 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:104:6 [INFO] [stdout] | [INFO] [stdout] 104 | 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:115:3 [INFO] [stdout] | [INFO] [stdout] 115 | }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] 104 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 105 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 114 | }); [INFO] [stdout] 115 ~ } _ => { [INFO] [stdout] 116 | v.dedup(); [INFO] [stdout] 117 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:124:6 [INFO] [stdout] | [INFO] [stdout] 124 | 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:139:3 [INFO] [stdout] | [INFO] [stdout] 139 | }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] 124 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 125 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 138 | }); [INFO] [stdout] 139 ~ } _ => { [INFO] [stdout] 140 | v.sort_unstable(); [INFO] [stdout] 141 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:174:6 [INFO] [stdout] | [INFO] [stdout] 174 | 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:185:3 [INFO] [stdout] | [INFO] [stdout] 185 | }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] 174 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 175 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 184 | Litr::Buf(v.split_off(v.len() - at)) [INFO] [stdout] 185 ~ } _ => { [INFO] [stdout] 186 | match v.pop() { [INFO] [stdout] ... [INFO] [stdout] 189 | } [INFO] [stdout] 190 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:195:6 [INFO] [stdout] | [INFO] [stdout] 195 | 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: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] 195 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 196 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 207 | Litr::Buf(part) [INFO] [stdout] 208 ~ } _ => { [INFO] [stdout] 209 | if v.len()==0 {return Litr::Uninit;} [INFO] [stdout] 210 | Litr::Uint(v.remove(0) as usize) [INFO] [stdout] 211 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 398 | 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:403:5 [INFO] [stdout] | [INFO] [stdout] 403 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 398 ~ match &**arg1 { Litr::Bool(arg1) => { [INFO] [stdout] 399 | if *arg1 { [INFO] [stdout] ... [INFO] [stdout] 402 | } [INFO] [stdout] 403 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:414:16 [INFO] [stdout] | [INFO] [stdout] 414 | 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:418:3 [INFO] [stdout] | [INFO] [stdout] 418 | }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] 414 ~ let sep = match args.get(0) { Some(s) => { [INFO] [stdout] 415 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] 416 | panic!("buf.join第一个参数只能是字符") [INFO] [stdout] 417 | } [INFO] [stdout] 418 ~ } _ => {""}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:415:8 [INFO] [stdout] | [INFO] [stdout] 415 | 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:415:34 [INFO] [stdout] | [INFO] [stdout] 415 | 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] 415 ~ match &**s { Litr::Str(s) => {s} _ => { [INFO] [stdout] 416 | panic!("buf.join第一个参数只能是字符") [INFO] [stdout] 417 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:637:16 [INFO] [stdout] | [INFO] [stdout] 637 | Litr::Buf(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:639:3 [INFO] [stdout] | [INFO] [stdout] 639 | }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] 637 ~ Litr::Buf(match args.get(2) { Some(n) => { [INFO] [stdout] 638 | s.replacen(from, to, to_usize(n)) [INFO] [stdout] 639 ~ } _ => { [INFO] [stdout] 640 | s.replace(from, to) [INFO] [stdout] 641 ~ }}.into_bytes()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:659:6 [INFO] [stdout] | [INFO] [stdout] 659 | 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:667:3 [INFO] [stdout] | [INFO] [stdout] 667 | }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] 659 ~ match args.get(0) { Some(n) => { [INFO] [stdout] 660 | let n = to_usize(n); [INFO] [stdout] ... [INFO] [stdout] 666 | } [INFO] [stdout] 667 ~ } _ => { [INFO] [stdout] 668 | Litr::Buf(Vec::new()) [INFO] [stdout] 669 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:675:6 [INFO] [stdout] | [INFO] [stdout] 675 | 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:683:3 [INFO] [stdout] | [INFO] [stdout] 683 | }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] 675 ~ match args.get(0) { Some(n) => { [INFO] [stdout] 676 | let n = to_usize(n); [INFO] [stdout] ... [INFO] [stdout] 682 | } [INFO] [stdout] 683 ~ } _ => { [INFO] [stdout] 684 | Litr::Buf(Vec::new()) [INFO] [stdout] 685 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:77:6 [INFO] [stdout] | [INFO] [stdout] 77 | 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:88:3 [INFO] [stdout] | [INFO] [stdout] 88 | }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] 77 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 78 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 87 | }); [INFO] [stdout] 88 ~ } _ => { [INFO] [stdout] 89 | v.dedup(); [INFO] [stdout] 90 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:97:6 [INFO] [stdout] | [INFO] [stdout] 97 | 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:112:3 [INFO] [stdout] | [INFO] [stdout] 112 | }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] 97 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 98 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 111 | }); [INFO] [stdout] 112 ~ } _ => { [INFO] [stdout] 113 | v.sort_unstable_by(|a,b| [INFO] [stdout] 114 | a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal)); [INFO] [stdout] 115 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:143:6 [INFO] [stdout] | [INFO] [stdout] 143 | 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:154:3 [INFO] [stdout] | [INFO] [stdout] 154 | }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] 143 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 144 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 153 | Litr::List(v.split_off(v.len() - at)) [INFO] [stdout] 154 ~ } _ => { [INFO] [stdout] 155 | match v.pop() { [INFO] [stdout] ... [INFO] [stdout] 158 | } [INFO] [stdout] 159 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:164:6 [INFO] [stdout] | [INFO] [stdout] 164 | 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:177:3 [INFO] [stdout] | [INFO] [stdout] 177 | }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] 164 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 165 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 176 | Litr::List(part) [INFO] [stdout] 177 ~ } _ => { [INFO] [stdout] 178 | if v.len()==0 {return Litr::Uninit;} [INFO] [stdout] 179 | v.remove(0) [INFO] [stdout] 180 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:304:8 [INFO] [stdout] | [INFO] [stdout] 304 | 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:309:5 [INFO] [stdout] | [INFO] [stdout] 309 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 304 ~ match &**arg1 { Litr::Bool(arg1) => { [INFO] [stdout] 305 | if *arg1 { [INFO] [stdout] ... [INFO] [stdout] 308 | } [INFO] [stdout] 309 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:335:16 [INFO] [stdout] | [INFO] [stdout] 335 | 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:339:3 [INFO] [stdout] | [INFO] [stdout] 339 | }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] 335 ~ let sep = match args.get(0) { Some(s) => { [INFO] [stdout] 336 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] 337 | panic!("list.join第一个参数只能是字符") [INFO] [stdout] 338 | } [INFO] [stdout] 339 ~ } _ => {""}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:336:8 [INFO] [stdout] | [INFO] [stdout] 336 | 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:336:34 [INFO] [stdout] | [INFO] [stdout] 336 | 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] 336 ~ match &**s { Litr::Str(s) => {s} _ => { [INFO] [stdout] 337 | panic!("list.join第一个参数只能是字符") [INFO] [stdout] 338 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:485:6 [INFO] [stdout] | [INFO] [stdout] 485 | 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:497:3 [INFO] [stdout] | [INFO] [stdout] 497 | }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] 485 ~ match args.next() { Some(n) => { [INFO] [stdout] 486 | let init = if let Some(init) = args.next() { [INFO] [stdout] ... [INFO] [stdout] 496 | Litr::List(v) [INFO] [stdout] 497 ~ } _ => { [INFO] [stdout] 498 | Litr::Buf(Vec::new()) [INFO] [stdout] 499 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:486:19 [INFO] [stdout] | [INFO] [stdout] 486 | 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:488:5 [INFO] [stdout] | [INFO] [stdout] 488 | }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] 486 ~ let init = match args.next() { Some(init) => { [INFO] [stdout] 487 | init.own() [INFO] [stdout] 488 ~ } _ => {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:511:6 [INFO] [stdout] | [INFO] [stdout] 511 | 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:513:3 [INFO] [stdout] | [INFO] [stdout] 513 | }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] 511 ~ match &**from { Litr::Buf(v) => { [INFO] [stdout] 512 | Litr::List(v.iter().map(|n|Litr::Uint(*n as usize)).collect()) [INFO] [stdout] 513 ~ } _ => {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/list.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 526 | while 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] = 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:532:3 [INFO] [stdout] | [INFO] [stdout] 532 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | 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:119:3 [INFO] [stdout] | [INFO] [stdout] 119 | }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] 115 ~ Litr::Str(match args.get(1) { Some(len) => { [INFO] [stdout] 116 | let len = to_usize(len) - 1; [INFO] [stdout] 117 | let len = indice.nth(len).unwrap_or((s.len(),'\x00')).0; [INFO] [stdout] 118 | s.drain(index..len).collect() [INFO] [stdout] 119 ~ } _ => {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:178:6 [INFO] [stdout] | [INFO] [stdout] 178 | 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:181:3 [INFO] [stdout] | [INFO] [stdout] 181 | }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] 178 ~ match args.get(2) { Some(times) => { [INFO] [stdout] 179 | let times = to_usize(times); [INFO] [stdout] 180 | s.replacen(from, to, times) [INFO] [stdout] 181 ~ } _ => { [INFO] [stdout] 182 | s.replace(from, to) [INFO] [stdout] 183 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | 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:202:5 [INFO] [stdout] | [INFO] [stdout] 202 | } [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 &**n { Litr::Bool(b) => { [INFO] [stdout] 197 | if *b { [INFO] [stdout] ... [INFO] [stdout] 201 | } [INFO] [stdout] 202 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:218:15 [INFO] [stdout] | [INFO] [stdout] 218 | 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:218:47 [INFO] [stdout] | [INFO] [stdout] 218 | 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] 218 | 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:221:14 [INFO] [stdout] | [INFO] [stdout] 221 | 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:221:41 [INFO] [stdout] | [INFO] [stdout] 221 | 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] 221 | 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:227:10 [INFO] [stdout] | [INFO] [stdout] 227 | 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:227:54 [INFO] [stdout] | [INFO] [stdout] 227 | 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] 227 | match &sort_str { Litr::Str(s) => { s.as_bytes() } _ => {continue;}} [INFO] [stdout] | ~~~~~ +++++++++++++++++ ~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:245:16 [INFO] [stdout] | [INFO] [stdout] 245 | 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:251:3 [INFO] [stdout] | [INFO] [stdout] 251 | }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] 245 ~ Litr::Obj(match args.get(0) { Some(n) => { [INFO] [stdout] 246 | HashMap::with_capacity(match &**n { [INFO] [stdout] ... [INFO] [stdout] 250 | }) [INFO] [stdout] 251 ~ } _ => {HashMap::new()}}) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/planet.rs:119:19 [INFO] [stdout] | [INFO] [stdout] 119 | let plan = if let Litr::Ninst(inst) = &*arg { [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/planet.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | }else {todo!("Planet::all需要所有参数都是Planet")}; [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 ~ let plan = match &*arg { Litr::Ninst(inst) => { [INFO] [stdout] 120 | if inst.cls == unsafe{PLANET_CLASS} { [INFO] [stdout] 121 | unsafe{&mut*(inst.v as *mut Planet)} [INFO] [stdout] 122 | }else {panic!("Planet::all需要所有参数都是Planet")} [INFO] [stdout] 123 ~ } _ => {todo!("Planet::all需要所有参数都是Planet")}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 65 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/call.rs [INFO] [stderr] * src/runtime/evil.rs [INFO] [stderr] * src/scan/stmt.rs [INFO] [stderr] * src/utils.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:344:32 [INFO] [stderr] | [INFO] [stderr] 344 | 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:576:43 [INFO] [stderr] | [INFO] [stderr] 576 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 576 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/scan/stmt.rs:590:45 [INFO] [stderr] | [INFO] [stderr] 590 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 590 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/runtime/call.rs:152:42 [INFO] [stderr] | [INFO] [stderr] 152 | let mut file_path = std::mem::take(&mut crate::FILE_PATH); [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] 152 | let mut file_path = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/primitive/kstd.rs:50:39 [INFO] [stderr] | [INFO] [stderr] 50 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 50 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/primitive/mod.rs:77:22 [INFO] [stderr] | [INFO] [stderr] 77 | 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] 77 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/utils.rs:52:16 [INFO] [stderr] | [INFO] [stderr] 52 | buf.push(&crate::FILE_PATH); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stderr] help: use `addr_of!` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 52 | buf.push(addr_of!(crate::FILE_PATH)); [INFO] [stderr] | ~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/main.rs:56:24 [INFO] [stderr] | [INFO] [stderr] 56 | let opts = unsafe {&mut GLOBAL_OPTIONS}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/runtime/evil.rs:344:38 [INFO] [stdout] | [INFO] [stdout] 344 | 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] 344 | macro_rules! loop_run_stmt {($stmt:expr_2021)=>{{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [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] = 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] 56 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stderr] | ~~~~~~~~~~~~~ + [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 7 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: extern blocks should be unsafe [INFO] [stdout] --> src/c.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | extern { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | ___help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 21 | | #[link_name = "dlopen"] [INFO] [stdout] 22 | | fn dlopen_(src:*const u8, m:i32)-> *const (); [INFO] [stdout] 23 | | pub fn dlsym(lib:*const (), src:*const u8)-> *const (); [INFO] [stdout] 24 | | } [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:576:43 [INFO] [stdout] | [INFO] [stdout] 576 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 576 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/scan/stmt.rs:590:45 [INFO] [stdout] | [INFO] [stdout] 590 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 590 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/runtime/call.rs:152:42 [INFO] [stdout] | [INFO] [stdout] 152 | let mut file_path = std::mem::take(&mut crate::FILE_PATH); [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] 152 | let mut file_path = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/primitive/kstd.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 50 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/primitive/mod.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | 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] 77 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/utils.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | buf.push(&crate::FILE_PATH); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | buf.push(addr_of!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | 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] 56 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ClassFunc` is never constructed [INFO] [stdout] --> src/scan/stmt.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 148 | pub struct ClassFunc { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassFunc` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kself` is never read [INFO] [stdout] --> src/runtime/mod.rs:218:7 [INFO] [stdout] | [INFO] [stdout] 215 | pub struct RunResult { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 218 | pub kself: Litr [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RunResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/mod.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 204 | 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:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | }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] 204 ~ match e { Expr::Empty => { [INFO] [stdout] 205 | panic!("'='后未填写默认参数") [INFO] [stdout] 206 ~ } _ => { [INFO] [stdout] 207 | e [INFO] [stdout] 208 ~ }} [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:8 [INFO] [stdout] | [INFO] [stdout] 212 | 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] 244 | }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:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | }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:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | } 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 ident { Expr::Variant(id) => { [INFO] [stdout] 213 | match &*id.vec() { [INFO] [stdout] ... [INFO] [stdout] 243 | } [INFO] [stdout] 244 ~ } _ => { match ident { Expr::Empty => { [INFO] [stdout] 245 | let expr = self.expr(); [INFO] [stdout] ... [INFO] [stdout] 250 | } [INFO] [stdout] 251 ~ } _ => { [INFO] [stdout] 252 | let expr = self.expr_with_left(ident, vec![]); [INFO] [stdout] ... [INFO] [stdout] 257 | } [INFO] [stdout] 258 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:218:16 [INFO] [stdout] | [INFO] [stdout] 218 | 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:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | }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] 218 ~ match self.expr_group() { Expr::Variant(n) => { [INFO] [stdout] 219 | Stmt::Lock(n) [INFO] [stdout] 220 ~ } _ => {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:246:10 [INFO] [stdout] | [INFO] [stdout] 246 | 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:248:7 [INFO] [stdout] | [INFO] [stdout] 248 | }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] 246 ~ match expr { Expr::Empty => { [INFO] [stdout] 247 | Stmt::Empty [INFO] [stdout] 248 ~ } _ => { [INFO] [stdout] 249 | Stmt::Expression(expr) [INFO] [stdout] 250 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:253:10 [INFO] [stdout] | [INFO] [stdout] 253 | 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:255:7 [INFO] [stdout] | [INFO] [stdout] 255 | }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] 253 ~ match expr { Expr::Empty => { [INFO] [stdout] 254 | Stmt::Empty [INFO] [stdout] 255 ~ } _ => { [INFO] [stdout] 256 | Stmt::Expression(expr) [INFO] [stdout] 257 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:319:24 [INFO] [stdout] | [INFO] [stdout] 319 | let 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:321:9 [INFO] [stdout] | [INFO] [stdout] 321 | }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] 319 ~ let stmts = match stmt { Stmt::Block(b) => { [INFO] [stdout] 320 | b [INFO] [stdout] 321 ~ } _ => { [INFO] [stdout] 322 | Statements { [INFO] [stdout] ... [INFO] [stdout] 325 | } [INFO] [stdout] 326 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:434:8 [INFO] [stdout] | [INFO] [stdout] 434 | 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:436:5 [INFO] [stdout] | [INFO] [stdout] 436 | }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] 434 ~ match expr { Expr::Empty => { [INFO] [stdout] 435 | Stmt::Return(Expr::Literal(Litr::Uninit)) [INFO] [stdout] 436 ~ } _ => { [INFO] [stdout] 437 | Stmt::Return(expr) [INFO] [stdout] 438 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:483:24 [INFO] [stdout] | [INFO] [stdout] 483 | let 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:485:9 [INFO] [stdout] | [INFO] [stdout] 485 | }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] 483 ~ let stmts = match stmt { Stmt::Block(b) => { [INFO] [stdout] 484 | b [INFO] [stdout] 485 ~ } _ => { [INFO] [stdout] 486 | Statements { [INFO] [stdout] ... [INFO] [stdout] 489 | } [INFO] [stdout] 490 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:531:21 [INFO] [stdout] | [INFO] [stdout] 531 | let id = if let AssignTo::One(n) = asn.id {n}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/scan/stmt.rs:531:53 [INFO] [stdout] | [INFO] [stdout] 531 | let id = if let AssignTo::One(n) = asn.id {n}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 ~ let id = match asn.id { AssignTo::One(n) => {n} _ => { [INFO] [stdout] 532 | panic!("mod.语句一次只能导出一个函数"); [INFO] [stdout] 533 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:730:26 [INFO] [stdout] | [INFO] [stdout] 730 | let run = if let Stmt::Block(stmt) = self.stmt() {stmt}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/scan/stmt.rs:730:67 [INFO] [stdout] | [INFO] [stdout] 730 | let run = if let Stmt::Block(stmt) = self.stmt() {stmt}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] 730 ~ let run = match self.stmt() { Stmt::Block(stmt) => {stmt} _ => { [INFO] [stdout] 731 | unreachable!(); [INFO] [stdout] 732 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/stmt.rs:768:20 [INFO] [stdout] | [INFO] [stdout] 768 | let run = if let Stmt::Block(stmt) = self.stmt() {stmt}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/scan/stmt.rs:768:61 [INFO] [stdout] | [INFO] [stdout] 768 | let run = if let Stmt::Block(stmt) = self.stmt() {stmt}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] 768 ~ let run = match self.stmt() { Stmt::Block(stmt) => {stmt} _ => { [INFO] [stdout] 769 | unreachable!(); [INFO] [stdout] 770 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:89:18 [INFO] [stdout] | [INFO] [stdout] 89 | 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:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | }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] 89 ~ match &mut expr_catch { Some(last_e) => { [INFO] [stdout] 90 | let mut left = Box::new(Expr::Empty); [INFO] [stdout] ... [INFO] [stdout] 103 | }); [INFO] [stdout] 104 ~ } _ => { [INFO] [stdout] 105 | expr_catch = Some(Expr::Binary { [INFO] [stdout] ... [INFO] [stdout] 109 | }); [INFO] [stdout] 110 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | 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:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | }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] 125 ~ match &mut expr_catch { Some(e) => { [INFO] [stdout] 126 | let mut left = Box::new(Expr::Empty); [INFO] [stdout] ... [INFO] [stdout] 131 | } [INFO] [stdout] 132 ~ } _ => { [INFO] [stdout] 133 | let str = String::from_utf8(vec).expect("字符串含非法字符"); [INFO] [stdout] 134 | Expr::Literal(Litr::Str(str)) [INFO] [stdout] 135 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/literal.rs:356:24 [INFO] [stdout] | [INFO] [stdout] 356 | let 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:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | }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] 356 ~ let stmts = match stmt { super::Stmt::Block(b) => { [INFO] [stdout] 357 | b [INFO] [stdout] 358 ~ } _ => { [INFO] [stdout] 359 | Statements { [INFO] [stdout] ... [INFO] [stdout] 362 | } [INFO] [stdout] 363 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/scan/expr.rs:368:18 [INFO] [stdout] | [INFO] [stdout] 368 | 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:370:5 [INFO] [stdout] | [INFO] [stdout] 370 | }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] 368 ~ args.push(match e { Expr::Empty => { [INFO] [stdout] 369 | Expr::Literal(Litr::Uninit) [INFO] [stdout] 370 ~ } _ => {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:185:28 [INFO] [stdout] | [INFO] [stdout] 185 | let matched = if let MatchOrd::Eq = conds[0].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/runtime/evil.rs:187:11 [INFO] [stdout] | [INFO] [stdout] 187 | }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] 185 ~ let matched = match conds[0].1 { MatchOrd::Eq => { [INFO] [stdout] 186 | conds.iter().any(matcher) [INFO] [stdout] 187 ~ } _ => { [INFO] [stdout] 188 | // 如果是大于小于就是逻辑与(all, 全部符合) [INFO] [stdout] 189 | conds.iter().all(matcher) [INFO] [stdout] 190 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:215:14 [INFO] [stdout] | [INFO] [stdout] 215 | if let Err(err) = 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/runtime/evil.rs:224:11 [INFO] [stdout] | [INFO] [stdout] 224 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 215 ~ match res { Err(err) => { [INFO] [stdout] 216 | let s = if let Some(mes) = err.downcast_ref::<&'static str>() { [INFO] [stdout] ... [INFO] [stdout] 223 | scope.run(catc); [INFO] [stdout] 224 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:216:24 [INFO] [stdout] | [INFO] [stdout] 216 | let s = if let Some(mes) = err.downcast_ref::<&'static str>() { [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] 217 | mes.to_string() [INFO] [stdout] 218 | }else if let Some(mes) = err.downcast_ref::() { [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:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | }else if let Some(mes) = err.downcast_ref::() { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | }else{"错误".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] 216 ~ let s = match err.downcast_ref::<&'static str>() { Some(mes) => { [INFO] [stdout] 217 | mes.to_string() [INFO] [stdout] 218 ~ } _ => { match err.downcast_ref::() { Some(mes) => { [INFO] [stdout] 219 | mes.clone() [INFO] [stdout] 220 ~ } _ => {"错误".to_string()}}}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/evil.rs:311:6 [INFO] [stdout] | [INFO] [stdout] 311 | 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:327:3 [INFO] [stdout] | [INFO] [stdout] 327 | }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] 311 ~ match &**exec { Stmt::Block(exec) => { [INFO] [stdout] 312 | let mut scope = this.subscope(); [INFO] [stdout] ... [INFO] [stdout] 326 | // 单语句将由当前作用域代为执行,不再创建新作用域 [INFO] [stdout] 327 ~ } _ => { [INFO] [stdout] 328 | match &**exec { [INFO] [stdout] ... [INFO] [stdout] 337 | } [INFO] [stdout] 338 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/runtime/calc.rs:457:14 [INFO] [stdout] | [INFO] [stdout] 457 | 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:459:11 [INFO] [stdout] | [INFO] [stdout] 459 | }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] 457 ~ match &*i { Litr::Str(s) => { [INFO] [stdout] 458 | map.insert(intern(s.as_bytes()), right); [INFO] [stdout] 459 ~ } _ => {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:569:14 [INFO] [stdout] | [INFO] [stdout] 569 | 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:574:11 [INFO] [stdout] | [INFO] [stdout] 574 | }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] 569 ~ match &*i { Litr::Str(s) => { [INFO] [stdout] 570 | let s = intern(s.as_bytes()); [INFO] [stdout] ... [INFO] [stdout] 573 | map.insert(s, write); [INFO] [stdout] 574 ~ } _ => {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:93:18 [INFO] [stdout] | [INFO] [stdout] 93 | 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] 107 | / impl_arg!{ [INFO] [stdout] 108 | | 0 [INFO] [stdout] 109 | | 1 a [INFO] [stdout] 110 | | 2 a b [INFO] [stdout] ... | [INFO] [stdout] 123 | | 15 a b c d e f g h i j k l m n o [INFO] [stdout] 124 | | } [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:96:15 [INFO] [stdout] | [INFO] [stdout] 96 | } [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 107 | / impl_arg!{ [INFO] [stdout] 108 | | 0 [INFO] [stdout] 109 | | 1 a [INFO] [stdout] 110 | | 2 a b [INFO] [stdout] ... | [INFO] [stdout] 123 | | 15 a b c d e f g h i j k l m n o [INFO] [stdout] 124 | | } [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:185:12 [INFO] [stdout] | [INFO] [stdout] 185 | 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:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | }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] 185 ~ match res { Litr::Inst(v) => { [INFO] [stdout] 186 | v [INFO] [stdout] 187 ~ } _ => { [INFO] [stdout] 188 | panic!("'{}'的@clone方法必须返回实例", cls_f.f.name); [INFO] [stdout] 189 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstd.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | while let Some(s) = 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/kstd.rs:111:3 [INFO] [stdout] | [INFO] [stdout] 111 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:104:6 [INFO] [stdout] | [INFO] [stdout] 104 | 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:115:3 [INFO] [stdout] | [INFO] [stdout] 115 | }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] 104 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 105 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 114 | }); [INFO] [stdout] 115 ~ } _ => { [INFO] [stdout] 116 | v.dedup(); [INFO] [stdout] 117 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:124:6 [INFO] [stdout] | [INFO] [stdout] 124 | 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:139:3 [INFO] [stdout] | [INFO] [stdout] 139 | }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] 124 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 125 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 138 | }); [INFO] [stdout] 139 ~ } _ => { [INFO] [stdout] 140 | v.sort_unstable(); [INFO] [stdout] 141 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:174:6 [INFO] [stdout] | [INFO] [stdout] 174 | 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:185:3 [INFO] [stdout] | [INFO] [stdout] 185 | }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] 174 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 175 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 184 | Litr::Buf(v.split_off(v.len() - at)) [INFO] [stdout] 185 ~ } _ => { [INFO] [stdout] 186 | match v.pop() { [INFO] [stdout] ... [INFO] [stdout] 189 | } [INFO] [stdout] 190 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:195:6 [INFO] [stdout] | [INFO] [stdout] 195 | 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: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] 195 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 196 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 207 | Litr::Buf(part) [INFO] [stdout] 208 ~ } _ => { [INFO] [stdout] 209 | if v.len()==0 {return Litr::Uninit;} [INFO] [stdout] 210 | Litr::Uint(v.remove(0) as usize) [INFO] [stdout] 211 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:398:8 [INFO] [stdout] | [INFO] [stdout] 398 | 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:403:5 [INFO] [stdout] | [INFO] [stdout] 403 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 398 ~ match &**arg1 { Litr::Bool(arg1) => { [INFO] [stdout] 399 | if *arg1 { [INFO] [stdout] ... [INFO] [stdout] 402 | } [INFO] [stdout] 403 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:414:16 [INFO] [stdout] | [INFO] [stdout] 414 | 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:418:3 [INFO] [stdout] | [INFO] [stdout] 418 | }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] 414 ~ let sep = match args.get(0) { Some(s) => { [INFO] [stdout] 415 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] 416 | panic!("buf.join第一个参数只能是字符") [INFO] [stdout] 417 | } [INFO] [stdout] 418 ~ } _ => {""}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:415:8 [INFO] [stdout] | [INFO] [stdout] 415 | 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:415:34 [INFO] [stdout] | [INFO] [stdout] 415 | 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] 415 ~ match &**s { Litr::Str(s) => {s} _ => { [INFO] [stdout] 416 | panic!("buf.join第一个参数只能是字符") [INFO] [stdout] 417 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:637:16 [INFO] [stdout] | [INFO] [stdout] 637 | Litr::Buf(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:639:3 [INFO] [stdout] | [INFO] [stdout] 639 | }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] 637 ~ Litr::Buf(match args.get(2) { Some(n) => { [INFO] [stdout] 638 | s.replacen(from, to, to_usize(n)) [INFO] [stdout] 639 ~ } _ => { [INFO] [stdout] 640 | s.replace(from, to) [INFO] [stdout] 641 ~ }}.into_bytes()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:659:6 [INFO] [stdout] | [INFO] [stdout] 659 | 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:667:3 [INFO] [stdout] | [INFO] [stdout] 667 | }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] 659 ~ match args.get(0) { Some(n) => { [INFO] [stdout] 660 | let n = to_usize(n); [INFO] [stdout] ... [INFO] [stdout] 666 | } [INFO] [stdout] 667 ~ } _ => { [INFO] [stdout] 668 | Litr::Buf(Vec::new()) [INFO] [stdout] 669 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/buf.rs:675:6 [INFO] [stdout] | [INFO] [stdout] 675 | 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:683:3 [INFO] [stdout] | [INFO] [stdout] 683 | }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] 675 ~ match args.get(0) { Some(n) => { [INFO] [stdout] 676 | let n = to_usize(n); [INFO] [stdout] ... [INFO] [stdout] 682 | } [INFO] [stdout] 683 ~ } _ => { [INFO] [stdout] 684 | Litr::Buf(Vec::new()) [INFO] [stdout] 685 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:77:6 [INFO] [stdout] | [INFO] [stdout] 77 | 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:88:3 [INFO] [stdout] | [INFO] [stdout] 88 | }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] 77 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 78 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 87 | }); [INFO] [stdout] 88 ~ } _ => { [INFO] [stdout] 89 | v.dedup(); [INFO] [stdout] 90 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:97:6 [INFO] [stdout] | [INFO] [stdout] 97 | 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:112:3 [INFO] [stdout] | [INFO] [stdout] 112 | }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] 97 ~ match args.get(0) { Some(f) => { [INFO] [stdout] 98 | let f = match &**f { [INFO] [stdout] ... [INFO] [stdout] 111 | }); [INFO] [stdout] 112 ~ } _ => { [INFO] [stdout] 113 | v.sort_unstable_by(|a,b| [INFO] [stdout] 114 | a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal)); [INFO] [stdout] 115 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:143:6 [INFO] [stdout] | [INFO] [stdout] 143 | 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:154:3 [INFO] [stdout] | [INFO] [stdout] 154 | }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] 143 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 144 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 153 | Litr::List(v.split_off(v.len() - at)) [INFO] [stdout] 154 ~ } _ => { [INFO] [stdout] 155 | match v.pop() { [INFO] [stdout] ... [INFO] [stdout] 158 | } [INFO] [stdout] 159 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:164:6 [INFO] [stdout] | [INFO] [stdout] 164 | 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:177:3 [INFO] [stdout] | [INFO] [stdout] 177 | }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] 164 ~ match args.get(0) { Some(arg0) => { [INFO] [stdout] 165 | let at = match &**arg0 { [INFO] [stdout] ... [INFO] [stdout] 176 | Litr::List(part) [INFO] [stdout] 177 ~ } _ => { [INFO] [stdout] 178 | if v.len()==0 {return Litr::Uninit;} [INFO] [stdout] 179 | v.remove(0) [INFO] [stdout] 180 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:304:8 [INFO] [stdout] | [INFO] [stdout] 304 | 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:309:5 [INFO] [stdout] | [INFO] [stdout] 309 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 304 ~ match &**arg1 { Litr::Bool(arg1) => { [INFO] [stdout] 305 | if *arg1 { [INFO] [stdout] ... [INFO] [stdout] 308 | } [INFO] [stdout] 309 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:335:16 [INFO] [stdout] | [INFO] [stdout] 335 | 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:339:3 [INFO] [stdout] | [INFO] [stdout] 339 | }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] 335 ~ let sep = match args.get(0) { Some(s) => { [INFO] [stdout] 336 | if let Litr::Str(s) = &**s {s}else { [INFO] [stdout] 337 | panic!("list.join第一个参数只能是字符") [INFO] [stdout] 338 | } [INFO] [stdout] 339 ~ } _ => {""}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:336:8 [INFO] [stdout] | [INFO] [stdout] 336 | 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:336:34 [INFO] [stdout] | [INFO] [stdout] 336 | 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] 336 ~ match &**s { Litr::Str(s) => {s} _ => { [INFO] [stdout] 337 | panic!("list.join第一个参数只能是字符") [INFO] [stdout] 338 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:485:6 [INFO] [stdout] | [INFO] [stdout] 485 | 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:497:3 [INFO] [stdout] | [INFO] [stdout] 497 | }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] 485 ~ match args.next() { Some(n) => { [INFO] [stdout] 486 | let init = if let Some(init) = args.next() { [INFO] [stdout] ... [INFO] [stdout] 496 | Litr::List(v) [INFO] [stdout] 497 ~ } _ => { [INFO] [stdout] 498 | Litr::Buf(Vec::new()) [INFO] [stdout] 499 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/list.rs:486:19 [INFO] [stdout] | [INFO] [stdout] 486 | 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:488:5 [INFO] [stdout] | [INFO] [stdout] 488 | }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] 486 ~ let init = match args.next() { Some(init) => { [INFO] [stdout] 487 | init.own() [INFO] [stdout] 488 ~ } _ => {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:511:6 [INFO] [stdout] | [INFO] [stdout] 511 | 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:513:3 [INFO] [stdout] | [INFO] [stdout] 513 | }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] 511 ~ match &**from { Litr::Buf(v) => { [INFO] [stdout] 512 | Litr::List(v.iter().map(|n|Litr::Uint(*n as usize)).collect()) [INFO] [stdout] 513 ~ } _ => {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/list.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 526 | while 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] = 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:532:3 [INFO] [stdout] | [INFO] [stdout] 532 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:115:16 [INFO] [stdout] | [INFO] [stdout] 115 | 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:119:3 [INFO] [stdout] | [INFO] [stdout] 119 | }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] 115 ~ Litr::Str(match args.get(1) { Some(len) => { [INFO] [stdout] 116 | let len = to_usize(len) - 1; [INFO] [stdout] 117 | let len = indice.nth(len).unwrap_or((s.len(),'\x00')).0; [INFO] [stdout] 118 | s.drain(index..len).collect() [INFO] [stdout] 119 ~ } _ => {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:178:6 [INFO] [stdout] | [INFO] [stdout] 178 | 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:181:3 [INFO] [stdout] | [INFO] [stdout] 181 | }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] 178 ~ match args.get(2) { Some(times) => { [INFO] [stdout] 179 | let times = to_usize(times); [INFO] [stdout] 180 | s.replacen(from, to, times) [INFO] [stdout] 181 ~ } _ => { [INFO] [stdout] 182 | s.replace(from, to) [INFO] [stdout] 183 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/kstr.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 196 | 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:202:5 [INFO] [stdout] | [INFO] [stdout] 202 | } [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 &**n { Litr::Bool(b) => { [INFO] [stdout] 197 | if *b { [INFO] [stdout] ... [INFO] [stdout] 201 | } [INFO] [stdout] 202 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:218:15 [INFO] [stdout] | [INFO] [stdout] 218 | 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:218:47 [INFO] [stdout] | [INFO] [stdout] 218 | 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] 218 | 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:221:14 [INFO] [stdout] | [INFO] [stdout] 221 | 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:221:41 [INFO] [stdout] | [INFO] [stdout] 221 | 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] 221 | 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:227:10 [INFO] [stdout] | [INFO] [stdout] 227 | 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:227:54 [INFO] [stdout] | [INFO] [stdout] 227 | 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] 227 | match &sort_str { Litr::Str(s) => { s.as_bytes() } _ => {continue;}} [INFO] [stdout] | ~~~~~ +++++++++++++++++ ~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/obj.rs:245:16 [INFO] [stdout] | [INFO] [stdout] 245 | 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:251:3 [INFO] [stdout] | [INFO] [stdout] 251 | }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] 245 ~ Litr::Obj(match args.get(0) { Some(n) => { [INFO] [stdout] 246 | HashMap::with_capacity(match &**n { [INFO] [stdout] ... [INFO] [stdout] 250 | }) [INFO] [stdout] 251 ~ } _ => {HashMap::new()}}) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/primitive/planet.rs:119:19 [INFO] [stdout] | [INFO] [stdout] 119 | let plan = if let Litr::Ninst(inst) = &*arg { [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/planet.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | }else {todo!("Planet::all需要所有参数都是Planet")}; [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 ~ let plan = match &*arg { Litr::Ninst(inst) => { [INFO] [stdout] 120 | if inst.cls == unsafe{PLANET_CLASS} { [INFO] [stdout] 121 | unsafe{&mut*(inst.v as *mut Planet)} [INFO] [stdout] 122 | }else {panic!("Planet::all需要所有参数都是Planet")} [INFO] [stdout] 123 ~ } _ => {todo!("Planet::all需要所有参数都是Planet")}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 65 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.60s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking key-lang v0.1.6 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/c.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | / extern { [INFO] [stdout] 21 | | #[link_name = "dlopen"] [INFO] [stdout] 22 | | fn dlopen_(src:*const u8, m:i32)-> *const (); [INFO] [stdout] 23 | | pub fn dlsym(lib:*const (), src:*const u8)-> *const (); [INFO] [stdout] 24 | | } [INFO] [stdout] | |___^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/c.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | / extern { [INFO] [stdout] 21 | | #[link_name = "dlopen"] [INFO] [stdout] 22 | | fn dlopen_(src:*const u8, m:i32)-> *const (); [INFO] [stdout] 23 | | pub fn dlsym(lib:*const (), src:*const u8)-> *const (); [INFO] [stdout] 24 | | } [INFO] [stdout] | |___^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/scan/stmt.rs:576:43 [INFO] [stdout] | [INFO] [stdout] 576 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 576 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/scan/stmt.rs:590:45 [INFO] [stdout] | [INFO] [stdout] 590 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 590 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/scan/stmt.rs:576:43 [INFO] [stdout] | [INFO] [stdout] 576 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 576 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/scan/stmt.rs:590:45 [INFO] [stdout] | [INFO] [stdout] 590 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 590 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/runtime/call.rs:152:42 [INFO] [stdout] | [INFO] [stdout] 152 | let mut file_path = std::mem::take(&mut crate::FILE_PATH); [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] 152 | let mut file_path = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/runtime/call.rs:152:42 [INFO] [stdout] | [INFO] [stdout] 152 | let mut file_path = std::mem::take(&mut crate::FILE_PATH); [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] 152 | let mut file_path = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/primitive/kstd.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 50 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/primitive/kstd.rs:50:39 [INFO] [stdout] | [INFO] [stdout] 50 | let mut file_dir = std::mem::take(&mut crate::FILE_PATH); [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] 50 | let mut file_dir = std::mem::take(addr_of_mut!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/primitive/mod.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | 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] 77 | if let Some(cls) = addr_of_mut!(CLASSES) { [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/utils.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | buf.push(&crate::FILE_PATH); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | buf.push(addr_of!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/primitive/mod.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | 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] 77 | 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:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | 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] 56 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/utils.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | buf.push(&crate::FILE_PATH); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 52 | buf.push(addr_of!(crate::FILE_PATH)); [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/main.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | 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] 56 | let opts = unsafe {addr_of_mut!(GLOBAL_OPTIONS)}; [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 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 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 8 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 9 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" "582956360f0e11508d1c8f2b2be3f026858c78572ac39403b5dee8c9c670df70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "582956360f0e11508d1c8f2b2be3f026858c78572ac39403b5dee8c9c670df70", kill_on_drop: false }` [INFO] [stdout] 582956360f0e11508d1c8f2b2be3f026858c78572ac39403b5dee8c9c670df70