[INFO] fetching crate cargo-config2 0.1.29... [INFO] checking cargo-config2-0.1.29 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate cargo-config2 0.1.29 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate cargo-config2 0.1.29 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 cargo-config2 0.1.29 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate cargo-config2 0.1.29 [INFO] tweaked toml for crates.io crate cargo-config2 0.1.29 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate cargo-config2 0.1.29 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f07f18e078b29bee008f9f6ba104b52e4148a17769e134575469d252a16701a5 [INFO] running `Command { std: "docker" "start" "-a" "f07f18e078b29bee008f9f6ba104b52e4148a17769e134575469d252a16701a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f07f18e078b29bee008f9f6ba104b52e4148a17769e134575469d252a16701a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f07f18e078b29bee008f9f6ba104b52e4148a17769e134575469d252a16701a5", kill_on_drop: false }` [INFO] [stdout] f07f18e078b29bee008f9f6ba104b52e4148a17769e134575469d252a16701a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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] 4393fe00e300f1f2181884cce6de6fef7d8aa63eea64aa7041c91937ac105cdd [INFO] running `Command { std: "docker" "start" "-a" "4393fe00e300f1f2181884cce6de6fef7d8aa63eea64aa7041c91937ac105cdd", 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] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling rustix v0.38.35 [INFO] [stderr] Checking winnow v0.6.18 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling build-context v0.1.2 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking shell-escape v0.1.5 [INFO] [stderr] Checking clap_builder v4.5.15 [INFO] [stderr] Compiling fs-err v2.11.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking lexopt v0.3.0 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking shared_child v1.0.1 [INFO] [stderr] Checking os_pipe v1.2.1 [INFO] [stderr] Checking duct v0.13.7 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.7 [INFO] [stderr] Checking tempfile v3.12.0 [INFO] [stderr] Checking toml_edit v0.22.20 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling clap_derive v4.5.13 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking clap v4.5.16 [INFO] [stderr] Checking cargo-config2 v0.1.29 (/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 `cargo_config2` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/cfg_expr/expr/parser.rs [INFO] [stderr] * src/cfg_expr/tests/lexer.rs [INFO] [stderr] * src/cfg_expr/tests/parser.rs [INFO] [stderr] * src/process.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/process.rs:16:6 [INFO] [stderr] | [INFO] [stderr] 16 | ($program:expr_2021 $(, $arg: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/process.rs:16:29 [INFO] [stderr] | [INFO] [stderr] 16 | ($program:expr_2021 $(, $arg: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/cfg_expr/expr/parser.rs:44:14 [INFO] [stderr] | [INFO] [stderr] 44 | ($span: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/cfg_expr/tests/lexer.rs:6:6 [INFO] [stderr] | [INFO] [stderr] 6 | ($text:expr_2021, [$($token: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/cfg_expr/tests/lexer.rs:6:26 [INFO] [stderr] | [INFO] [stderr] 6 | ($text:expr_2021, [$($token: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/cfg_expr/tests/parser.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | (ok [$($text:expr_2021 => [$($expected: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/cfg_expr/tests/parser.rs:9:34 [INFO] [stderr] | [INFO] [stderr] 9 | (ok [$($text:expr_2021 => [$($expected: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/cfg_expr/tests/parser.rs:28:6 [INFO] [stderr] | [INFO] [stderr] 28 | ($text:expr_2021 => $reason:ident @ $range: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/cfg_expr/tests/parser.rs:28:41 [INFO] [stderr] | [INFO] [stderr] 28 | ($text:expr_2021 => $reason:ident @ $range: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/cfg_expr/tests/parser.rs:37:6 [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/de.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod gen; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [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 #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/process.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | ($program:expr $(, $arg: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] 16 | ($program:expr_2021 $(, $arg:expr)* $(,)?) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 37 | ($text:expr_2021 => $unexpected:expr_2021; $range:expr_2021) => { [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/process.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | ($program:expr $(, $arg: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] 16 | ($program:expr $(, $arg: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/cfg_expr/expr/parser.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | ($span: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] 44 | ($span: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/cfg_expr/tests/lexer.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | ($text:expr, [$($token: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] 6 | ($text:expr_2021, [$($token:expr),+$(,)?]) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cfg_expr/tests/lexer.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | ($text:expr, [$($token: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] 6 | ($text:expr, [$($token:expr_2021),+$(,)?]) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cfg_expr/tests/parser.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | (ok [$($text:expr => [$($expected: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] 9 | (ok [$($text:expr_2021 => [$($expected:expr),*$(,)?]),+$(,)?]) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cfg_expr/tests/parser.rs:9:39 [INFO] [stdout] | [INFO] [stdout] 9 | (ok [$($text:expr => [$($expected: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] 9 | (ok [$($text:expr => [$($expected: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/cfg_expr/tests/parser.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | ($text:expr => $reason:ident @ $range: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] 28 | ($text:expr_2021 => $reason:ident @ $range:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cfg_expr/tests/parser.rs:28:43 [INFO] [stdout] | [INFO] [stdout] 28 | ($text:expr => $reason:ident @ $range: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] 28 | ($text:expr => $reason:ident @ $range:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/cfg_expr/tests/parser.rs:37:25 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cfg_expr/tests/parser.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | ($text:expr => $unexpected:expr; $range: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] 37 | ($text:expr_2021 => $unexpected:expr; $range:expr) => { [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/cfg_expr/tests/parser.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | ($text:expr => $unexpected:expr; $range: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] 37 | ($text:expr => $unexpected:expr_2021; $range:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 37 | ($text:expr_2021 => $unexpected:expr_2021; $range:expr_2021) => { [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cfg_expr/tests/parser.rs:37:45 [INFO] [stdout] | [INFO] [stdout] 37 | ($text:expr => $unexpected:expr; $range: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] 37 | ($text:expr => $unexpected:expr; $range:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/error.rs:87:31 [INFO] [stdout] | [INFO] [stdout] 87 | let kind = if let Some(e) = source.downcast_ref::() { [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/error.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | } else if source.downcast_ref::().is_some() { [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] 87 ~ let kind = match source.downcast_ref::() { Some(e) => { [INFO] [stdout] 88 | e.kind() [INFO] [stdout] 89 ~ } _ => if source.downcast_ref::().is_some() { [INFO] [stdout] 90 | io::ErrorKind::InvalidData [INFO] [stdout] 91 | } else { [INFO] [stdout] 92 | io::ErrorKind::Other [INFO] [stdout] 93 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | if let Some(rustc) = cx.env("RUSTC")? { [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] 122 | self.rustc = Some(rustc); [INFO] [stdout] 123 | } else if let Some(rustc) = cx.env("CARGO_BUILD_RUSTC")? { [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/env.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | } else if let Some(rustc) = cx.env("CARGO_BUILD_RUSTC")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 121 ~ match cx.env("RUSTC")? { Some(rustc) => { [INFO] [stdout] 122 | self.rustc = Some(rustc); [INFO] [stdout] 123 ~ } _ => { match cx.env("CARGO_BUILD_RUSTC")? { Some(rustc) => { [INFO] [stdout] 124 | self.rustc = Some(rustc); [INFO] [stdout] 125 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | if let Some(rustc_wrapper) = cx.env("RUSTC_WRAPPER")? { [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] 137 | } else if let Some(rustc_wrapper) = cx.env("CARGO_BUILD_RUSTC_WRAPPER")? { [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/env.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | } else if let Some(rustc_wrapper) = cx.env("CARGO_BUILD_RUSTC_WRAPPER")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 131 ~ match cx.env("RUSTC_WRAPPER")? { Some(rustc_wrapper) => { [INFO] [stdout] 132 | if rustc_wrapper.val.is_empty() { [INFO] [stdout] ... [INFO] [stdout] 136 | } [INFO] [stdout] 137 ~ } _ => { match cx.env("CARGO_BUILD_RUSTC_WRAPPER")? { Some(rustc_wrapper) => { [INFO] [stdout] 138 | if rustc_wrapper.val.is_empty() { [INFO] [stdout] ... [INFO] [stdout] 142 | } [INFO] [stdout] 143 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [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/cfg_expr/tests/parser.rs:37:48 [INFO] [stderr] | [INFO] [stderr] 37 | ($text:expr_2021 => $unexpected:expr_2021; $range: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 12 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | if let Some(rustc_workspace_wrapper) = cx.env("RUSTC_WORKSPACE_WRAPPER")? { [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] 156 | cx.env("CARGO_BUILD_RUSTC_WORKSPACE_WRAPPER")? [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/env.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | } else if let Some(rustc_workspace_wrapper) = [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 149 ~ match cx.env("RUSTC_WORKSPACE_WRAPPER")? { Some(rustc_workspace_wrapper) => { [INFO] [stdout] 150 | if rustc_workspace_wrapper.val.is_empty() { [INFO] [stdout] ... [INFO] [stdout] 154 | } [INFO] [stdout] 155 ~ } _ => { match cx.env("CARGO_BUILD_RUSTC_WORKSPACE_WRAPPER")? [INFO] [stdout] 156 ~ { Some(rustc_workspace_wrapper) => { [INFO] [stdout] 157 | if rustc_workspace_wrapper.val.is_empty() { [INFO] [stdout] ... [INFO] [stdout] 161 | } [INFO] [stdout] 162 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | if let Some(rustdoc) = cx.env("RUSTDOC")? { [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] 168 | self.rustdoc = Some(rustdoc); [INFO] [stdout] 169 | } else if let Some(rustdoc) = cx.env("CARGO_BUILD_RUSTDOC")? { [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/env.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | } else if let Some(rustdoc) = cx.env("CARGO_BUILD_RUSTDOC")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 167 ~ match cx.env("RUSTDOC")? { Some(rustdoc) => { [INFO] [stdout] 168 | self.rustdoc = Some(rustdoc); [INFO] [stdout] 169 ~ } _ => { match cx.env("CARGO_BUILD_RUSTDOC")? { Some(rustdoc) => { [INFO] [stdout] 170 | self.rustdoc = Some(rustdoc); [INFO] [stdout] 171 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | if let Some(target_dir) = cx.env("CARGO_TARGET_DIR")? { [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] 184 | self.target_dir = Some(target_dir); [INFO] [stdout] 185 | } else if let Some(target_dir) = cx.env("CARGO_BUILD_TARGET_DIR")? { [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/env.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | } else if let Some(target_dir) = cx.env("CARGO_BUILD_TARGET_DIR")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 183 ~ match cx.env("CARGO_TARGET_DIR")? { Some(target_dir) => { [INFO] [stdout] 184 | self.target_dir = Some(target_dir); [INFO] [stdout] 185 ~ } _ => { match cx.env("CARGO_BUILD_TARGET_DIR")? { Some(target_dir) => { [INFO] [stdout] 186 | self.target_dir = Some(target_dir); [INFO] [stdout] 187 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 196 | if let Some(rustflags) = cx.env("CARGO_ENCODED_RUSTFLAGS")? { [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] 199 | } else if let Some(rustflags) = cx.env("RUSTFLAGS")? { [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] 203 | } else if let Some(rustflags) = cx.env("CARGO_BUILD_RUSTFLAGS")? { [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/env.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | } else if let Some(rustflags) = cx.env("RUSTFLAGS")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | } else if let Some(rustflags) = cx.env("CARGO_BUILD_RUSTFLAGS")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | } [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 cx.env("CARGO_ENCODED_RUSTFLAGS")? { Some(rustflags) => { [INFO] [stdout] 197 | self.rustflags = Some(Flags::from_encoded(&rustflags)); [INFO] [stdout] 198 | self.override_target_rustflags = true; [INFO] [stdout] 199 ~ } _ => { match cx.env("RUSTFLAGS")? { Some(rustflags) => { [INFO] [stdout] 200 | self.rustflags = [INFO] [stdout] 201 | Some(Flags::from_space_separated(&rustflags.val, rustflags.definition.as_ref())); [INFO] [stdout] 202 | self.override_target_rustflags = true; [INFO] [stdout] 203 ~ } _ => { match cx.env("CARGO_BUILD_RUSTFLAGS")? { Some(rustflags) => { [INFO] [stdout] 204 | self.rustflags = [INFO] [stdout] 205 | Some(Flags::from_space_separated(&rustflags.val, rustflags.definition.as_ref())); [INFO] [stdout] 206 ~ } _ => {}}}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 214 | if let Some(rustdocflags) = cx.env("CARGO_ENCODED_RUSTDOCFLAGS")? { [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] 217 | } else if let Some(rustdocflags) = cx.env("RUSTDOCFLAGS")? { [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] 223 | } else if let Some(rustdocflags) = cx.env("CARGO_BUILD_RUSTDOCFLAGS")? { [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/env.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | } else if let Some(rustdocflags) = cx.env("RUSTDOCFLAGS")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | } else if let Some(rustdocflags) = cx.env("CARGO_BUILD_RUSTDOCFLAGS")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 214 ~ match cx.env("CARGO_ENCODED_RUSTDOCFLAGS")? { Some(rustdocflags) => { [INFO] [stdout] 215 | self.rustdocflags = Some(Flags::from_encoded(&rustdocflags)); [INFO] [stdout] 216 | self.override_target_rustdocflags = true; [INFO] [stdout] 217 ~ } _ => { match cx.env("RUSTDOCFLAGS")? { Some(rustdocflags) => { [INFO] [stdout] 218 | self.rustdocflags = Some(Flags::from_space_separated( [INFO] [stdout] ... [INFO] [stdout] 222 | self.override_target_rustdocflags = true; [INFO] [stdout] 223 ~ } _ => { match cx.env("CARGO_BUILD_RUSTDOCFLAGS")? { Some(rustdocflags) => { [INFO] [stdout] 224 | self.rustdocflags = Some(Flags::from_space_separated( [INFO] [stdout] ... [INFO] [stdout] 227 | )); [INFO] [stdout] 228 ~ } _ => {}}}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | if let Some(incremental) = cx.env("CARGO_INCREMENTAL")? { [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] 239 | } else if let Some(incremental) = cx.env_parse("CARGO_BUILD_INCREMENTAL")? { [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/env.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | } else if let Some(incremental) = cx.env_parse("CARGO_BUILD_INCREMENTAL")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 235 ~ match cx.env("CARGO_INCREMENTAL")? { Some(incremental) => { [INFO] [stdout] 236 | // As of cargo 1.68.0-nightly (2022-12-23), cargo handles invalid value like 0. [INFO] [stdout] 237 | self.incremental = [INFO] [stdout] 238 | Some(Value { val: incremental.val == "1", definition: incremental.definition }); [INFO] [stdout] 239 ~ } _ => { match cx.env_parse("CARGO_BUILD_INCREMENTAL")? { Some(incremental) => { [INFO] [stdout] 240 | self.incremental = Some(incremental); [INFO] [stdout] 241 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:257:16 [INFO] [stdout] | [INFO] [stdout] 257 | if let Some(browser) = cx.env("BROWSER")? { [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/env.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 257 ~ match cx.env("BROWSER")? { Some(browser) => { [INFO] [stdout] 258 | self.browser = Some( [INFO] [stdout] ... [INFO] [stdout] 261 | ); [INFO] [stdout] 262 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/resolve.rs:99:16 [INFO] [stdout] | [INFO] [stdout] 99 | if let Ok(k) = k.into().into_string() { [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/resolve.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 99 ~ match k.into().into_string() { Ok(k) => { [INFO] [stdout] 100 | if k.starts_with("CARGO") || k.starts_with("RUST") || k == "BROWSER" { [INFO] [stdout] 101 | env.insert(k, v.into()); [INFO] [stdout] 102 | } [INFO] [stdout] 103 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/resolve.rs:371:24 [INFO] [stdout] | [INFO] [stdout] 371 | if let Some(values) = key_values.get_mut(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/resolve.rs:373:21 [INFO] [stdout] | [INFO] [stdout] 373 | } 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 key_values.get_mut(name) { Some(values) => { [INFO] [stdout] 372 | values.insert(value.to_owned()); [INFO] [stdout] 373 ~ } _ => { [INFO] [stdout] 374 | let mut values = HashSet::default(); [INFO] [stdout] 375 | values.insert(value.to_owned()); [INFO] [stdout] 376 | key_values.insert(name.to_owned(), values); [INFO] [stdout] 377 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `cargo_config2` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/cfg_expr/expr/parser.rs [INFO] [stderr] * src/process.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/process.rs:16:6 [INFO] [stderr] | [INFO] [stderr] 16 | ($program:expr_2021 $(, $arg: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/process.rs:16:29 [INFO] [stderr] | [INFO] [stderr] 16 | ($program:expr_2021 $(, $arg: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/cfg_expr/expr/parser.rs:44:14 [INFO] [stderr] | [INFO] [stderr] 44 | ($span: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 3 previous errors [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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/de.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod gen; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [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 #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/process.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | ($program:expr $(, $arg: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] 16 | ($program:expr_2021 $(, $arg:expr)* $(,)?) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/process.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | ($program:expr $(, $arg: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] 16 | ($program:expr $(, $arg:expr_2021)* $(,)?) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cfg_expr/expr/parser.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | ($span: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] 44 | ($span:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/error.rs:87:31 [INFO] [stdout] | [INFO] [stdout] 87 | let kind = if let Some(e) = source.downcast_ref::() { [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/error.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | } else if source.downcast_ref::().is_some() { [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] 87 ~ let kind = match source.downcast_ref::() { Some(e) => { [INFO] [stdout] 88 | e.kind() [INFO] [stdout] 89 ~ } _ => if source.downcast_ref::().is_some() { [INFO] [stdout] 90 | io::ErrorKind::InvalidData [INFO] [stdout] 91 | } else { [INFO] [stdout] 92 | io::ErrorKind::Other [INFO] [stdout] 93 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | if let Some(rustc) = cx.env("RUSTC")? { [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] 122 | self.rustc = Some(rustc); [INFO] [stdout] 123 | } else if let Some(rustc) = cx.env("CARGO_BUILD_RUSTC")? { [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/env.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | } else if let Some(rustc) = cx.env("CARGO_BUILD_RUSTC")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 121 ~ match cx.env("RUSTC")? { Some(rustc) => { [INFO] [stdout] 122 | self.rustc = Some(rustc); [INFO] [stdout] 123 ~ } _ => { match cx.env("CARGO_BUILD_RUSTC")? { Some(rustc) => { [INFO] [stdout] 124 | self.rustc = Some(rustc); [INFO] [stdout] 125 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | if let Some(rustc_wrapper) = cx.env("RUSTC_WRAPPER")? { [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] 137 | } else if let Some(rustc_wrapper) = cx.env("CARGO_BUILD_RUSTC_WRAPPER")? { [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/env.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | } else if let Some(rustc_wrapper) = cx.env("CARGO_BUILD_RUSTC_WRAPPER")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 131 ~ match cx.env("RUSTC_WRAPPER")? { Some(rustc_wrapper) => { [INFO] [stdout] 132 | if rustc_wrapper.val.is_empty() { [INFO] [stdout] ... [INFO] [stdout] 136 | } [INFO] [stdout] 137 ~ } _ => { match cx.env("CARGO_BUILD_RUSTC_WRAPPER")? { Some(rustc_wrapper) => { [INFO] [stdout] 138 | if rustc_wrapper.val.is_empty() { [INFO] [stdout] ... [INFO] [stdout] 142 | } [INFO] [stdout] 143 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | if let Some(rustc_workspace_wrapper) = cx.env("RUSTC_WORKSPACE_WRAPPER")? { [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] 156 | cx.env("CARGO_BUILD_RUSTC_WORKSPACE_WRAPPER")? [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/env.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | } else if let Some(rustc_workspace_wrapper) = [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:163:9 [INFO] [stdout] | [INFO] [stdout] 163 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 149 ~ match cx.env("RUSTC_WORKSPACE_WRAPPER")? { Some(rustc_workspace_wrapper) => { [INFO] [stdout] 150 | if rustc_workspace_wrapper.val.is_empty() { [INFO] [stdout] ... [INFO] [stdout] 154 | } [INFO] [stdout] 155 ~ } _ => { match cx.env("CARGO_BUILD_RUSTC_WORKSPACE_WRAPPER")? [INFO] [stdout] 156 ~ { Some(rustc_workspace_wrapper) => { [INFO] [stdout] 157 | if rustc_workspace_wrapper.val.is_empty() { [INFO] [stdout] ... [INFO] [stdout] 161 | } [INFO] [stdout] 162 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | if let Some(rustdoc) = cx.env("RUSTDOC")? { [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] 168 | self.rustdoc = Some(rustdoc); [INFO] [stdout] 169 | } else if let Some(rustdoc) = cx.env("CARGO_BUILD_RUSTDOC")? { [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/env.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | } else if let Some(rustdoc) = cx.env("CARGO_BUILD_RUSTDOC")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 167 ~ match cx.env("RUSTDOC")? { Some(rustdoc) => { [INFO] [stdout] 168 | self.rustdoc = Some(rustdoc); [INFO] [stdout] 169 ~ } _ => { match cx.env("CARGO_BUILD_RUSTDOC")? { Some(rustdoc) => { [INFO] [stdout] 170 | self.rustdoc = Some(rustdoc); [INFO] [stdout] 171 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | if let Some(target_dir) = cx.env("CARGO_TARGET_DIR")? { [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] 184 | self.target_dir = Some(target_dir); [INFO] [stdout] 185 | } else if let Some(target_dir) = cx.env("CARGO_BUILD_TARGET_DIR")? { [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/env.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | } else if let Some(target_dir) = cx.env("CARGO_BUILD_TARGET_DIR")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 183 ~ match cx.env("CARGO_TARGET_DIR")? { Some(target_dir) => { [INFO] [stdout] 184 | self.target_dir = Some(target_dir); [INFO] [stdout] 185 ~ } _ => { match cx.env("CARGO_BUILD_TARGET_DIR")? { Some(target_dir) => { [INFO] [stdout] 186 | self.target_dir = Some(target_dir); [INFO] [stdout] 187 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:196:12 [INFO] [stdout] | [INFO] [stdout] 196 | if let Some(rustflags) = cx.env("CARGO_ENCODED_RUSTFLAGS")? { [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] 199 | } else if let Some(rustflags) = cx.env("RUSTFLAGS")? { [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] 203 | } else if let Some(rustflags) = cx.env("CARGO_BUILD_RUSTFLAGS")? { [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/env.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | } else if let Some(rustflags) = cx.env("RUSTFLAGS")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | } else if let Some(rustflags) = cx.env("CARGO_BUILD_RUSTFLAGS")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | } [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 cx.env("CARGO_ENCODED_RUSTFLAGS")? { Some(rustflags) => { [INFO] [stdout] 197 | self.rustflags = Some(Flags::from_encoded(&rustflags)); [INFO] [stdout] 198 | self.override_target_rustflags = true; [INFO] [stdout] 199 ~ } _ => { match cx.env("RUSTFLAGS")? { Some(rustflags) => { [INFO] [stdout] 200 | self.rustflags = [INFO] [stdout] 201 | Some(Flags::from_space_separated(&rustflags.val, rustflags.definition.as_ref())); [INFO] [stdout] 202 | self.override_target_rustflags = true; [INFO] [stdout] 203 ~ } _ => { match cx.env("CARGO_BUILD_RUSTFLAGS")? { Some(rustflags) => { [INFO] [stdout] 204 | self.rustflags = [INFO] [stdout] 205 | Some(Flags::from_space_separated(&rustflags.val, rustflags.definition.as_ref())); [INFO] [stdout] 206 ~ } _ => {}}}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 214 | if let Some(rustdocflags) = cx.env("CARGO_ENCODED_RUSTDOCFLAGS")? { [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] 217 | } else if let Some(rustdocflags) = cx.env("RUSTDOCFLAGS")? { [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] 223 | } else if let Some(rustdocflags) = cx.env("CARGO_BUILD_RUSTDOCFLAGS")? { [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/env.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | } else if let Some(rustdocflags) = cx.env("RUSTDOCFLAGS")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | } else if let Some(rustdocflags) = cx.env("CARGO_BUILD_RUSTDOCFLAGS")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 214 ~ match cx.env("CARGO_ENCODED_RUSTDOCFLAGS")? { Some(rustdocflags) => { [INFO] [stdout] 215 | self.rustdocflags = Some(Flags::from_encoded(&rustdocflags)); [INFO] [stdout] 216 | self.override_target_rustdocflags = true; [INFO] [stdout] 217 ~ } _ => { match cx.env("RUSTDOCFLAGS")? { Some(rustdocflags) => { [INFO] [stdout] 218 | self.rustdocflags = Some(Flags::from_space_separated( [INFO] [stdout] ... [INFO] [stdout] 222 | self.override_target_rustdocflags = true; [INFO] [stdout] 223 ~ } _ => { match cx.env("CARGO_BUILD_RUSTDOCFLAGS")? { Some(rustdocflags) => { [INFO] [stdout] 224 | self.rustdocflags = Some(Flags::from_space_separated( [INFO] [stdout] ... [INFO] [stdout] 227 | )); [INFO] [stdout] 228 ~ } _ => {}}}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | if let Some(incremental) = cx.env("CARGO_INCREMENTAL")? { [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] 239 | } else if let Some(incremental) = cx.env_parse("CARGO_BUILD_INCREMENTAL")? { [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/env.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | } else if let Some(incremental) = cx.env_parse("CARGO_BUILD_INCREMENTAL")? { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/env.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 235 ~ match cx.env("CARGO_INCREMENTAL")? { Some(incremental) => { [INFO] [stdout] 236 | // As of cargo 1.68.0-nightly (2022-12-23), cargo handles invalid value like 0. [INFO] [stdout] 237 | self.incremental = [INFO] [stdout] 238 | Some(Value { val: incremental.val == "1", definition: incremental.definition }); [INFO] [stdout] 239 ~ } _ => { match cx.env_parse("CARGO_BUILD_INCREMENTAL")? { Some(incremental) => { [INFO] [stdout] 240 | self.incremental = Some(incremental); [INFO] [stdout] 241 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/env.rs:257:16 [INFO] [stdout] | [INFO] [stdout] 257 | if let Some(browser) = cx.env("BROWSER")? { [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/env.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 257 ~ match cx.env("BROWSER")? { Some(browser) => { [INFO] [stdout] 258 | self.browser = Some( [INFO] [stdout] ... [INFO] [stdout] 261 | ); [INFO] [stdout] 262 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/resolve.rs:99:16 [INFO] [stdout] | [INFO] [stdout] 99 | if let Ok(k) = k.into().into_string() { [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/resolve.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 99 ~ match k.into().into_string() { Ok(k) => { [INFO] [stdout] 100 | if k.starts_with("CARGO") || k.starts_with("RUST") || k == "BROWSER" { [INFO] [stdout] 101 | env.insert(k, v.into()); [INFO] [stdout] 102 | } [INFO] [stdout] 103 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/resolve.rs:371:24 [INFO] [stdout] | [INFO] [stdout] 371 | if let Some(values) = key_values.get_mut(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/resolve.rs:373:21 [INFO] [stdout] | [INFO] [stdout] 373 | } 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 key_values.get_mut(name) { Some(values) => { [INFO] [stdout] 372 | values.insert(value.to_owned()); [INFO] [stdout] 373 ~ } _ => { [INFO] [stdout] 374 | let mut values = HashSet::default(); [INFO] [stdout] 375 | values.insert(value.to_owned()); [INFO] [stdout] 376 | key_values.insert(name.to_owned(), values); [INFO] [stdout] 377 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/test.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/get.rs from 2021 edition to 2024 [INFO] [stderr] Fixed examples/get.rs (1 fix) [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> examples/get.rs:157:15 [INFO] [stdout] | [INFO] [stdout] 157 | while let Some(arg) = parser.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] --> examples/get.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.05s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking cargo-config2 v0.1.29 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/de.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod gen; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 7 | mod r#gen; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/de.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod gen; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 7 | mod r#gen; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `cargo-config2` (lib) due to 2 previous errors [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] [stderr] error: could not compile `cargo-config2` (lib test) 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" "4393fe00e300f1f2181884cce6de6fef7d8aa63eea64aa7041c91937ac105cdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4393fe00e300f1f2181884cce6de6fef7d8aa63eea64aa7041c91937ac105cdd", kill_on_drop: false }` [INFO] [stdout] 4393fe00e300f1f2181884cce6de6fef7d8aa63eea64aa7041c91937ac105cdd