[INFO] fetching crate parol-ls 1.0.0... [INFO] checking parol-ls-1.0.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate parol-ls 1.0.0 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate parol-ls 1.0.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate parol-ls 1.0.0 [INFO] finished tweaking crates.io crate parol-ls 1.0.0 [INFO] tweaked toml for crates.io crate parol-ls 1.0.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate parol-ls 1.0.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-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] 5815f71c33c49c07a324be770fa7fc5849054028f98bf05c48aa9d240356a77c [INFO] running `Command { std: "docker" "start" "-a" "5815f71c33c49c07a324be770fa7fc5849054028f98bf05c48aa9d240356a77c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5815f71c33c49c07a324be770fa7fc5849054028f98bf05c48aa9d240356a77c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5815f71c33c49c07a324be770fa7fc5849054028f98bf05c48aa9d240356a77c", kill_on_drop: false }` [INFO] [stdout] 5815f71c33c49c07a324be770fa7fc5849054028f98bf05c48aa9d240356a77c [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] 802f2c54c8e16451c2186b3839a08cb99d58a0317290f8160eea4b73abab4790 [INFO] running `Command { std: "docker" "start" "-a" "802f2c54c8e16451c2186b3839a08cb99d58a0317290f8160eea4b73abab4790", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.83 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling anstyle v1.0.6 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling function_name-proc-macro v0.3.0 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Compiling anstyle-parse v0.2.0 [INFO] [stderr] Compiling hashbrown v0.14.0 [INFO] [stderr] Compiling anstyle-query v1.0.0 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling assert_cmd v2.0.16 [INFO] [stderr] Compiling anstream v0.6.13 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling predicates-core v1.0.6 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Checking aho-corasick v1.0.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.12 [INFO] [stderr] Compiling xml_writer v0.4.0 [INFO] [stderr] Compiling indexmap v2.0.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling termtree v0.4.1 [INFO] [stderr] Compiling syntree v0.14.5 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling clap_lex v0.7.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling predicates-tree v1.0.9 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling bstr v1.4.0 [INFO] [stderr] Compiling clap_builder v4.5.13 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling function_name v0.3.0 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling ume v0.1.0 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Compiling parol-macros v1.0.0 [INFO] [stderr] Compiling predicates v3.0.3 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling rand_regex v0.17.0 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling owo-colors v4.0.0 [INFO] [stderr] Compiling lalry v0.1.0 [INFO] [stderr] Checking unicode-ident v1.0.8 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Checking fluent-uri v0.1.4 [INFO] [stderr] Checking crossbeam-channel v0.5.12 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling clap_derive v4.5.13 [INFO] [stderr] Compiling ts-rs-macros v9.0.1 [INFO] [stderr] Compiling serde_repr v0.1.18 [INFO] [stderr] Compiling derive-new v0.6.0 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling syntree_layout v0.2.0 [INFO] [stderr] Compiling graph-cycles v0.1.0 [INFO] [stderr] Compiling ts-rs v9.0.1 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling derive_builder_core v0.20.1 [INFO] [stderr] Compiling clap v4.5.13 [INFO] [stderr] Compiling derive_builder_macro v0.20.1 [INFO] [stderr] Compiling derive_builder v0.20.1 [INFO] [stderr] Compiling parol_runtime v1.0.0 [INFO] [stderr] Checking lsp-server v0.7.6 [INFO] [stderr] Checking lsp-types v0.97.0 [INFO] [stderr] Checking parol v1.0.0 [INFO] [stderr] Compiling parol-ls v1.0.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `parol_ls` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [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/main.rs:65:20 [INFO] [stderr] | [INFO] [stderr] 65 | ($req_type:ty, $server:expr_2021, $connection:expr_2021, $req: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/main.rs:65:39 [INFO] [stderr] | [INFO] [stderr] 65 | ($req_type:ty, $server:expr_2021, $connection:expr_2021, $req: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/main.rs:65:62 [INFO] [stderr] | [INFO] [stderr] 65 | ($req_type:ty, $server:expr_2021, $connection:expr_2021, $req:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/main.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | ($req_type:ty, $server:expr, $connection:expr, $req: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] 65 | ($req_type:ty, $server:expr_2021, $connection:expr, $req: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/main.rs:65:46 [INFO] [stdout] | [INFO] [stdout] 65 | ($req_type:ty, $server:expr, $connection:expr, $req: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] 65 | ($req_type:ty, $server:expr, $connection:expr_2021, $req: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/main.rs:65:57 [INFO] [stdout] | [INFO] [stdout] 65 | ($req_type:ty, $server:expr, $connection:expr, $req: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] 65 | ($req_type:ty, $server:expr, $connection:expr, $req:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/config.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | if let Some(workspace) = self.initialization_params.capabilities.workspace.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/config.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | } 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] 52 ~ match self.initialization_params.capabilities.workspace.as_ref() { Some(workspace) => { [INFO] [stdout] 53 | matches!( [INFO] [stdout] ... [INFO] [stdout] 58 | ) [INFO] [stdout] 59 ~ } _ => { [INFO] [stdout] 60 | false [INFO] [stdout] 61 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/format.rs:354:16 [INFO] [stdout] | [INFO] [stdout] 354 | if let Some(non_terminal_opt) = self.non_terminal_opt.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/formatting/format.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | } 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] 354 ~ match self.non_terminal_opt.as_ref() { Some(non_terminal_opt) => { [INFO] [stdout] 355 | non_terminal_opt.txt(options, comments) [INFO] [stdout] 356 ~ } _ => { [INFO] [stdout] 357 | (String::default(), comments) [INFO] [stdout] 358 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/format.rs:603:24 [INFO] [stdout] | [INFO] [stdout] 603 | if let Some(scanner_switch_opt) = sc.scanner_switch_opt.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/formatting/format.rs:605:21 [INFO] [stdout] | [INFO] [stdout] 605 | } 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] 603 ~ match sc.scanner_switch_opt.as_ref() { Some(scanner_switch_opt) => { [INFO] [stdout] 604 | scanner_switch_opt.txt(options, comments) [INFO] [stdout] 605 ~ } _ => { [INFO] [stdout] 606 | (String::default(), comments) [INFO] [stdout] 607 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/format.rs:642:16 [INFO] [stdout] | [INFO] [stdout] 642 | if let Some(simple_token_opt) = self.simple_token_opt.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/formatting/format.rs:644:13 [INFO] [stdout] | [INFO] [stdout] 644 | } 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] 642 ~ match self.simple_token_opt.as_ref() { Some(simple_token_opt) => { [INFO] [stdout] 643 | simple_token_opt.txt(options, comments) [INFO] [stdout] 644 ~ } _ => { [INFO] [stdout] 645 | (String::default(), comments) [INFO] [stdout] 646 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/format.rs:725:16 [INFO] [stdout] | [INFO] [stdout] 725 | if let Some(token_with_states_opt) = self.token_with_states_opt.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/formatting/format.rs:727:13 [INFO] [stdout] | [INFO] [stdout] 727 | } 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] 725 ~ match self.token_with_states_opt.as_ref() { Some(token_with_states_opt) => { [INFO] [stdout] 726 | token_with_states_opt.txt(options, comments) [INFO] [stdout] 727 ~ } _ => { [INFO] [stdout] 728 | (String::default(), comments) [INFO] [stdout] 729 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/format.rs:1075:12 [INFO] [stdout] | [INFO] [stdout] 1075 | if let Err(e) = parse(&input_grammar, input_file.clone(), &mut grammar) { [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/formatting/format.rs:1078:9 [INFO] [stdout] | [INFO] [stdout] 1078 | } 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] 1075 ~ match parse(&input_grammar, input_file.clone(), &mut grammar) { Err(e) => { [INFO] [stdout] 1076 | LsErrorReporter::report_error(&e, input_file).unwrap(); [INFO] [stdout] 1077 | panic!("Parsing failed!") [INFO] [stdout] 1078 ~ } _ => { [INFO] [stdout] 1079 | // We generate the new formatting by calling Fmt::txt() [INFO] [stdout] ... [INFO] [stdout] 1118 | } [INFO] [stdout] 1119 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/comments.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | if let Some(pos) = self.comments.iter().position(|t| { [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] | | [INFO] [stdout] 40 | | t.token_number == comment_token_number && t.location.start_line == at_line [INFO] [stdout] 41 | | }) { [INFO] [stdout] | |__________^ [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/formatting/comments.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | } 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] 39 ~ match self.comments.iter().position(|t| { [INFO] [stdout] 40 | t.token_number == comment_token_number && t.location.start_line == at_line [INFO] [stdout] 41 ~ }) { Some(pos) => { [INFO] [stdout] 42 | let comment_token = self.comments.remove(pos).unwrap(); [INFO] [stdout] ... [INFO] [stdout] 45 | (following_comment_str, self) [INFO] [stdout] 46 ~ } _ => { [INFO] [stdout] 47 | (String::default(), self) [INFO] [stdout] 48 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/comments.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | let options = if let Some(cmt) = self.comments.iter().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/formatting/comments.rs:65:13 [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] 59 ~ let options = match self.comments.iter().last() { Some(cmt) => { [INFO] [stdout] 60 | if cmt.is_line_comment() && options.line_end != LineEnd::ForceRemove { [INFO] [stdout] ... [INFO] [stdout] 64 | } [INFO] [stdout] 65 ~ } _ => { [INFO] [stdout] 66 | options.clone() [INFO] [stdout] 67 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/comments.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 82 | while let Some(comment) = self.comments.front() { [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/formatting/comments.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:288:16 [INFO] [stdout] | [INFO] [stdout] 288 | if let Some(productions) = self.productions.get(item) { [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] 293 | } else if let Some(ranges) = self.user_type_definitions.find_definitions(item) { [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] 299 | } else if let Some(ranges) = self.scanner_state_definitions.find_definitions(item) { [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/parol_ls_grammar.rs:293:13 [INFO] [stdout] | [INFO] [stdout] 293 | } else if let Some(ranges) = self.user_type_definitions.find_definitions(item) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | } else if let Some(ranges) = self.scanner_state_definitions.find_definitions(item) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:305:13 [INFO] [stdout] | [INFO] [stdout] 305 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 288 ~ match self.productions.get(item) { Some(productions) => { [INFO] [stdout] 289 | for p in productions { [INFO] [stdout] ... [INFO] [stdout] 292 | } [INFO] [stdout] 293 ~ } _ => { match self.user_type_definitions.find_definitions(item) { Some(ranges) => { [INFO] [stdout] 294 | let _ = write!( [INFO] [stdout] ... [INFO] [stdout] 298 | ); [INFO] [stdout] 299 ~ } _ => { match self.scanner_state_definitions.find_definitions(item) { Some(ranges) => { [INFO] [stdout] 300 | let _ = write!( [INFO] [stdout] ... [INFO] [stdout] 304 | ); [INFO] [stdout] 305 ~ } _ => {}}}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:332:16 [INFO] [stdout] | [INFO] [stdout] 332 | if let Some(range) = self.find_non_terminal_range(ident, params.position) { [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] 338 | } else if let Some(range) = self [INFO] [stdout] | _________________________________________- [INFO] [stdout] 339 | | .scanner_state_definitions [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/parol_ls_grammar.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | } else if let Some(range) = self [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 332 ~ match self.find_non_terminal_range(ident, params.position) { Some(range) => { [INFO] [stdout] 333 | // Currently we don't support renaming the start symbol because this would have [INFO] [stdout] ... [INFO] [stdout] 337 | } [INFO] [stdout] 338 ~ } _ => { match self [INFO] [stdout] 339 | .scanner_state_definitions [INFO] [stdout] 340 | .find_reference_range(ident, params.position) [INFO] [stdout] 341 ~ { Some(range) => { [INFO] [stdout] 342 | // The INITAL scanner state is a special case. We don't want to rename it. [INFO] [stdout] ... [INFO] [stdout] 345 | } [INFO] [stdout] 346 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:420:12 [INFO] [stdout] | [INFO] [stdout] 420 | if let Some(ref grammar) = self.grammar { [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/parol_ls_grammar.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | } 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] 420 ~ match self.grammar { Some(ref grammar) => { [INFO] [stdout] 421 | Some( [INFO] [stdout] ... [INFO] [stdout] 427 | ) [INFO] [stdout] 428 ~ } _ => { [INFO] [stdout] 429 | None [INFO] [stdout] 430 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | if let Err(err) = calculate_lookahead_dfas(&grammar_config, max_k) { [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/server.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 221 ~ match calculate_lookahead_dfas(&grammar_config, max_k) { Err(err) => { [INFO] [stdout] 222 | eprintln!("check_grammar: errors from calculate_lookahead_dfas"); [INFO] [stdout] 223 | let _ = [INFO] [stdout] 224 | Self::notify_analysis_error(err, connection, &uri, version, document_state); [INFO] [stdout] 225 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:408:12 [INFO] [stdout] | [INFO] [stdout] 408 | if let Some(document_state) = self.documents.get(¶ms.text_document.uri) { [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/server.rs:410:9 [INFO] [stdout] | [INFO] [stdout] 410 | } 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] 408 ~ match self.documents.get(¶ms.text_document.uri) { Some(document_state) => { [INFO] [stdout] 409 | document_state.prepare_rename(params) [INFO] [stdout] 410 ~ } _ => { [INFO] [stdout] 411 | None [INFO] [stdout] 412 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 416 | if let Some(document_state) = self [INFO] [stdout] | _____________^ - [INFO] [stdout] | | _______________________________________| [INFO] [stdout] 417 | || .documents [INFO] [stdout] | ||______________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 418 | | .get(¶ms.text_document_position.text_document.uri) [INFO] [stdout] | |___________________________________________________________________^ [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/server.rs:421:9 [INFO] [stdout] | [INFO] [stdout] 421 | } 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] 416 ~ match self [INFO] [stdout] 417 | .documents [INFO] [stdout] 418 | .get(¶ms.text_document_position.text_document.uri) [INFO] [stdout] 419 ~ { Some(document_state) => { [INFO] [stdout] 420 | document_state.rename(params) [INFO] [stdout] 421 ~ } _ => { [INFO] [stdout] 422 | None [INFO] [stdout] 423 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:430:12 [INFO] [stdout] | [INFO] [stdout] 430 | if let Some(document_state) = self.documents.get(¶ms.text_document.uri) { [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/server.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | } 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] 430 ~ match self.documents.get(¶ms.text_document.uri) { Some(document_state) => { [INFO] [stdout] 431 | add_boolean_formatting_option!(self, params.options.properties, empty_line_after_prod); [INFO] [stdout] ... [INFO] [stdout] 434 | document_state.format(params) [INFO] [stdout] 435 ~ } _ => { [INFO] [stdout] 436 | None [INFO] [stdout] 437 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:475:12 [INFO] [stdout] | [INFO] [stdout] 475 | if let Some(ranges) = document_state [INFO] [stdout] | _____________^ - [INFO] [stdout] | | _______________________________| [INFO] [stdout] 476 | || .parsed_data [INFO] [stdout] 477 | || .user_type_definitions [INFO] [stdout] | ||__________________________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 478 | | .find_definitions(&text_at_position) [INFO] [stdout] | |_________________________________________________^ [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/server.rs:488:9 [INFO] [stdout] | [INFO] [stdout] 488 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 475 ~ match document_state [INFO] [stdout] 476 | .parsed_data [INFO] [stdout] 477 | .user_type_definitions [INFO] [stdout] 478 | .find_definitions(&text_at_position) [INFO] [stdout] 479 ~ { Some(ranges) => { [INFO] [stdout] 480 | locations.push(Location { [INFO] [stdout] ... [INFO] [stdout] 487 | }); [INFO] [stdout] 488 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:497:12 [INFO] [stdout] | [INFO] [stdout] 497 | if let Some(ranges) = document_state [INFO] [stdout] | _____________^ - [INFO] [stdout] | | _______________________________| [INFO] [stdout] 498 | || .parsed_data [INFO] [stdout] 499 | || .scanner_state_definitions [INFO] [stdout] | ||______________________________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 500 | | .find_definitions(&text_at_position) [INFO] [stdout] | |_________________________________________________^ [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/server.rs:510:9 [INFO] [stdout] | [INFO] [stdout] 510 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 497 ~ match document_state [INFO] [stdout] 498 | .parsed_data [INFO] [stdout] 499 | .scanner_state_definitions [INFO] [stdout] 500 | .find_definitions(&text_at_position) [INFO] [stdout] 501 ~ { Some(ranges) => { [INFO] [stdout] 502 | locations.push(Location { [INFO] [stdout] ... [INFO] [stdout] 509 | }); [INFO] [stdout] 510 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `parol_ls` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [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/main.rs:65:20 [INFO] [stderr] | [INFO] [stderr] 65 | ($req_type:ty, $server:expr_2021, $connection:expr_2021, $req: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/main.rs:65:39 [INFO] [stderr] | [INFO] [stderr] 65 | ($req_type:ty, $server:expr_2021, $connection:expr_2021, $req: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/main.rs:65:62 [INFO] [stderr] | [INFO] [stderr] 65 | ($req_type:ty, $server:expr_2021, $connection:expr_2021, $req:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/main.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | ($req_type:ty, $server:expr, $connection:expr, $req: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] 65 | ($req_type:ty, $server:expr_2021, $connection:expr, $req: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/main.rs:65:46 [INFO] [stdout] | [INFO] [stdout] 65 | ($req_type:ty, $server:expr, $connection:expr, $req: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] 65 | ($req_type:ty, $server:expr, $connection:expr_2021, $req: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/main.rs:65:57 [INFO] [stdout] | [INFO] [stdout] 65 | ($req_type:ty, $server:expr, $connection:expr, $req: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] 65 | ($req_type:ty, $server:expr, $connection:expr, $req:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/config.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | if let Some(workspace) = self.initialization_params.capabilities.workspace.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/config.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | } 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] 52 ~ match self.initialization_params.capabilities.workspace.as_ref() { Some(workspace) => { [INFO] [stdout] 53 | matches!( [INFO] [stdout] ... [INFO] [stdout] 58 | ) [INFO] [stdout] 59 ~ } _ => { [INFO] [stdout] 60 | false [INFO] [stdout] 61 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/format.rs:354:16 [INFO] [stdout] | [INFO] [stdout] 354 | if let Some(non_terminal_opt) = self.non_terminal_opt.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/formatting/format.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | } 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] 354 ~ match self.non_terminal_opt.as_ref() { Some(non_terminal_opt) => { [INFO] [stdout] 355 | non_terminal_opt.txt(options, comments) [INFO] [stdout] 356 ~ } _ => { [INFO] [stdout] 357 | (String::default(), comments) [INFO] [stdout] 358 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/format.rs:603:24 [INFO] [stdout] | [INFO] [stdout] 603 | if let Some(scanner_switch_opt) = sc.scanner_switch_opt.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/formatting/format.rs:605:21 [INFO] [stdout] | [INFO] [stdout] 605 | } 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] 603 ~ match sc.scanner_switch_opt.as_ref() { Some(scanner_switch_opt) => { [INFO] [stdout] 604 | scanner_switch_opt.txt(options, comments) [INFO] [stdout] 605 ~ } _ => { [INFO] [stdout] 606 | (String::default(), comments) [INFO] [stdout] 607 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/format.rs:642:16 [INFO] [stdout] | [INFO] [stdout] 642 | if let Some(simple_token_opt) = self.simple_token_opt.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/formatting/format.rs:644:13 [INFO] [stdout] | [INFO] [stdout] 644 | } 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] 642 ~ match self.simple_token_opt.as_ref() { Some(simple_token_opt) => { [INFO] [stdout] 643 | simple_token_opt.txt(options, comments) [INFO] [stdout] 644 ~ } _ => { [INFO] [stdout] 645 | (String::default(), comments) [INFO] [stdout] 646 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/format.rs:725:16 [INFO] [stdout] | [INFO] [stdout] 725 | if let Some(token_with_states_opt) = self.token_with_states_opt.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/formatting/format.rs:727:13 [INFO] [stdout] | [INFO] [stdout] 727 | } 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] 725 ~ match self.token_with_states_opt.as_ref() { Some(token_with_states_opt) => { [INFO] [stdout] 726 | token_with_states_opt.txt(options, comments) [INFO] [stdout] 727 ~ } _ => { [INFO] [stdout] 728 | (String::default(), comments) [INFO] [stdout] 729 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/comments.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | if let Some(pos) = self.comments.iter().position(|t| { [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] | | [INFO] [stdout] 40 | | t.token_number == comment_token_number && t.location.start_line == at_line [INFO] [stdout] 41 | | }) { [INFO] [stdout] | |__________^ [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/formatting/comments.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | } 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] 39 ~ match self.comments.iter().position(|t| { [INFO] [stdout] 40 | t.token_number == comment_token_number && t.location.start_line == at_line [INFO] [stdout] 41 ~ }) { Some(pos) => { [INFO] [stdout] 42 | let comment_token = self.comments.remove(pos).unwrap(); [INFO] [stdout] ... [INFO] [stdout] 45 | (following_comment_str, self) [INFO] [stdout] 46 ~ } _ => { [INFO] [stdout] 47 | (String::default(), self) [INFO] [stdout] 48 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/comments.rs:59:30 [INFO] [stdout] | [INFO] [stdout] 59 | let options = if let Some(cmt) = self.comments.iter().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/formatting/comments.rs:65:13 [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] 59 ~ let options = match self.comments.iter().last() { Some(cmt) => { [INFO] [stdout] 60 | if cmt.is_line_comment() && options.line_end != LineEnd::ForceRemove { [INFO] [stdout] ... [INFO] [stdout] 64 | } [INFO] [stdout] 65 ~ } _ => { [INFO] [stdout] 66 | options.clone() [INFO] [stdout] 67 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/formatting/comments.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 82 | while let Some(comment) = self.comments.front() { [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/formatting/comments.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:288:16 [INFO] [stdout] | [INFO] [stdout] 288 | if let Some(productions) = self.productions.get(item) { [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] 293 | } else if let Some(ranges) = self.user_type_definitions.find_definitions(item) { [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] 299 | } else if let Some(ranges) = self.scanner_state_definitions.find_definitions(item) { [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/parol_ls_grammar.rs:293:13 [INFO] [stdout] | [INFO] [stdout] 293 | } else if let Some(ranges) = self.user_type_definitions.find_definitions(item) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | } else if let Some(ranges) = self.scanner_state_definitions.find_definitions(item) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:305:13 [INFO] [stdout] | [INFO] [stdout] 305 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 288 ~ match self.productions.get(item) { Some(productions) => { [INFO] [stdout] 289 | for p in productions { [INFO] [stdout] ... [INFO] [stdout] 292 | } [INFO] [stdout] 293 ~ } _ => { match self.user_type_definitions.find_definitions(item) { Some(ranges) => { [INFO] [stdout] 294 | let _ = write!( [INFO] [stdout] ... [INFO] [stdout] 298 | ); [INFO] [stdout] 299 ~ } _ => { match self.scanner_state_definitions.find_definitions(item) { Some(ranges) => { [INFO] [stdout] 300 | let _ = write!( [INFO] [stdout] ... [INFO] [stdout] 304 | ); [INFO] [stdout] 305 ~ } _ => {}}}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:332:16 [INFO] [stdout] | [INFO] [stdout] 332 | if let Some(range) = self.find_non_terminal_range(ident, params.position) { [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] 338 | } else if let Some(range) = self [INFO] [stdout] | _________________________________________- [INFO] [stdout] 339 | | .scanner_state_definitions [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/parol_ls_grammar.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | } else if let Some(range) = self [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:346:13 [INFO] [stdout] | [INFO] [stdout] 346 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 332 ~ match self.find_non_terminal_range(ident, params.position) { Some(range) => { [INFO] [stdout] 333 | // Currently we don't support renaming the start symbol because this would have [INFO] [stdout] ... [INFO] [stdout] 337 | } [INFO] [stdout] 338 ~ } _ => { match self [INFO] [stdout] 339 | .scanner_state_definitions [INFO] [stdout] 340 | .find_reference_range(ident, params.position) [INFO] [stdout] 341 ~ { Some(range) => { [INFO] [stdout] 342 | // The INITAL scanner state is a special case. We don't want to rename it. [INFO] [stdout] ... [INFO] [stdout] 345 | } [INFO] [stdout] 346 ~ } _ => {}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parol_ls_grammar.rs:420:12 [INFO] [stdout] | [INFO] [stdout] 420 | if let Some(ref grammar) = self.grammar { [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/parol_ls_grammar.rs:428:9 [INFO] [stdout] | [INFO] [stdout] 428 | } 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] 420 ~ match self.grammar { Some(ref grammar) => { [INFO] [stdout] 421 | Some( [INFO] [stdout] ... [INFO] [stdout] 427 | ) [INFO] [stdout] 428 ~ } _ => { [INFO] [stdout] 429 | None [INFO] [stdout] 430 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | if let Err(err) = calculate_lookahead_dfas(&grammar_config, max_k) { [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/server.rs:225:17 [INFO] [stdout] | [INFO] [stdout] 225 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 221 ~ match calculate_lookahead_dfas(&grammar_config, max_k) { Err(err) => { [INFO] [stdout] 222 | eprintln!("check_grammar: errors from calculate_lookahead_dfas"); [INFO] [stdout] 223 | let _ = [INFO] [stdout] 224 | Self::notify_analysis_error(err, connection, &uri, version, document_state); [INFO] [stdout] 225 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:408:12 [INFO] [stdout] | [INFO] [stdout] 408 | if let Some(document_state) = self.documents.get(¶ms.text_document.uri) { [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/server.rs:410:9 [INFO] [stdout] | [INFO] [stdout] 410 | } 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] 408 ~ match self.documents.get(¶ms.text_document.uri) { Some(document_state) => { [INFO] [stdout] 409 | document_state.prepare_rename(params) [INFO] [stdout] 410 ~ } _ => { [INFO] [stdout] 411 | None [INFO] [stdout] 412 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:416:12 [INFO] [stdout] | [INFO] [stdout] 416 | if let Some(document_state) = self [INFO] [stdout] | _____________^ - [INFO] [stdout] | | _______________________________________| [INFO] [stdout] 417 | || .documents [INFO] [stdout] | ||______________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 418 | | .get(¶ms.text_document_position.text_document.uri) [INFO] [stdout] | |___________________________________________________________________^ [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/server.rs:421:9 [INFO] [stdout] | [INFO] [stdout] 421 | } 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] 416 ~ match self [INFO] [stdout] 417 | .documents [INFO] [stdout] 418 | .get(¶ms.text_document_position.text_document.uri) [INFO] [stdout] 419 ~ { Some(document_state) => { [INFO] [stdout] 420 | document_state.rename(params) [INFO] [stdout] 421 ~ } _ => { [INFO] [stdout] 422 | None [INFO] [stdout] 423 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:430:12 [INFO] [stdout] | [INFO] [stdout] 430 | if let Some(document_state) = self.documents.get(¶ms.text_document.uri) { [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/server.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | } 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] 430 ~ match self.documents.get(¶ms.text_document.uri) { Some(document_state) => { [INFO] [stdout] 431 | add_boolean_formatting_option!(self, params.options.properties, empty_line_after_prod); [INFO] [stdout] ... [INFO] [stdout] 434 | document_state.format(params) [INFO] [stdout] 435 ~ } _ => { [INFO] [stdout] 436 | None [INFO] [stdout] 437 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:475:12 [INFO] [stdout] | [INFO] [stdout] 475 | if let Some(ranges) = document_state [INFO] [stdout] | _____________^ - [INFO] [stdout] | | _______________________________| [INFO] [stdout] 476 | || .parsed_data [INFO] [stdout] 477 | || .user_type_definitions [INFO] [stdout] | ||__________________________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 478 | | .find_definitions(&text_at_position) [INFO] [stdout] | |_________________________________________________^ [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/server.rs:488:9 [INFO] [stdout] | [INFO] [stdout] 488 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 475 ~ match document_state [INFO] [stdout] 476 | .parsed_data [INFO] [stdout] 477 | .user_type_definitions [INFO] [stdout] 478 | .find_definitions(&text_at_position) [INFO] [stdout] 479 ~ { Some(ranges) => { [INFO] [stdout] 480 | locations.push(Location { [INFO] [stdout] ... [INFO] [stdout] 487 | }); [INFO] [stdout] 488 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/server.rs:497:12 [INFO] [stdout] | [INFO] [stdout] 497 | if let Some(ranges) = document_state [INFO] [stdout] | _____________^ - [INFO] [stdout] | | _______________________________| [INFO] [stdout] 498 | || .parsed_data [INFO] [stdout] 499 | || .scanner_state_definitions [INFO] [stdout] | ||______________________________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 500 | | .find_definitions(&text_at_position) [INFO] [stdout] | |_________________________________________________^ [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/server.rs:510:9 [INFO] [stdout] | [INFO] [stdout] 510 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 497 ~ match document_state [INFO] [stdout] 498 | .parsed_data [INFO] [stdout] 499 | .scanner_state_definitions [INFO] [stdout] 500 | .find_definitions(&text_at_position) [INFO] [stdout] 501 ~ { Some(ranges) => { [INFO] [stdout] 502 | locations.push(Location { [INFO] [stdout] ... [INFO] [stdout] 509 | }); [INFO] [stdout] 510 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.78s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling parol-ls v1.0.0 (/tmp/fixit) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.88s [INFO] running `Command { std: "docker" "inspect" "802f2c54c8e16451c2186b3839a08cb99d58a0317290f8160eea4b73abab4790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "802f2c54c8e16451c2186b3839a08cb99d58a0317290f8160eea4b73abab4790", kill_on_drop: false }` [INFO] [stdout] 802f2c54c8e16451c2186b3839a08cb99d58a0317290f8160eea4b73abab4790