[INFO] fetching crate sqparse 0.3.0... [INFO] checking sqparse-0.3.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate sqparse 0.3.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate sqparse 0.3.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 sqparse 0.3.0 [INFO] finished tweaking crates.io crate sqparse 0.3.0 [INFO] tweaked toml for crates.io crate sqparse 0.3.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate crates.io crate sqparse 0.3.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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 699ada39840cf202b0e23e1dbad46e1d494581708b33dbb723b8e78fb3dd7375 [INFO] running `Command { std: "docker" "start" "-a" "699ada39840cf202b0e23e1dbad46e1d494581708b33dbb723b8e78fb3dd7375", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "699ada39840cf202b0e23e1dbad46e1d494581708b33dbb723b8e78fb3dd7375", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "699ada39840cf202b0e23e1dbad46e1d494581708b33dbb723b8e78fb3dd7375", kill_on_drop: false }` [INFO] [stdout] 699ada39840cf202b0e23e1dbad46e1d494581708b33dbb723b8e78fb3dd7375 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] fc7caf08ebb2003d83229be7e8fb352f61268866dfa5c3cfbc78c0e63b443bae [INFO] running `Command { std: "docker" "start" "-a" "fc7caf08ebb2003d83229be7e8fb352f61268866dfa5c3cfbc78c0e63b443bae", 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] Checking lexical-util v0.8.5 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking lexical-write-integer v0.8.5 [INFO] [stderr] Checking lexical-parse-integer v0.8.6 [INFO] [stderr] Checking lexical-parse-float v0.8.5 [INFO] [stderr] Checking lexical-write-float v0.8.5 [INFO] [stderr] Checking lexical-core v0.8.5 [INFO] [stderr] Checking lexical v6.1.1 [INFO] [stderr] Checking sqparse v0.3.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `sqparse` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lexer/token_iter.rs [INFO] [stderr] * src/token.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/lexer/token_iter.rs:11:6 [INFO] [stderr] | [INFO] [stderr] 11 | ($val: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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lexer/token_iter.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | ($val: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] 11 | ($val:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/token.rs:20:24 [INFO] [stderr] | [INFO] [stderr] 20 | ($ask_flavor:ident $actual_flavor: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/token.rs:27:64 [INFO] [stderr] | [INFO] [stderr] 27 | identifiers { $($id_name:ident => $id_val:literal $(if $id_flavor: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/token.rs:28:60 [INFO] [stderr] | [INFO] [stderr] 28 | symbols { $($sy_name:ident => $sy_val:literal $(if $sy_flavor: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 4 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/token.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 20 | ($ask_flavor:ident $actual_flavor: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] 20 | ($ask_flavor:ident $actual_flavor: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/token.rs:27:75 [INFO] [stdout] | [INFO] [stdout] 27 | identifiers { $($id_name:ident => $id_val:literal $(if $id_flavor: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] 27 | identifiers { $($id_name:ident => $id_val:literal $(if $id_flavor: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/token.rs:28:71 [INFO] [stdout] | [INFO] [stdout] 28 | symbols { $($sy_name:ident => $sy_val:literal $(if $sy_flavor:expr)?),+ } [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 28 | symbols { $($sy_name:ident => $sy_val:literal $(if $sy_flavor:expr_2021)?),+ } [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ended_or` is never used [INFO] [stdout] --> src/parser/token_list_ext.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait TokenListExt<'s>: Sized { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 30 | fn ended_or(self, res: ParseResult<'s, T>) -> ParseResult<'s, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::fmt::Display + 's` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/annotation/line_printer.rs:33:55 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn line<'s>(&mut self, line_text: &'s str) -> impl Display + 's { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/annotation/line_printer.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn line<'s>(&mut self, line_text: &'s str) -> impl Display + 's { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 33 | pub fn line<'s>(&mut self, line_text: &'s str) -> impl Display + 's + use<'s> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::fmt::Display` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/annotation/line_printer.rs:44:51 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn skip_lines(&mut self, lines: usize) -> impl Display { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/annotation/line_printer.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn skip_lines(&mut self, lines: usize) -> impl Display { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 44 | pub fn skip_lines(&mut self, lines: usize) -> impl Display + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::fmt::Display` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/annotation/line_printer.rs:52:56 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn annotate(&self, highlight: Range) -> impl Display { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/annotation/line_printer.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn annotate(&self, highlight: Range) -> impl Display { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 52 | pub fn annotate(&self, highlight: Range) -> impl Display + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::fmt::Display` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/annotation/line_printer.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn open(&mut self, highlight: Range) -> impl Display { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/annotation/line_printer.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn open(&mut self, highlight: Range) -> impl Display { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 61 | pub fn open(&mut self, highlight: Range) -> impl Display + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::fmt::Display` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/annotation/line_printer.rs:73:57 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn close(&mut self, highlight: Range) -> impl Display { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/annotation/line_printer.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn close(&mut self, highlight: Range) -> impl Display { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 73 | pub fn close(&mut self, highlight: Range) -> impl Display + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/statement.rs:639:16 [INFO] [stdout] | [INFO] [stdout] 639 | if let Some(last_namespace) = name.trailing { [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/parser/statement.rs:653:13 [INFO] [stdout] | [INFO] [stdout] 653 | } 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] 639 ~ match name.trailing { Some(last_namespace) => { [INFO] [stdout] 640 | let (tokens, constructor) = tokens.terminal(TerminalToken::Constructor)?; [INFO] [stdout] ... [INFO] [stdout] 652 | )) [INFO] [stdout] 653 ~ } _ => { [INFO] [stdout] 654 | let (tokens, definition) = function_definition(tokens)?; [INFO] [stdout] ... [INFO] [stdout] 666 | )) [INFO] [stdout] 667 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/token_list_ext.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | while let (next_tokens, Some(item)) = parse_item(tokens).maybe(tokens)? { [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/parser/token_list_ext.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/token_list_ext.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 155 | while let (next_tokens, Some(separator)) = parse_separator(tokens).maybe(tokens)? { [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/parser/token_list_ext.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/token_list_ext.rs:211:15 [INFO] [stdout] | [INFO] [stdout] 211 | while let (next_tokens, Some(separator)) = parse_separator(tokens).maybe(tokens)? { [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/parser/token_list_ext.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `sqparse` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lexer/token_iter.rs [INFO] [stderr] * src/token.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/lexer/token_iter.rs:11:6 [INFO] [stderr] | [INFO] [stderr] 11 | ($val: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/token.rs:20:24 [INFO] [stderr] | [INFO] [stderr] 20 | ($ask_flavor:ident $actual_flavor: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/token.rs:27:64 [INFO] [stderr] | [INFO] [stderr] 27 | identifiers { $($id_name:ident => $id_val:literal $(if $id_flavor: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/token.rs:28:60 [INFO] [stderr] | [INFO] [stderr] 28 | symbols { $($sy_name:ident => $sy_val:literal $(if $sy_flavor: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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lexer/token_iter.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | ($val: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] 11 | ($val:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 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/token.rs:20:39 [INFO] [stdout] | [INFO] [stdout] 20 | ($ask_flavor:ident $actual_flavor: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] 20 | ($ask_flavor:ident $actual_flavor: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/token.rs:27:75 [INFO] [stdout] | [INFO] [stdout] 27 | identifiers { $($id_name:ident => $id_val:literal $(if $id_flavor: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] 27 | identifiers { $($id_name:ident => $id_val:literal $(if $id_flavor: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/token.rs:28:71 [INFO] [stdout] | [INFO] [stdout] 28 | symbols { $($sy_name:ident => $sy_val:literal $(if $sy_flavor:expr)?),+ } [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 28 | symbols { $($sy_name:ident => $sy_val:literal $(if $sy_flavor:expr_2021)?),+ } [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `ended_or` is never used [INFO] [stdout] --> src/parser/token_list_ext.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait TokenListExt<'s>: Sized { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 30 | fn ended_or(self, res: ParseResult<'s, T>) -> ParseResult<'s, T> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::fmt::Display + 's` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/annotation/line_printer.rs:33:55 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn line<'s>(&mut self, line_text: &'s str) -> impl Display + 's { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/annotation/line_printer.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn line<'s>(&mut self, line_text: &'s str) -> impl Display + 's { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 33 | pub fn line<'s>(&mut self, line_text: &'s str) -> impl Display + 's + use<'s> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::fmt::Display` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/annotation/line_printer.rs:44:51 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn skip_lines(&mut self, lines: usize) -> impl Display { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/annotation/line_printer.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn skip_lines(&mut self, lines: usize) -> impl Display { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 44 | pub fn skip_lines(&mut self, lines: usize) -> impl Display + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::fmt::Display` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/annotation/line_printer.rs:52:56 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn annotate(&self, highlight: Range) -> impl Display { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/annotation/line_printer.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn annotate(&self, highlight: Range) -> impl Display { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 52 | pub fn annotate(&self, highlight: Range) -> impl Display + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::fmt::Display` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/annotation/line_printer.rs:61:56 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn open(&mut self, highlight: Range) -> impl Display { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/annotation/line_printer.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn open(&mut self, highlight: Range) -> impl Display { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 61 | pub fn open(&mut self, highlight: Range) -> impl Display + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl std::fmt::Display` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/annotation/line_printer.rs:73:57 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn close(&mut self, highlight: Range) -> impl Display { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/annotation/line_printer.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn close(&mut self, highlight: Range) -> impl Display { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 73 | pub fn close(&mut self, highlight: Range) -> impl Display + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/statement.rs:639:16 [INFO] [stdout] | [INFO] [stdout] 639 | if let Some(last_namespace) = name.trailing { [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/parser/statement.rs:653:13 [INFO] [stdout] | [INFO] [stdout] 653 | } 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] 639 ~ match name.trailing { Some(last_namespace) => { [INFO] [stdout] 640 | let (tokens, constructor) = tokens.terminal(TerminalToken::Constructor)?; [INFO] [stdout] ... [INFO] [stdout] 652 | )) [INFO] [stdout] 653 ~ } _ => { [INFO] [stdout] 654 | let (tokens, definition) = function_definition(tokens)?; [INFO] [stdout] ... [INFO] [stdout] 666 | )) [INFO] [stdout] 667 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/token_list_ext.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | while let (next_tokens, Some(item)) = parse_item(tokens).maybe(tokens)? { [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/parser/token_list_ext.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/token_list_ext.rs:155:15 [INFO] [stdout] | [INFO] [stdout] 155 | while let (next_tokens, Some(separator)) = parse_separator(tokens).maybe(tokens)? { [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/parser/token_list_ext.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/parser/token_list_ext.rs:211:15 [INFO] [stdout] | [INFO] [stdout] 211 | while let (next_tokens, Some(separator)) = parse_separator(tokens).maybe(tokens)? { [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/parser/token_list_ext.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/print_parser_error.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/print_lexer_error.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/print_ast.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/dryrun.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.32s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking sqparse v0.3.0 (/tmp/fixit) [INFO] [stdout] error[E0597]: `printer` does not live long enough [INFO] [stdout] --> src/annotation/formats.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 17 | let mut printer = LinePrinter::new(self.mode, self.gutter, self.line_number, 0); [INFO] [stdout] | ----------- binding `printer` declared here [INFO] [stdout] ... [INFO] [stdout] 20 | write!(f, "{}", printer.annotate(self.line_highlight.clone())) [INFO] [stdout] | ^^^^^^^-------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 21 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `printer` dropped here while still borrowed [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `impl std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `printer` does not live long enough [INFO] [stdout] --> src/annotation/formats.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut printer = LinePrinter::new(self.mode, self.gutter, *self.line_numbers.start(), 1); [INFO] [stdout] | ----------- binding `printer` declared here [INFO] [stdout] ... [INFO] [stdout] 104 | printer.close(self.last_line_highlight..self.last_line_highlight) [INFO] [stdout] | ^^^^^^^---------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 105 | ) [INFO] [stdout] 106 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `printer` dropped here while still borrowed [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `impl std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `printer` does not live long enough [INFO] [stdout] --> src/annotation/formats.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 17 | let mut printer = LinePrinter::new(self.mode, self.gutter, self.line_number, 0); [INFO] [stdout] | ----------- binding `printer` declared here [INFO] [stdout] ... [INFO] [stdout] 20 | write!(f, "{}", printer.annotate(self.line_highlight.clone())) [INFO] [stdout] | ^^^^^^^-------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 21 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `printer` dropped here while still borrowed [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `impl std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `printer` does not live long enough [INFO] [stdout] --> src/annotation/formats.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 36 | let mut printer = LinePrinter::new(self.mode, self.gutter, *self.line_numbers.start(), 1); [INFO] [stdout] | ----------- binding `printer` declared here [INFO] [stdout] ... [INFO] [stdout] 104 | printer.close(self.last_line_highlight..self.last_line_highlight) [INFO] [stdout] | ^^^^^^^---------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 105 | ) [INFO] [stdout] 106 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `printer` dropped here while still borrowed [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `impl std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the temporary is part of an expression at the end of a block; [INFO] [stdout] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sqparse` (lib) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sqparse` (lib test) due to 3 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "fc7caf08ebb2003d83229be7e8fb352f61268866dfa5c3cfbc78c0e63b443bae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc7caf08ebb2003d83229be7e8fb352f61268866dfa5c3cfbc78c0e63b443bae", kill_on_drop: false }` [INFO] [stdout] fc7caf08ebb2003d83229be7e8fb352f61268866dfa5c3cfbc78c0e63b443bae