[INFO] fetching crate lib-ruby-parser 4.0.6+ruby-3.1.2... [INFO] checking lib-ruby-parser-4.0.6+ruby-3.1.2 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate lib-ruby-parser 4.0.6+ruby-3.1.2 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate lib-ruby-parser 4.0.6+ruby-3.1.2 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 lib-ruby-parser 4.0.6+ruby-3.1.2 [INFO] finished tweaking crates.io crate lib-ruby-parser 4.0.6+ruby-3.1.2 [INFO] tweaked toml for crates.io crate lib-ruby-parser 4.0.6+ruby-3.1.2 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate lib-ruby-parser 4.0.6+ruby-3.1.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 820fbb26eb34e87d6d95023d0b3340181956667331cb42d151185d437473fd21 [INFO] running `Command { std: "docker" "start" "-a" "820fbb26eb34e87d6d95023d0b3340181956667331cb42d151185d437473fd21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "820fbb26eb34e87d6d95023d0b3340181956667331cb42d151185d437473fd21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "820fbb26eb34e87d6d95023d0b3340181956667331cb42d151185d437473fd21", kill_on_drop: false }` [INFO] [stdout] 820fbb26eb34e87d6d95023d0b3340181956667331cb42d151185d437473fd21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 6db19d9f0543c34cba0948bcf28e2f3d11b9573cfaff35332ebbf02180117289 [INFO] running `Command { std: "docker" "start" "-a" "6db19d9f0543c34cba0948bcf28e2f3d11b9573cfaff35332ebbf02180117289", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (6 fixes) [INFO] [stderr] Compiling lib-ruby-parser v4.0.6+ruby-3.1.2 (/tmp/fixit) [INFO] [stderr] Checking alloc-from-pool v1.0.5 [INFO] [stderr] Checking lib-ruby-parser-ast v0.55.0 [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `lib_ruby_parser` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/source/buffer.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | ($fmt_string: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] 41 | ($fmt_string:expr_2021, $( $arg: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/source/buffer.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | ($fmt_string: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] 41 | ($fmt_string:expr, $( $arg:expr_2021 ),*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lexer/mod.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | ($fmt_string: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] 2 | ($fmt_string:expr_2021, $( $arg: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/lexer/mod.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | ($fmt_string: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] 2 | ($fmt_string:expr, $( $arg:expr_2021 ),*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/context.rs [INFO] [stderr] * src/lexer/mod.rs [INFO] [stderr] * src/source/buffer.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/source/buffer.rs:41:6 [INFO] [stderr] | [INFO] [stderr] 41 | ($fmt_string: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/source/buffer.rs:41:32 [INFO] [stderr] | [INFO] [stderr] 41 | ($fmt_string:expr_2021, $( $arg:expr_2021 ),*) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/context.rs:15:58 [INFO] [stdout] | [INFO] [stdout] 15 | ($upper:ident, $getter:ident, $setter: ident, $value: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] 15 | ($upper:ident, $getter:ident, $setter: ident, $value: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/source/buffer.rs:268:19 [INFO] [stdout] | [INFO] [stdout] 268 | while let Some(c) = self.input.byte_at(ptr) { [INFO] [stdout] | ^^^^^^^^^^^^^^----------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/source/buffer.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [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/lexer/mod.rs:2:6 [INFO] [stderr] | [INFO] [stderr] 2 | ($fmt_string: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/lexer/mod.rs:2:32 [INFO] [stderr] | [INFO] [stderr] 2 | ($fmt_string: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/context.rs:15:51 [INFO] [stderr] | [INFO] [stderr] 15 | ($upper:ident, $getter:ident, $setter: ident, $value:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:854:31 [INFO] [stdout] | [INFO] [stdout] 854 | let key1 = if let Node::Pair(Pair { key, .. }) = &pairs[i] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:856:17 [INFO] [stdout] | [INFO] [stdout] 856 | } 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] 854 ~ let key1 = match &pairs[i] { Node::Pair(Pair { key, .. }) => { [INFO] [stdout] 855 | &**key [INFO] [stdout] 856 ~ } _ => { [INFO] [stdout] 857 | // kwsplat [INFO] [stdout] 858 | continue; [INFO] [stdout] 859 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [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 5 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/builder.rs:860:31 [INFO] [stdout] | [INFO] [stdout] 860 | let key2 = if let Node::Pair(Pair { key, .. }) = &pairs[j] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:862:17 [INFO] [stdout] | [INFO] [stdout] 862 | } 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] 860 ~ let key2 = match &pairs[j] { Node::Pair(Pair { key, .. }) => { [INFO] [stdout] 861 | &**key [INFO] [stdout] 862 ~ } _ => { [INFO] [stdout] 863 | // kwsplat [INFO] [stdout] 864 | continue; [INFO] [stdout] 865 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:1840:33 [INFO] [stdout] | [INFO] [stdout] 1840 | let (name, name_l) = if let Some(name_t) = name_t { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:1845:9 [INFO] [stdout] | [INFO] [stdout] 1845 | } 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] 1840 ~ let (name, name_l) = match name_t { Some(name_t) => { [INFO] [stdout] 1841 | let name_l = self.loc(&name_t); [INFO] [stdout] ... [INFO] [stdout] 1844 | (Some(name), Some(name_l)) [INFO] [stdout] 1845 ~ } _ => { [INFO] [stdout] 1846 | (None, None) [INFO] [stdout] 1847 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:1901:33 [INFO] [stdout] | [INFO] [stdout] 1901 | let (name, name_l) = if let Some(name_t) = name_t { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:1906:9 [INFO] [stdout] | [INFO] [stdout] 1906 | } 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] 1901 ~ let (name, name_l) = match name_t { Some(name_t) => { [INFO] [stdout] 1902 | let name_l = self.loc(&name_t); [INFO] [stdout] ... [INFO] [stdout] 1905 | (Some(name), Some(name_l)) [INFO] [stdout] 1906 ~ } _ => { [INFO] [stdout] 1907 | (None, None) [INFO] [stdout] 1908 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:2434:12 [INFO] [stdout] | [INFO] [stdout] 2434 | if let Some(receiver) = receiver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:2460:9 [INFO] [stdout] | [INFO] [stdout] 2460 | } 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] 2434 ~ match receiver { Some(receiver) => { [INFO] [stdout] 2435 | let receiver = receiver; [INFO] [stdout] ... [INFO] [stdout] 2459 | }))) [INFO] [stdout] 2460 ~ } _ => { [INFO] [stdout] 2461 | let CollectionMap { [INFO] [stdout] ... [INFO] [stdout] 2486 | }))) [INFO] [stdout] 2487 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:2786:16 [INFO] [stdout] | [INFO] [stdout] 2786 | if let Some(Node::BlockPass(_)) = args.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/builder.rs:2789:13 [INFO] [stdout] | [INFO] [stdout] 2789 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 2786 ~ match args.last() { Some(Node::BlockPass(_)) => { [INFO] [stdout] 2787 | self.error(DiagnosticMessage::BlockGivenToYield {}, &keyword_l); [INFO] [stdout] 2788 | return Err(()); [INFO] [stdout] 2789 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:2975:19 [INFO] [stdout] | [INFO] [stdout] 2975 | } else if let Some((else_t, else_)) = else_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:3017:9 [INFO] [stdout] | [INFO] [stdout] 3017 | } 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] 2975 ~ } else { match else_ { Some((else_t, else_)) => { [INFO] [stdout] 2976 | let mut statements = vec![]; [INFO] [stdout] ... [INFO] [stdout] 3016 | }))) [INFO] [stdout] 3017 ~ } _ => { [INFO] [stdout] 3018 | result = compound_stmt; [INFO] [stdout] 3019 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:2939:16 [INFO] [stdout] | [INFO] [stdout] 2939 | if let Some((else_t, else_)) = else_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:2956:13 [INFO] [stdout] | [INFO] [stdout] 2956 | } 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] 2939 ~ match else_ { Some((else_t, else_)) => { [INFO] [stdout] 2940 | let begin_l = maybe_boxed_node_expr(&compound_stmt) [INFO] [stdout] ... [INFO] [stdout] 2955 | }))) [INFO] [stdout] 2956 ~ } _ => { [INFO] [stdout] 2957 | let begin_l = maybe_boxed_node_expr(&compound_stmt) [INFO] [stdout] ... [INFO] [stdout] 2973 | }))) [INFO] [stdout] 2974 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:3081:12 [INFO] [stdout] | [INFO] [stdout] 3081 | if let Some(body) = body { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:3115:9 [INFO] [stdout] | [INFO] [stdout] 3115 | } 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] 3081 ~ match body { Some(body) => { [INFO] [stdout] 3082 | let mut body = *body; [INFO] [stdout] ... [INFO] [stdout] 3114 | } [INFO] [stdout] 3115 ~ } _ => { [INFO] [stdout] 3116 | // A nil expression: `()'. [INFO] [stdout] ... [INFO] [stdout] 3122 | })) [INFO] [stdout] 3123 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:3139:12 [INFO] [stdout] | [INFO] [stdout] 3139 | if let Some(body) = body { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:3158:9 [INFO] [stdout] | [INFO] [stdout] 3158 | } 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] 3139 ~ match body { Some(body) => { [INFO] [stdout] 3140 | let body = *body; [INFO] [stdout] ... [INFO] [stdout] 3157 | } [INFO] [stdout] 3158 ~ } _ => { [INFO] [stdout] 3159 | // A nil expression: `begin end'. [INFO] [stdout] ... [INFO] [stdout] 3165 | })) [INFO] [stdout] 3166 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:3394:23 [INFO] [stdout] | [INFO] [stdout] 3394 | let name = if let Some(name_t) = name_t { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:3396:9 [INFO] [stdout] | [INFO] [stdout] 3396 | } 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] 3394 ~ let name = match name_t { Some(name_t) => { [INFO] [stdout] 3395 | Some(self.match_var(name_t)?) [INFO] [stdout] 3396 ~ } _ => { [INFO] [stdout] 3397 | None [INFO] [stdout] 3398 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/max_numparam_stack.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | if let Some(stack_item) = self.stack.borrow().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/max_numparam_stack.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | } 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] 45 ~ match self.stack.borrow().last() { Some(stack_item) => { [INFO] [stdout] 46 | stack_item.value [INFO] [stdout] 47 ~ } _ => { [INFO] [stdout] 48 | i32::MIN [INFO] [stdout] 49 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/bin/dump_token_ids.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `lib_ruby_parser` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/context.rs [INFO] [stderr] * src/lexer/mod.rs [INFO] [stderr] * src/source/buffer.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/source/buffer.rs:41:6 [INFO] [stderr] | [INFO] [stderr] 41 | ($fmt_string: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/source/buffer.rs:41:32 [INFO] [stderr] | [INFO] [stderr] 41 | ($fmt_string: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/lexer/mod.rs:2:6 [INFO] [stderr] | [INFO] [stderr] 2 | ($fmt_string: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/lexer/mod.rs:2:32 [INFO] [stderr] | [INFO] [stderr] 2 | ($fmt_string: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/context.rs:15:51 [INFO] [stderr] | [INFO] [stderr] 15 | ($upper:ident, $getter:ident, $setter: ident, $value: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 5 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/tests/lexer/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | 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: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/tests/parser/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | 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] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/source/buffer.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | ($fmt_string: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] 41 | ($fmt_string: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/source/buffer.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | ($fmt_string: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] 41 | ($fmt_string: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/lexer/mod.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | ($fmt_string: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] 2 | ($fmt_string: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/lexer/mod.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | ($fmt_string: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] 2 | ($fmt_string:expr, $( $arg:expr_2021 ),*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/error/diagnostic.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | let mut input = crate::source::DecodedInput::named("(test_render)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #![warn(unused_qualifications)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 103 - let mut input = crate::source::DecodedInput::named("(test_render)"); [INFO] [stdout] 103 + let mut input = DecodedInput::named("(test_render)"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/context.rs:15:58 [INFO] [stdout] | [INFO] [stdout] 15 | ($upper:ident, $getter:ident, $setter: ident, $value: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] 15 | ($upper:ident, $getter:ident, $setter: ident, $value:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/source/buffer.rs:268:19 [INFO] [stdout] | [INFO] [stdout] 268 | while let Some(c) = self.input.byte_at(ptr) { [INFO] [stdout] | ^^^^^^^^^^^^^^----------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/source/buffer.rs:273:13 [INFO] [stdout] | [INFO] [stdout] 273 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:854:31 [INFO] [stdout] | [INFO] [stdout] 854 | let key1 = if let Node::Pair(Pair { key, .. }) = &pairs[i] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:856:17 [INFO] [stdout] | [INFO] [stdout] 856 | } 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] 854 ~ let key1 = match &pairs[i] { Node::Pair(Pair { key, .. }) => { [INFO] [stdout] 855 | &**key [INFO] [stdout] 856 ~ } _ => { [INFO] [stdout] 857 | // kwsplat [INFO] [stdout] 858 | continue; [INFO] [stdout] 859 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:860:31 [INFO] [stdout] | [INFO] [stdout] 860 | let key2 = if let Node::Pair(Pair { key, .. }) = &pairs[j] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:862:17 [INFO] [stdout] | [INFO] [stdout] 862 | } 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] 860 ~ let key2 = match &pairs[j] { Node::Pair(Pair { key, .. }) => { [INFO] [stdout] 861 | &**key [INFO] [stdout] 862 ~ } _ => { [INFO] [stdout] 863 | // kwsplat [INFO] [stdout] 864 | continue; [INFO] [stdout] 865 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:1840:33 [INFO] [stdout] | [INFO] [stdout] 1840 | let (name, name_l) = if let Some(name_t) = name_t { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:1845:9 [INFO] [stdout] | [INFO] [stdout] 1845 | } 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] 1840 ~ let (name, name_l) = match name_t { Some(name_t) => { [INFO] [stdout] 1841 | let name_l = self.loc(&name_t); [INFO] [stdout] ... [INFO] [stdout] 1844 | (Some(name), Some(name_l)) [INFO] [stdout] 1845 ~ } _ => { [INFO] [stdout] 1846 | (None, None) [INFO] [stdout] 1847 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:1901:33 [INFO] [stdout] | [INFO] [stdout] 1901 | let (name, name_l) = if let Some(name_t) = name_t { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:1906:9 [INFO] [stdout] | [INFO] [stdout] 1906 | } 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] 1901 ~ let (name, name_l) = match name_t { Some(name_t) => { [INFO] [stdout] 1902 | let name_l = self.loc(&name_t); [INFO] [stdout] ... [INFO] [stdout] 1905 | (Some(name), Some(name_l)) [INFO] [stdout] 1906 ~ } _ => { [INFO] [stdout] 1907 | (None, None) [INFO] [stdout] 1908 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:2434:12 [INFO] [stdout] | [INFO] [stdout] 2434 | if let Some(receiver) = receiver { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^-------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:2460:9 [INFO] [stdout] | [INFO] [stdout] 2460 | } 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] 2434 ~ match receiver { Some(receiver) => { [INFO] [stdout] 2435 | let receiver = receiver; [INFO] [stdout] ... [INFO] [stdout] 2459 | }))) [INFO] [stdout] 2460 ~ } _ => { [INFO] [stdout] 2461 | let CollectionMap { [INFO] [stdout] ... [INFO] [stdout] 2486 | }))) [INFO] [stdout] 2487 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:2786:16 [INFO] [stdout] | [INFO] [stdout] 2786 | if let Some(Node::BlockPass(_)) = args.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/builder.rs:2789:13 [INFO] [stdout] | [INFO] [stdout] 2789 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 2786 ~ match args.last() { Some(Node::BlockPass(_)) => { [INFO] [stdout] 2787 | self.error(DiagnosticMessage::BlockGivenToYield {}, &keyword_l); [INFO] [stdout] 2788 | return Err(()); [INFO] [stdout] 2789 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:2975:19 [INFO] [stdout] | [INFO] [stdout] 2975 | } else if let Some((else_t, else_)) = else_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:3017:9 [INFO] [stdout] | [INFO] [stdout] 3017 | } 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] 2975 ~ } else { match else_ { Some((else_t, else_)) => { [INFO] [stdout] 2976 | let mut statements = vec![]; [INFO] [stdout] ... [INFO] [stdout] 3016 | }))) [INFO] [stdout] 3017 ~ } _ => { [INFO] [stdout] 3018 | result = compound_stmt; [INFO] [stdout] 3019 ~ }}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:2939:16 [INFO] [stdout] | [INFO] [stdout] 2939 | if let Some((else_t, else_)) = else_ { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:2956:13 [INFO] [stdout] | [INFO] [stdout] 2956 | } 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] 2939 ~ match else_ { Some((else_t, else_)) => { [INFO] [stdout] 2940 | let begin_l = maybe_boxed_node_expr(&compound_stmt) [INFO] [stdout] ... [INFO] [stdout] 2955 | }))) [INFO] [stdout] 2956 ~ } _ => { [INFO] [stdout] 2957 | let begin_l = maybe_boxed_node_expr(&compound_stmt) [INFO] [stdout] ... [INFO] [stdout] 2973 | }))) [INFO] [stdout] 2974 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:3081:12 [INFO] [stdout] | [INFO] [stdout] 3081 | if let Some(body) = body { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:3115:9 [INFO] [stdout] | [INFO] [stdout] 3115 | } 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] 3081 ~ match body { Some(body) => { [INFO] [stdout] 3082 | let mut body = *body; [INFO] [stdout] ... [INFO] [stdout] 3114 | } [INFO] [stdout] 3115 ~ } _ => { [INFO] [stdout] 3116 | // A nil expression: `()'. [INFO] [stdout] ... [INFO] [stdout] 3122 | })) [INFO] [stdout] 3123 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:3139:12 [INFO] [stdout] | [INFO] [stdout] 3139 | if let Some(body) = body { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:3158:9 [INFO] [stdout] | [INFO] [stdout] 3158 | } 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] 3139 ~ match body { Some(body) => { [INFO] [stdout] 3140 | let body = *body; [INFO] [stdout] ... [INFO] [stdout] 3157 | } [INFO] [stdout] 3158 ~ } _ => { [INFO] [stdout] 3159 | // A nil expression: `begin end'. [INFO] [stdout] ... [INFO] [stdout] 3165 | })) [INFO] [stdout] 3166 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/builder.rs:3394:23 [INFO] [stdout] | [INFO] [stdout] 3394 | let name = if let Some(name_t) = name_t { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/builder.rs:3396:9 [INFO] [stdout] | [INFO] [stdout] 3396 | } 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] 3394 ~ let name = match name_t { Some(name_t) => { [INFO] [stdout] 3395 | Some(self.match_var(name_t)?) [INFO] [stdout] 3396 ~ } _ => { [INFO] [stdout] 3397 | None [INFO] [stdout] 3398 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/max_numparam_stack.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | if let Some(stack_item) = self.stack.borrow().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/max_numparam_stack.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | } 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] 45 ~ match self.stack.borrow().last() { Some(stack_item) => { [INFO] [stdout] 46 | stack_item.value [INFO] [stdout] 47 ~ } _ => { [INFO] [stdout] 48 | i32::MIN [INFO] [stdout] 49 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/tests/parser/fixture.rs:103:30 [INFO] [stdout] | [INFO] [stdout] 103 | let ast = if let Some(ast) = actual.ast.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/tests/parser/fixture.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | } 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] 103 ~ let ast = match actual.ast.as_ref() { Some(ast) => { [INFO] [stdout] 104 | ast [INFO] [stdout] 105 ~ } _ => { [INFO] [stdout] 106 | panic!("can't compare locs, ast is empty"); [INFO] [stdout] 107 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.91s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling lib-ruby-parser v4.0.6+ruby-3.1.2 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/tests/lexer/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | 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] 5 | mod r#gen; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/tests/parser/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | 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] 5 | mod r#gen; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary qualification [INFO] [stdout] --> src/error/diagnostic.rs:103:21 [INFO] [stdout] | [INFO] [stdout] 103 | let mut input = crate::source::DecodedInput::named("(test_render)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #![warn(unused_qualifications)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the unnecessary path segments [INFO] [stdout] | [INFO] [stdout] 103 - let mut input = crate::source::DecodedInput::named("(test_render)"); [INFO] [stdout] 103 + let mut input = DecodedInput::named("(test_render)"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lib-ruby-parser` (lib test) due to 3 previous errors; 1 warning emitted [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" "6db19d9f0543c34cba0948bcf28e2f3d11b9573cfaff35332ebbf02180117289", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6db19d9f0543c34cba0948bcf28e2f3d11b9573cfaff35332ebbf02180117289", kill_on_drop: false }` [INFO] [stdout] 6db19d9f0543c34cba0948bcf28e2f3d11b9573cfaff35332ebbf02180117289