[INFO] fetching crate r4d 3.1.0... [INFO] checking r4d-3.1.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate r4d 3.1.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate r4d 3.1.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate r4d 3.1.0 [INFO] finished tweaking crates.io crate r4d 3.1.0 [INFO] tweaked toml for crates.io crate r4d 3.1.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate crates.io crate r4d 3.1.0 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] c578f8a43155228d907c0328a613c26532e8bfd7080221c4a554967d41d4f3d1 [INFO] running `Command { std: "docker" "start" "-a" "c578f8a43155228d907c0328a613c26532e8bfd7080221c4a554967d41d4f3d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c578f8a43155228d907c0328a613c26532e8bfd7080221c4a554967d41d4f3d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c578f8a43155228d907c0328a613c26532e8bfd7080221c4a554967d41d4f3d1", kill_on_drop: false }` [INFO] [stdout] c578f8a43155228d907c0328a613c26532e8bfd7080221c4a554967d41d4f3d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 38d84e2690e82b38d6d15cdc5cc1c0509100ee0e5b6cfa8fdda078f1f3858d4d [INFO] running `Command { std: "docker" "start" "-a" "38d84e2690e82b38d6d15cdc5cc1c0509100ee0e5b6cfa8fdda078f1f3858d4d", 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] Fixed Cargo.toml (6 fixes) [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking miniz_oxide v0.5.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking trexter v0.1.1 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking dcsv v0.2.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking r4d v3.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `r4d` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [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/utils.rs:22:6 [INFO] [stderr] | [INFO] [stderr] 22 | ($e: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: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/utils.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | ($e: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] 22 | ($e:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/map/function_map.rs:4005:13 [INFO] [stdout] | [INFO] [stdout] 4005 | std::env::set_var(name.as_ref(), value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [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 #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 4005 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 4006 ~ unsafe { std::env::set_var(name.as_ref(), value) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/common.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct LocalMacro { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 42 | pub level: usize, [INFO] [stdout] 43 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalMacro` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | if let Ok(option) = WriteOption::file(target_file.as_ref(), open_option) { [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/process/processor.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | } 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] 276 ~ match WriteOption::file(target_file.as_ref(), open_option) { Ok(option) => { [INFO] [stdout] 277 | self.write_option = option; [INFO] [stdout] 278 ~ } _ => { [INFO] [stdout] 279 | return Err(RadError::InvalidCommandOption(format!( [INFO] [stdout] ... [INFO] [stdout] 282 | ))); [INFO] [stdout] 283 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | if let Ok(file) = WriteOption::file(target_file.as_ref(), file) { [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/process/processor.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 314 ~ match WriteOption::file(target_file.as_ref(), file) { Ok(file) => { [INFO] [stdout] 315 | self.logger.set_write_option(Some(file)); [INFO] [stdout] 316 ~ } _ => { [INFO] [stdout] 317 | return Err(RadError::InvalidCommandOption(format!( [INFO] [stdout] ... [INFO] [stdout] 320 | ))); [INFO] [stdout] 321 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:748:23 [INFO] [stdout] | [INFO] [stdout] 748 | let path = if let Some(file) = out_file { [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/process/processor.rs:750:9 [INFO] [stdout] | [INFO] [stdout] 750 | } 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] 748 ~ let path = match out_file { Some(file) => { [INFO] [stdout] 749 | file.as_ref().to_owned() [INFO] [stdout] 750 ~ } _ => { [INFO] [stdout] 751 | PathBuf::from("out.r4c") [INFO] [stdout] 752 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:986:12 [INFO] [stdout] | [INFO] [stdout] 986 | if let Some(storage) = self.storage.as_mut() { [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/process/processor.rs:991:9 [INFO] [stdout] | [INFO] [stdout] 991 | } 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] 986 ~ match self.storage.as_mut() { Some(storage) => { [INFO] [stdout] 987 | match storage.extract(serialize) { [INFO] [stdout] ... [INFO] [stdout] 990 | } [INFO] [stdout] 991 ~ } _ => { [INFO] [stdout] 992 | Ok(None) [INFO] [stdout] 993 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:1542:12 [INFO] [stdout] | [INFO] [stdout] 1542 | if let Some(line) = lines.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/process/processor.rs:1603:9 [INFO] [stdout] | [INFO] [stdout] 1603 | } 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] 1542 ~ match lines.next() { Some(line) => { [INFO] [stdout] 1543 | self.logger.inc_line_number(); [INFO] [stdout] ... [INFO] [stdout] 1602 | } [INFO] [stdout] 1603 ~ } _ => { [INFO] [stdout] 1604 | Ok(ParseResult::Eoi) [INFO] [stdout] 1605 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:1976:16 [INFO] [stdout] | [INFO] [stdout] 1976 | if let Some(func) = self.map.deterred.get_deterred_macro(name) { [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/process/processor.rs:1987:13 [INFO] [stdout] | [INFO] [stdout] 1987 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1976 ~ match self.map.deterred.get_deterred_macro(name) { Some(func) => { [INFO] [stdout] 1977 | // On dry run, macro is not expanded but only checks if found macro exists [INFO] [stdout] ... [INFO] [stdout] 1986 | return Ok(final_result); [INFO] [stdout] 1987 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:2924:12 [INFO] [stdout] | [INFO] [stdout] 2924 | if let Some(mac) = self.map.runtime.get_mut(macro_name, Hygiene::None) { [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/process/processor.rs:2927:9 [INFO] [stdout] | [INFO] [stdout] 2927 | } 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] 2924 ~ match self.map.runtime.get_mut(macro_name, Hygiene::None) { Some(mac) => { [INFO] [stdout] 2925 | mac.desc = Some(content.to_owned()); [INFO] [stdout] 2926 | true [INFO] [stdout] 2927 ~ } _ => { [INFO] [stdout] 2928 | false [INFO] [stdout] 2929 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:3353:12 [INFO] [stdout] | [INFO] [stdout] 3353 | if let Err(err) = result { [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/process/processor.rs:3359:9 [INFO] [stdout] | [INFO] [stdout] 3359 | } 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] 3353 ~ match result { Err(err) => { [INFO] [stdout] 3354 | Err(RadError::BincodeError(format!( [INFO] [stdout] ... [INFO] [stdout] 3358 | ))) [INFO] [stdout] 3359 ~ } _ => { [INFO] [stdout] 3360 | self.rules.extend(result.unwrap().rules.into_iter()); [INFO] [stdout] 3361 | Ok(()) [INFO] [stdout] 3362 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:3368:12 [INFO] [stdout] | [INFO] [stdout] 3368 | if let Ok(rule_file) = result { [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/process/processor.rs:3371:9 [INFO] [stdout] | [INFO] [stdout] 3371 | } 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] 3368 ~ match result { Ok(rule_file) => { [INFO] [stdout] 3369 | self.rules.extend(rule_file.rules.into_iter()); [INFO] [stdout] 3370 | Ok(()) [INFO] [stdout] 3371 ~ } _ => { [INFO] [stdout] 3372 | Err(RadError::BincodeError( [INFO] [stdout] 3373 | "Failed to melt the literal value".to_string(), [INFO] [stdout] 3374 | )) [INFO] [stdout] 3375 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/deterred_map.rs:1215:19 [INFO] [stdout] | [INFO] [stdout] 1215 | } else if let Ok(body) = p.get_runtime_macro_body(¯o_name) { [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/map/deterred_map.rs:1217:9 [INFO] [stdout] | [INFO] [stdout] 1217 | } 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] 1215 ~ } else { match p.get_runtime_macro_body(¯o_name) { Ok(body) => { [INFO] [stdout] 1216 | body.to_string() [INFO] [stdout] 1217 ~ } _ => { [INFO] [stdout] 1218 | return Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 1221 | ))); [INFO] [stdout] 1222 ~ }}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/deterred_map.rs:1240:16 [INFO] [stdout] | [INFO] [stdout] 1240 | if let Ok(cond) = cond { [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/map/deterred_map.rs:1245:13 [INFO] [stdout] | [INFO] [stdout] 1245 | } 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] 1240 ~ match cond { Ok(cond) => { [INFO] [stdout] 1241 | if cond { [INFO] [stdout] ... [INFO] [stdout] 1244 | } [INFO] [stdout] 1245 ~ } _ => { [INFO] [stdout] 1246 | return Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 1249 | ))); [INFO] [stdout] 1250 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/deterred_map.rs:1274:16 [INFO] [stdout] | [INFO] [stdout] 1274 | if let Ok(cond) = cond { [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/map/deterred_map.rs:1279:13 [INFO] [stdout] | [INFO] [stdout] 1279 | } 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] 1274 ~ match cond { Ok(cond) => { [INFO] [stdout] 1275 | if cond { [INFO] [stdout] ... [INFO] [stdout] 1278 | } [INFO] [stdout] 1279 ~ } _ => { [INFO] [stdout] 1280 | return Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 1283 | ))); [INFO] [stdout] 1284 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:3288:16 [INFO] [stdout] | [INFO] [stdout] 3288 | if let Ok(value) = Utils::is_arg_true(args) { [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/map/function_map.rs:3290:13 [INFO] [stdout] | [INFO] [stdout] 3290 | } 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] 3288 ~ match Utils::is_arg_true(args) { Ok(value) => { [INFO] [stdout] 3289 | Ok(Some((!value).to_string())) [INFO] [stdout] 3290 ~ } _ => { [INFO] [stdout] 3291 | Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 3294 | ))) [INFO] [stdout] 3295 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:4263:23 [INFO] [stdout] | [INFO] [stdout] 4263 | } else if let Some(pipe) = processor.state.get_pipe(&args[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/map/function_map.rs:4265:13 [INFO] [stdout] | [INFO] [stdout] 4265 | } 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] 4263 ~ } else { match processor.state.get_pipe(&args[0]) { Some(pipe) => { [INFO] [stdout] 4264 | Some(pipe) [INFO] [stdout] 4265 ~ } _ => { [INFO] [stdout] 4266 | processor.log_warning( [INFO] [stdout] ... [INFO] [stdout] 4270 | None [INFO] [stdout] 4271 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:4595:16 [INFO] [stdout] | [INFO] [stdout] 4595 | if let Ok(truncate) = Utils::is_arg_true(&truncate) { [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/map/function_map.rs:4623:13 [INFO] [stdout] | [INFO] [stdout] 4623 | } 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] 4595 ~ match Utils::is_arg_true(&truncate) { Ok(truncate) => { [INFO] [stdout] 4596 | // This doesn't use canonicalize, because fileout can write file to non-existent [INFO] [stdout] ... [INFO] [stdout] 4622 | Ok(None) [INFO] [stdout] 4623 ~ } _ => { [INFO] [stdout] 4624 | Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 4627 | ))) [INFO] [stdout] 4628 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:5490:16 [INFO] [stdout] | [INFO] [stdout] 5490 | if let Some(num) = captured.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/map/function_map.rs:5492:13 [INFO] [stdout] | [INFO] [stdout] 5492 | } 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] 5490 ~ match captured.get(0) { Some(num) => { [INFO] [stdout] 5491 | Ok(Some(num.as_str().to_owned())) [INFO] [stdout] 5492 ~ } _ => { [INFO] [stdout] 5493 | Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 5496 | ))) [INFO] [stdout] 5497 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:5934:16 [INFO] [stdout] | [INFO] [stdout] 5934 | if let Ok(value) = Utils::is_arg_true(&args[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/map/function_map.rs:5937:13 [INFO] [stdout] | [INFO] [stdout] 5937 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 5934 ~ match Utils::is_arg_true(&args[0]) { Ok(value) => { [INFO] [stdout] 5935 | processor.toggle_hygiene(value); [INFO] [stdout] 5936 | Ok(None) [INFO] [stdout] 5937 ~ } _ => { [INFO] [stdout] 5938 | Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 5941 | ))) [INFO] [stdout] 5942 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:5962:16 [INFO] [stdout] | [INFO] [stdout] 5962 | if let Ok(value) = Utils::is_arg_true(&args[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/map/function_map.rs:5965:13 [INFO] [stdout] | [INFO] [stdout] 5965 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 5962 ~ match Utils::is_arg_true(&args[0]) { Ok(value) => { [INFO] [stdout] 5963 | processor.state.paused = value; [INFO] [stdout] 5964 | Ok(None) [INFO] [stdout] 5965 ~ } _ => { [INFO] [stdout] 5966 | Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 5969 | ))) [INFO] [stdout] 5970 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:6518:12 [INFO] [stdout] | [INFO] [stdout] 6518 | if let Some(storage) = processor.storage.as_mut() { [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/map/function_map.rs:6522:9 [INFO] [stdout] | [INFO] [stdout] 6522 | } 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] 6518 ~ match processor.storage.as_mut() { Some(storage) => { [INFO] [stdout] 6519 | if let Err(err) = storage.update(&args) { [INFO] [stdout] 6520 | return Err(RadError::StorageError(format!("Update error : {}", err))); [INFO] [stdout] 6521 | } [INFO] [stdout] 6522 ~ } _ => { [INFO] [stdout] 6523 | processor.log_warning("Empty storage, update didn't trigger", WarningType::Sanity)?; [INFO] [stdout] 6524 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:6519:16 [INFO] [stdout] | [INFO] [stdout] 6519 | if let Err(err) = storage.update(&args) { [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/map/function_map.rs:6521:13 [INFO] [stdout] | [INFO] [stdout] 6521 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 6519 ~ match storage.update(&args) { Err(err) => { [INFO] [stdout] 6520 | return Err(RadError::StorageError(format!("Update error : {}", err))); [INFO] [stdout] 6521 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:6535:12 [INFO] [stdout] | [INFO] [stdout] 6535 | if let Some(storage) = processor.storage.as_mut() { [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/map/function_map.rs:6546:9 [INFO] [stdout] | [INFO] [stdout] 6546 | } 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] 6535 ~ match processor.storage.as_mut() { Some(storage) => { [INFO] [stdout] 6536 | match storage.extract(false) { [INFO] [stdout] ... [INFO] [stdout] 6545 | } [INFO] [stdout] 6546 ~ } _ => { [INFO] [stdout] 6547 | Err(RadError::StorageError(String::from("Empty storage"))) [INFO] [stdout] 6548 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/logger.rs:371:12 [INFO] [stdout] | [INFO] [stdout] 371 | if let Some(option) = &mut self.write_option { [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/logger.rs:417:9 [INFO] [stdout] | [INFO] [stdout] 417 | } 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] 371 ~ match &mut self.write_option { Some(option) => { [INFO] [stdout] 372 | // There is either error or warning [INFO] [stdout] ... [INFO] [stdout] 416 | } [INFO] [stdout] 417 ~ } _ => { [INFO] [stdout] 418 | // Silent option [INFO] [stdout] 419 | // Do nothing [INFO] [stdout] 420 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/rad.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/bin/rado.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `r4d` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/test.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/utils.rs:22:6 [INFO] [stderr] | [INFO] [stderr] 22 | ($e: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: unused variable: `serialize` [INFO] [stderr] --> src/test.rs:13:27 [INFO] [stderr] | [INFO] [stderr] 13 | fn extract(&mut self, serialize: bool) -> crate::StorageResult> { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_serialize` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/utils.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | ($e: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] 22 | ($e:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StorageOutput` [INFO] [stdout] --> src/test.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{RadError, RadResult, RadStorage, StorageOutput, StorageResult}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/map/function_map.rs:4005:13 [INFO] [stdout] | [INFO] [stdout] 4005 | std::env::set_var(name.as_ref(), value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [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 #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 4005 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 4006 ~ unsafe { std::env::set_var(name.as_ref(), value) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `serialize` [INFO] [stdout] --> src/test.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | fn extract(&mut self, serialize: bool) -> crate::StorageResult> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_serialize` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/common.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct LocalMacro { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 42 | pub level: usize, [INFO] [stdout] 43 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalMacro` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:276:12 [INFO] [stdout] | [INFO] [stdout] 276 | if let Ok(option) = WriteOption::file(target_file.as_ref(), open_option) { [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/process/processor.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | } 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] 276 ~ match WriteOption::file(target_file.as_ref(), open_option) { Ok(option) => { [INFO] [stdout] 277 | self.write_option = option; [INFO] [stdout] 278 ~ } _ => { [INFO] [stdout] 279 | return Err(RadError::InvalidCommandOption(format!( [INFO] [stdout] ... [INFO] [stdout] 282 | ))); [INFO] [stdout] 283 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 314 | if let Ok(file) = WriteOption::file(target_file.as_ref(), file) { [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/process/processor.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 314 ~ match WriteOption::file(target_file.as_ref(), file) { Ok(file) => { [INFO] [stdout] 315 | self.logger.set_write_option(Some(file)); [INFO] [stdout] 316 ~ } _ => { [INFO] [stdout] 317 | return Err(RadError::InvalidCommandOption(format!( [INFO] [stdout] ... [INFO] [stdout] 320 | ))); [INFO] [stdout] 321 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:748:23 [INFO] [stdout] | [INFO] [stdout] 748 | let path = if let Some(file) = out_file { [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/process/processor.rs:750:9 [INFO] [stdout] | [INFO] [stdout] 750 | } 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] 748 ~ let path = match out_file { Some(file) => { [INFO] [stdout] 749 | file.as_ref().to_owned() [INFO] [stdout] 750 ~ } _ => { [INFO] [stdout] 751 | PathBuf::from("out.r4c") [INFO] [stdout] 752 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:986:12 [INFO] [stdout] | [INFO] [stdout] 986 | if let Some(storage) = self.storage.as_mut() { [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/process/processor.rs:991:9 [INFO] [stdout] | [INFO] [stdout] 991 | } 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] 986 ~ match self.storage.as_mut() { Some(storage) => { [INFO] [stdout] 987 | match storage.extract(serialize) { [INFO] [stdout] ... [INFO] [stdout] 990 | } [INFO] [stdout] 991 ~ } _ => { [INFO] [stdout] 992 | Ok(None) [INFO] [stdout] 993 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:1542:12 [INFO] [stdout] | [INFO] [stdout] 1542 | if let Some(line) = lines.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/process/processor.rs:1603:9 [INFO] [stdout] | [INFO] [stdout] 1603 | } 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] 1542 ~ match lines.next() { Some(line) => { [INFO] [stdout] 1543 | self.logger.inc_line_number(); [INFO] [stdout] ... [INFO] [stdout] 1602 | } [INFO] [stdout] 1603 ~ } _ => { [INFO] [stdout] 1604 | Ok(ParseResult::Eoi) [INFO] [stdout] 1605 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:1976:16 [INFO] [stdout] | [INFO] [stdout] 1976 | if let Some(func) = self.map.deterred.get_deterred_macro(name) { [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/process/processor.rs:1987:13 [INFO] [stdout] | [INFO] [stdout] 1987 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1976 ~ match self.map.deterred.get_deterred_macro(name) { Some(func) => { [INFO] [stdout] 1977 | // On dry run, macro is not expanded but only checks if found macro exists [INFO] [stdout] ... [INFO] [stdout] 1986 | return Ok(final_result); [INFO] [stdout] 1987 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:2924:12 [INFO] [stdout] | [INFO] [stdout] 2924 | if let Some(mac) = self.map.runtime.get_mut(macro_name, Hygiene::None) { [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/process/processor.rs:2927:9 [INFO] [stdout] | [INFO] [stdout] 2927 | } 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] 2924 ~ match self.map.runtime.get_mut(macro_name, Hygiene::None) { Some(mac) => { [INFO] [stdout] 2925 | mac.desc = Some(content.to_owned()); [INFO] [stdout] 2926 | true [INFO] [stdout] 2927 ~ } _ => { [INFO] [stdout] 2928 | false [INFO] [stdout] 2929 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:3353:12 [INFO] [stdout] | [INFO] [stdout] 3353 | if let Err(err) = result { [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/process/processor.rs:3359:9 [INFO] [stdout] | [INFO] [stdout] 3359 | } 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] 3353 ~ match result { Err(err) => { [INFO] [stdout] 3354 | Err(RadError::BincodeError(format!( [INFO] [stdout] ... [INFO] [stdout] 3358 | ))) [INFO] [stdout] 3359 ~ } _ => { [INFO] [stdout] 3360 | self.rules.extend(result.unwrap().rules.into_iter()); [INFO] [stdout] 3361 | Ok(()) [INFO] [stdout] 3362 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/process/processor.rs:3368:12 [INFO] [stdout] | [INFO] [stdout] 3368 | if let Ok(rule_file) = result { [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/process/processor.rs:3371:9 [INFO] [stdout] | [INFO] [stdout] 3371 | } 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] 3368 ~ match result { Ok(rule_file) => { [INFO] [stdout] 3369 | self.rules.extend(rule_file.rules.into_iter()); [INFO] [stdout] 3370 | Ok(()) [INFO] [stdout] 3371 ~ } _ => { [INFO] [stdout] 3372 | Err(RadError::BincodeError( [INFO] [stdout] 3373 | "Failed to melt the literal value".to_string(), [INFO] [stdout] 3374 | )) [INFO] [stdout] 3375 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/deterred_map.rs:1215:19 [INFO] [stdout] | [INFO] [stdout] 1215 | } else if let Ok(body) = p.get_runtime_macro_body(¯o_name) { [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/map/deterred_map.rs:1217:9 [INFO] [stdout] | [INFO] [stdout] 1217 | } 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] 1215 ~ } else { match p.get_runtime_macro_body(¯o_name) { Ok(body) => { [INFO] [stdout] 1216 | body.to_string() [INFO] [stdout] 1217 ~ } _ => { [INFO] [stdout] 1218 | return Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 1221 | ))); [INFO] [stdout] 1222 ~ }}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/deterred_map.rs:1240:16 [INFO] [stdout] | [INFO] [stdout] 1240 | if let Ok(cond) = cond { [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/map/deterred_map.rs:1245:13 [INFO] [stdout] | [INFO] [stdout] 1245 | } 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] 1240 ~ match cond { Ok(cond) => { [INFO] [stdout] 1241 | if cond { [INFO] [stdout] ... [INFO] [stdout] 1244 | } [INFO] [stdout] 1245 ~ } _ => { [INFO] [stdout] 1246 | return Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 1249 | ))); [INFO] [stdout] 1250 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/deterred_map.rs:1274:16 [INFO] [stdout] | [INFO] [stdout] 1274 | if let Ok(cond) = cond { [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/map/deterred_map.rs:1279:13 [INFO] [stdout] | [INFO] [stdout] 1279 | } 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] 1274 ~ match cond { Ok(cond) => { [INFO] [stdout] 1275 | if cond { [INFO] [stdout] ... [INFO] [stdout] 1278 | } [INFO] [stdout] 1279 ~ } _ => { [INFO] [stdout] 1280 | return Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 1283 | ))); [INFO] [stdout] 1284 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:3288:16 [INFO] [stdout] | [INFO] [stdout] 3288 | if let Ok(value) = Utils::is_arg_true(args) { [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/map/function_map.rs:3290:13 [INFO] [stdout] | [INFO] [stdout] 3290 | } 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] 3288 ~ match Utils::is_arg_true(args) { Ok(value) => { [INFO] [stdout] 3289 | Ok(Some((!value).to_string())) [INFO] [stdout] 3290 ~ } _ => { [INFO] [stdout] 3291 | Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 3294 | ))) [INFO] [stdout] 3295 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:4263:23 [INFO] [stdout] | [INFO] [stdout] 4263 | } else if let Some(pipe) = processor.state.get_pipe(&args[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/map/function_map.rs:4265:13 [INFO] [stdout] | [INFO] [stdout] 4265 | } 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] 4263 ~ } else { match processor.state.get_pipe(&args[0]) { Some(pipe) => { [INFO] [stdout] 4264 | Some(pipe) [INFO] [stdout] 4265 ~ } _ => { [INFO] [stdout] 4266 | processor.log_warning( [INFO] [stdout] ... [INFO] [stdout] 4270 | None [INFO] [stdout] 4271 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:4595:16 [INFO] [stdout] | [INFO] [stdout] 4595 | if let Ok(truncate) = Utils::is_arg_true(&truncate) { [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/map/function_map.rs:4623:13 [INFO] [stdout] | [INFO] [stdout] 4623 | } 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] 4595 ~ match Utils::is_arg_true(&truncate) { Ok(truncate) => { [INFO] [stdout] 4596 | // This doesn't use canonicalize, because fileout can write file to non-existent [INFO] [stdout] ... [INFO] [stdout] 4622 | Ok(None) [INFO] [stdout] 4623 ~ } _ => { [INFO] [stdout] 4624 | Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 4627 | ))) [INFO] [stdout] 4628 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:5490:16 [INFO] [stdout] | [INFO] [stdout] 5490 | if let Some(num) = captured.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/map/function_map.rs:5492:13 [INFO] [stdout] | [INFO] [stdout] 5492 | } 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] 5490 ~ match captured.get(0) { Some(num) => { [INFO] [stdout] 5491 | Ok(Some(num.as_str().to_owned())) [INFO] [stdout] 5492 ~ } _ => { [INFO] [stdout] 5493 | Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 5496 | ))) [INFO] [stdout] 5497 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:5934:16 [INFO] [stdout] | [INFO] [stdout] 5934 | if let Ok(value) = Utils::is_arg_true(&args[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/map/function_map.rs:5937:13 [INFO] [stdout] | [INFO] [stdout] 5937 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 5934 ~ match Utils::is_arg_true(&args[0]) { Ok(value) => { [INFO] [stdout] 5935 | processor.toggle_hygiene(value); [INFO] [stdout] 5936 | Ok(None) [INFO] [stdout] 5937 ~ } _ => { [INFO] [stdout] 5938 | Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 5941 | ))) [INFO] [stdout] 5942 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:5962:16 [INFO] [stdout] | [INFO] [stdout] 5962 | if let Ok(value) = Utils::is_arg_true(&args[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/map/function_map.rs:5965:13 [INFO] [stdout] | [INFO] [stdout] 5965 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 5962 ~ match Utils::is_arg_true(&args[0]) { Ok(value) => { [INFO] [stdout] 5963 | processor.state.paused = value; [INFO] [stdout] 5964 | Ok(None) [INFO] [stdout] 5965 ~ } _ => { [INFO] [stdout] 5966 | Err(RadError::InvalidArgument(format!( [INFO] [stdout] ... [INFO] [stdout] 5969 | ))) [INFO] [stdout] 5970 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:6518:12 [INFO] [stdout] | [INFO] [stdout] 6518 | if let Some(storage) = processor.storage.as_mut() { [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/map/function_map.rs:6522:9 [INFO] [stdout] | [INFO] [stdout] 6522 | } 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] 6518 ~ match processor.storage.as_mut() { Some(storage) => { [INFO] [stdout] 6519 | if let Err(err) = storage.update(&args) { [INFO] [stdout] 6520 | return Err(RadError::StorageError(format!("Update error : {}", err))); [INFO] [stdout] 6521 | } [INFO] [stdout] 6522 ~ } _ => { [INFO] [stdout] 6523 | processor.log_warning("Empty storage, update didn't trigger", WarningType::Sanity)?; [INFO] [stdout] 6524 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:6519:16 [INFO] [stdout] | [INFO] [stdout] 6519 | if let Err(err) = storage.update(&args) { [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/map/function_map.rs:6521:13 [INFO] [stdout] | [INFO] [stdout] 6521 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 6519 ~ match storage.update(&args) { Err(err) => { [INFO] [stdout] 6520 | return Err(RadError::StorageError(format!("Update error : {}", err))); [INFO] [stdout] 6521 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/map/function_map.rs:6535:12 [INFO] [stdout] | [INFO] [stdout] 6535 | if let Some(storage) = processor.storage.as_mut() { [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/map/function_map.rs:6546:9 [INFO] [stdout] | [INFO] [stdout] 6546 | } 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] 6535 ~ match processor.storage.as_mut() { Some(storage) => { [INFO] [stdout] 6536 | match storage.extract(false) { [INFO] [stdout] ... [INFO] [stdout] 6545 | } [INFO] [stdout] 6546 ~ } _ => { [INFO] [stdout] 6547 | Err(RadError::StorageError(String::from("Empty storage"))) [INFO] [stdout] 6548 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/logger.rs:371:12 [INFO] [stdout] | [INFO] [stdout] 371 | if let Some(option) = &mut self.write_option { [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/logger.rs:417:9 [INFO] [stdout] | [INFO] [stdout] 417 | } 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] 371 ~ match &mut self.write_option { Some(option) => { [INFO] [stdout] 372 | // There is either error or warning [INFO] [stdout] ... [INFO] [stdout] 416 | } [INFO] [stdout] 417 ~ } _ => { [INFO] [stdout] 418 | // Silent option [INFO] [stdout] 419 | // Do nothing [INFO] [stdout] 420 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.94s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking r4d v3.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `StorageOutput` [INFO] [stdout] --> src/test.rs:1:46 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{RadError, RadResult, RadStorage, StorageOutput, StorageResult}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/map/function_map.rs:4005:13 [INFO] [stdout] | [INFO] [stdout] 4005 | std::env::set_var(name.as_ref(), value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/map/function_map.rs:4005:13 [INFO] [stdout] | [INFO] [stdout] 4005 | std::env::set_var(name.as_ref(), value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `serialize` [INFO] [stdout] --> src/test.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | fn extract(&mut self, serialize: bool) -> crate::StorageResult> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_serialize` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `r4d` (lib test) due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `r4d` (lib) due to 2 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" "38d84e2690e82b38d6d15cdc5cc1c0509100ee0e5b6cfa8fdda078f1f3858d4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38d84e2690e82b38d6d15cdc5cc1c0509100ee0e5b6cfa8fdda078f1f3858d4d", kill_on_drop: false }` [INFO] [stdout] 38d84e2690e82b38d6d15cdc5cc1c0509100ee0e5b6cfa8fdda078f1f3858d4d