[INFO] fetching crate ribir_macros 0.4.0-alpha.8... [INFO] checking ribir_macros-0.4.0-alpha.8 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate ribir_macros 0.4.0-alpha.8 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate ribir_macros 0.4.0-alpha.8 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 ribir_macros 0.4.0-alpha.8 [INFO] finished tweaking crates.io crate ribir_macros 0.4.0-alpha.8 [INFO] tweaked toml for crates.io crate ribir_macros 0.4.0-alpha.8 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 84 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding float-cmp v0.9.0 (available: v0.10.0) [INFO] [stderr] Adding imagesize v0.12.0 (available: v0.13.0) [INFO] [stderr] Adding kurbo v0.9.5 (available: v0.11.1) [INFO] [stderr] Adding rctree v0.5.0 (available: v0.6.0) [INFO] [stderr] Adding roxmltree v0.18.1 (available: v0.20.0) [INFO] [stderr] Adding siphasher v0.3.11 (available: v1.0.1) [INFO] [stderr] Adding strict-num v0.1.1 (available: v0.2.0) [INFO] [stderr] Adding svgtypes v0.12.0 (available: v0.15.2) [INFO] [stderr] Adding usvg v0.36.0 (available: v0.43.0) [INFO] [stderr] Adding usvg-parser v0.36.0 (available: v0.38.0) [INFO] [stderr] Adding usvg-tree v0.36.0 (available: v0.38.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 8482366f4d322613fa7ccd4cdb84bc9a505a333bb3ecb65e9eb55ee6f289a3d4 [INFO] running `Command { std: "docker" "start" "-a" "8482366f4d322613fa7ccd4cdb84bc9a505a333bb3ecb65e9eb55ee6f289a3d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8482366f4d322613fa7ccd4cdb84bc9a505a333bb3ecb65e9eb55ee6f289a3d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8482366f4d322613fa7ccd4cdb84bc9a505a333bb3ecb65e9eb55ee6f289a3d4", kill_on_drop: false }` [INFO] [stdout] 8482366f4d322613fa7ccd4cdb84bc9a505a333bb3ecb65e9eb55ee6f289a3d4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 2e80dad96bfce8ffe31162309a06130fcc42110ce0728f08f43eff12784c2b07 [INFO] running `Command { std: "docker" "start" "-a" "2e80dad96bfce8ffe31162309a06130fcc42110ce0728f08f43eff12784c2b07", 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 syn v2.0.77 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking libc v0.2.159 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking kurbo v0.9.5 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking strict-num v0.1.1 [INFO] [stderr] Checking bytemuck v1.18.0 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking rctree v0.5.0 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking xmlparser v0.13.6 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Checking svgtypes v0.12.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking flate2 v1.0.34 [INFO] [stderr] Checking roxmltree v0.18.1 [INFO] [stderr] Checking simplecss v0.2.1 [INFO] [stderr] Checking data-url v0.3.1 [INFO] [stderr] Checking imagesize v0.12.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking usvg-tree v0.36.0 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking pico-args v0.5.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking xmlwriter v0.1.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking usvg-parser v0.36.0 [INFO] [stderr] Checking usvg v0.36.0 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Checking material-color-utilities-rs v0.2.1 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking euclid v0.22.11 [INFO] [stderr] Checking triomphe v0.1.13 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking ordered-float v4.3.0 [INFO] [stderr] Checking ribir_algo v0.4.0-alpha.10 [INFO] [stderr] Checking lyon_geom v1.0.5 [INFO] [stderr] Checking ribir_geom v0.4.0-alpha.10 [INFO] [stderr] Checking lyon_path v1.0.5 [INFO] [stderr] Checking lyon_algorithms v1.0.4 [INFO] [stderr] Checking ribir_painter v0.4.0-alpha.10 [INFO] [stderr] Checking ribir_macros v0.4.0-alpha.8 (/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 `ribir_macros` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.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/lib.rs:26:4 [INFO] [stderr] | [INFO] [stderr] 26 | ($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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | let mut gen = generics.clone(); [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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 13 | gen.params.push(parse_quote!('_c)); [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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | gen.params.push(parse_quote!(_C)); [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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | let predicates = &mut 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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | 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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | let gen = with_child_generics(generics, ty, m); [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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 74 | let (g_impl, _, g_where) = gen.split_for_impl(); [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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:194:19 [INFO] [stdout] | [INFO] [stdout] 194 | let gen = with_child_generics(generics, ty, m); [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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:195:42 [INFO] [stdout] | [INFO] [stdout] 195 | let (g_impl, _, g_where) = gen.split_for_impl(); [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] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | ($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] 26 | ($e:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/declare_derive.rs:574:10 [INFO] [stdout] | [INFO] [stdout] 574 | if let Some(df) = f.default_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/declare_derive.rs:581:7 [INFO] [stdout] | [INFO] [stdout] 581 | } 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] 574 ~ match f.default_value() { Some(df) => { [INFO] [stdout] 575 | quote! { [INFO] [stdout] ... [INFO] [stdout] 580 | } [INFO] [stdout] 581 ~ } _ => { [INFO] [stdout] 582 | let err = format!("Required field `{stt_name}::{f_name}` not set"); [INFO] [stdout] 583 | quote! { self.#f_name.take().expect(#err).unzip() } [INFO] [stdout] 584 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/child_template.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | let field_name = if let Some(name) = f.ident.as_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/child_template.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | } 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] 63 ~ let field_name = match f.ident.as_ref() { Some(name) => { [INFO] [stdout] 64 | quote! {#name} [INFO] [stdout] 65 ~ } _ => { [INFO] [stdout] 66 | let f_idx = Index::from(f_idx); [INFO] [stdout] 67 | quote!(#f_idx) [INFO] [stdout] 68 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/child_template.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | if let Fields::Unnamed(FieldsUnnamed { unnamed, .. }) = &v.fields { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/child_template.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 186 ~ match &v.fields { Fields::Unnamed(FieldsUnnamed { unnamed, .. }) => { [INFO] [stdout] 187 | // only the enum variant has a single type need to implement fill convert. [INFO] [stdout] ... [INFO] [stdout] 209 | } [INFO] [stdout] 210 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/rdl_macro.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | if let Err(err) = obj.error_check() { [INFO] [stdout] | ^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/rdl_macro.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | } 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] 82 ~ match obj.error_check() { Err(err) => { [INFO] [stdout] 83 | err.to_compile_error().into() [INFO] [stdout] 84 ~ } _ => { [INFO] [stdout] 85 | obj.to_token_stream().into() [INFO] [stdout] 86 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/simple_declare_attr.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | if let Some(DefaultMeta { value: Some(ref value), .. }) = attr.default.as_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/simple_declare_attr.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | } else if attr.default.is_some() || attr.skip.is_some() { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 170 ~ match attr.default.as_ref() { Some(DefaultMeta { value: Some(ref value), .. }) => { [INFO] [stdout] 171 | Some(quote! { From::from(#value) }) [INFO] [stdout] 172 ~ } _ => if attr.default.is_some() || attr.skip.is_some() { [INFO] [stdout] 173 | Some(quote! { <_>::default() }) [INFO] [stdout] 174 | } else { [INFO] [stdout] 175 | None [INFO] [stdout] 176 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/simple_declare_attr.rs:294:10 [INFO] [stdout] | [INFO] [stdout] 294 | if let Some(df) = f.default_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/simple_declare_attr.rs:296:7 [INFO] [stdout] | [INFO] [stdout] 296 | } 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] 294 ~ match f.default_value() { Some(df) => { [INFO] [stdout] 295 | quote! { #f_name: self.#f_name.take().unwrap_or_else(|| #df) } [INFO] [stdout] 296 ~ } _ => { [INFO] [stdout] 297 | let err = format!("Required field `{stt_name}::{f_name}` not set"); [INFO] [stdout] 298 | quote_spanned! { f_name.span() => #f_name: self.#f_name.expect(#err) } [INFO] [stdout] 299 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | if let Some(d) = parse_dollar_macro(&m.mac) { [INFO] [stdout] | ^^^^^^^^^^^^^^-------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 294 ~ match parse_dollar_macro(&m.mac) { Some(d) => { [INFO] [stdout] 295 | let name = d.name; [INFO] [stdout] ... [INFO] [stdout] 300 | return i; [INFO] [stdout] 301 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | if let Some(DollarMacro { name, .. }) = parse_dollar_macro(&mac) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:314:5 [INFO] [stdout] | [INFO] [stdout] 314 | } else if mac.path.is_ident(KW_WATCH) { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 309 ~ match parse_dollar_macro(&mac) { Some(DollarMacro { name, .. }) => { [INFO] [stdout] 310 | mac.tokens = expand_read(name.to_token_stream()); [INFO] [stdout] ... [INFO] [stdout] 313 | self.add_dollar_ref(dollar_ref) [INFO] [stdout] 314 ~ } _ => if mac.path.is_ident(KW_WATCH) { [INFO] [stdout] 315 | mac.tokens = crate::watch_macro::gen_code(mac.tokens, self).into(); [INFO] [stdout] ... [INFO] [stdout] 333 | mac = syn::fold::fold_macro(self, mac); [INFO] [stdout] 334 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | if let Some(TokenTree::Ident(var)) = iter.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/symbol_process.rs:127:15 [INFO] [stdout] | [INFO] [stdout] 127 | } 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] 121 ~ match iter.next() { Some(TokenTree::Ident(var)) => { [INFO] [stdout] 122 | rdl_group.push(TokenTree::Punct(dollar)); [INFO] [stdout] ... [INFO] [stdout] 126 | }; [INFO] [stdout] 127 ~ } _ => { [INFO] [stdout] 128 | return dollar_err(dollar.span()); [INFO] [stdout] 129 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | while let Some(t) = n.take() { [INFO] [stdout] | ^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 142 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:145:14 [INFO] [stdout] | [INFO] [stdout] 145 | if let Some(TokenTree::Group(_)) = rdl_group.last() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:148:11 [INFO] [stdout] | [INFO] [stdout] 148 | } 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] 145 ~ match rdl_group.last() { Some(TokenTree::Group(_)) => { [INFO] [stdout] 146 | let rdl_group = TokenStream::from_iter(rdl_group); [INFO] [stdout] 147 | tokens.push(TokenTree::Group(Group::new(Delimiter::Brace, rdl_group))); [INFO] [stdout] 148 ~ } _ => { [INFO] [stdout] 149 | return rdl_syntax_err(at.span(), rdl_group.last().map(|n| n.span())); [INFO] [stdout] 150 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | let mut gen = generics.clone(); [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] warning: failed to automatically apply fixes suggested by rustc to crate `ribir_macros` [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 13 | gen.params.push(parse_quote!('_c)); [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] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | gen.params.push(parse_quote!(_C)); [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] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.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/lib.rs:26:4 [INFO] [stderr] | [INFO] [stderr] 26 | ($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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | let predicates = &mut 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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | 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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | let gen = with_child_generics(generics, ty, m); [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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 74 | let (g_impl, _, g_where) = gen.split_for_impl(); [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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:194:19 [INFO] [stdout] | [INFO] [stdout] 194 | let gen = with_child_generics(generics, ty, m); [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] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/child_template.rs:195:42 [INFO] [stdout] | [INFO] [stdout] 195 | let (g_impl, _, g_where) = gen.split_for_impl(); [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] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | ($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] 26 | ($e:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/declare_derive.rs:574:10 [INFO] [stdout] | [INFO] [stdout] 574 | if let Some(df) = f.default_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/declare_derive.rs:581:7 [INFO] [stdout] | [INFO] [stdout] 581 | } 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] 574 ~ match f.default_value() { Some(df) => { [INFO] [stdout] 575 | quote! { [INFO] [stdout] ... [INFO] [stdout] 580 | } [INFO] [stdout] 581 ~ } _ => { [INFO] [stdout] 582 | let err = format!("Required field `{stt_name}::{f_name}` not set"); [INFO] [stdout] 583 | quote! { self.#f_name.take().expect(#err).unzip() } [INFO] [stdout] 584 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/child_template.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | let field_name = if let Some(name) = f.ident.as_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/child_template.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | } 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] 63 ~ let field_name = match f.ident.as_ref() { Some(name) => { [INFO] [stdout] 64 | quote! {#name} [INFO] [stdout] 65 ~ } _ => { [INFO] [stdout] 66 | let f_idx = Index::from(f_idx); [INFO] [stdout] 67 | quote!(#f_idx) [INFO] [stdout] 68 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/child_template.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | if let Fields::Unnamed(FieldsUnnamed { unnamed, .. }) = &v.fields { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/child_template.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 210 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 186 ~ match &v.fields { Fields::Unnamed(FieldsUnnamed { unnamed, .. }) => { [INFO] [stdout] 187 | // only the enum variant has a single type need to implement fill convert. [INFO] [stdout] ... [INFO] [stdout] 209 | } [INFO] [stdout] 210 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/rdl_macro.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | if let Err(err) = obj.error_check() { [INFO] [stdout] | ^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/rdl_macro.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | } 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] 82 ~ match obj.error_check() { Err(err) => { [INFO] [stdout] 83 | err.to_compile_error().into() [INFO] [stdout] 84 ~ } _ => { [INFO] [stdout] 85 | obj.to_token_stream().into() [INFO] [stdout] 86 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/simple_declare_attr.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | if let Some(DefaultMeta { value: Some(ref value), .. }) = attr.default.as_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/simple_declare_attr.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | } else if attr.default.is_some() || attr.skip.is_some() { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 170 ~ match attr.default.as_ref() { Some(DefaultMeta { value: Some(ref value), .. }) => { [INFO] [stdout] 171 | Some(quote! { From::from(#value) }) [INFO] [stdout] 172 ~ } _ => if attr.default.is_some() || attr.skip.is_some() { [INFO] [stdout] 173 | Some(quote! { <_>::default() }) [INFO] [stdout] 174 | } else { [INFO] [stdout] 175 | None [INFO] [stdout] 176 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.64s [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/simple_declare_attr.rs:294:10 [INFO] [stdout] | [INFO] [stdout] 294 | if let Some(df) = f.default_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/simple_declare_attr.rs:296:7 [INFO] [stdout] | [INFO] [stdout] 296 | } 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] 294 ~ match f.default_value() { Some(df) => { [INFO] [stdout] 295 | quote! { #f_name: self.#f_name.take().unwrap_or_else(|| #df) } [INFO] [stdout] 296 ~ } _ => { [INFO] [stdout] 297 | let err = format!("Required field `{stt_name}::{f_name}` not set"); [INFO] [stdout] 298 | quote_spanned! { f_name.span() => #f_name: self.#f_name.expect(#err) } [INFO] [stdout] 299 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | if let Some(d) = parse_dollar_macro(&m.mac) { [INFO] [stdout] | ^^^^^^^^^^^^^^-------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 294 ~ match parse_dollar_macro(&m.mac) { Some(d) => { [INFO] [stdout] 295 | let name = d.name; [INFO] [stdout] ... [INFO] [stdout] 300 | return i; [INFO] [stdout] 301 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:309:8 [INFO] [stdout] | [INFO] [stdout] 309 | if let Some(DollarMacro { name, .. }) = parse_dollar_macro(&mac) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:314:5 [INFO] [stdout] | [INFO] [stdout] 314 | } else if mac.path.is_ident(KW_WATCH) { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 309 ~ match parse_dollar_macro(&mac) { Some(DollarMacro { name, .. }) => { [INFO] [stdout] 310 | mac.tokens = expand_read(name.to_token_stream()); [INFO] [stdout] ... [INFO] [stdout] 313 | self.add_dollar_ref(dollar_ref) [INFO] [stdout] 314 ~ } _ => if mac.path.is_ident(KW_WATCH) { [INFO] [stdout] 315 | mac.tokens = crate::watch_macro::gen_code(mac.tokens, self).into(); [INFO] [stdout] ... [INFO] [stdout] 333 | mac = syn::fold::fold_macro(self, mac); [INFO] [stdout] 334 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | if let Some(TokenTree::Ident(var)) = iter.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/symbol_process.rs:127:15 [INFO] [stdout] | [INFO] [stdout] 127 | } 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] 121 ~ match iter.next() { Some(TokenTree::Ident(var)) => { [INFO] [stdout] 122 | rdl_group.push(TokenTree::Punct(dollar)); [INFO] [stdout] ... [INFO] [stdout] 126 | }; [INFO] [stdout] 127 ~ } _ => { [INFO] [stdout] 128 | return dollar_err(dollar.span()); [INFO] [stdout] 129 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:135:21 [INFO] [stdout] | [INFO] [stdout] 135 | while let Some(t) = n.take() { [INFO] [stdout] | ^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 142 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:145:14 [INFO] [stdout] | [INFO] [stdout] 145 | if let Some(TokenTree::Group(_)) = rdl_group.last() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/symbol_process.rs:148:11 [INFO] [stdout] | [INFO] [stdout] 148 | } 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] 145 ~ match rdl_group.last() { Some(TokenTree::Group(_)) => { [INFO] [stdout] 146 | let rdl_group = TokenStream::from_iter(rdl_group); [INFO] [stdout] 147 | tokens.push(TokenTree::Group(Group::new(Delimiter::Brace, rdl_group))); [INFO] [stdout] 148 ~ } _ => { [INFO] [stdout] 149 | return rdl_syntax_err(at.span(), rdl_group.last().map(|n| n.span())); [INFO] [stdout] 150 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking ribir_macros v0.4.0-alpha.8 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | let mut gen = generics.clone(); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 12 | let mut r#gen = generics.clone(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | let mut gen = generics.clone(); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 12 | let mut r#gen = generics.clone(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 13 | gen.params.push(parse_quote!('_c)); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | let gen = with_child_generics(generics, ty, m); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 73 | let r#gen = with_child_generics(generics, ty, m); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 74 | let (g_impl, _, g_where) = gen.split_for_impl(); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:194:19 [INFO] [stdout] | [INFO] [stdout] 194 | let gen = with_child_generics(generics, ty, m); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 194 | let r#gen = with_child_generics(generics, ty, m); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:195:42 [INFO] [stdout] | [INFO] [stdout] 195 | let (g_impl, _, g_where) = gen.split_for_impl(); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:13:3 [INFO] [stdout] | [INFO] [stdout] 13 | gen.params.push(parse_quote!('_c)); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | let gen = with_child_generics(generics, ty, m); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 73 | let r#gen = with_child_generics(generics, ty, m); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:74:34 [INFO] [stdout] | [INFO] [stdout] 74 | let (g_impl, _, g_where) = gen.split_for_impl(); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:194:19 [INFO] [stdout] | [INFO] [stdout] 194 | let gen = with_child_generics(generics, ty, m); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 194 | let r#gen = with_child_generics(generics, ty, m); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/child_template.rs:195:42 [INFO] [stdout] | [INFO] [stdout] 195 | let (g_impl, _, g_where) = gen.split_for_impl(); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ribir_macros` (lib test) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ribir_macros` (lib) due to 7 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" "2e80dad96bfce8ffe31162309a06130fcc42110ce0728f08f43eff12784c2b07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e80dad96bfce8ffe31162309a06130fcc42110ce0728f08f43eff12784c2b07", kill_on_drop: false }` [INFO] [stdout] 2e80dad96bfce8ffe31162309a06130fcc42110ce0728f08f43eff12784c2b07