diff options
| author | bors <bors@rust-lang.org> | 2024-03-10 05:19:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-10 05:19:18 +0000 |
| commit | 16316a960530bc966d48857dfb6a481c908b4665 (patch) | |
| tree | 700deae5c55afdbf41567b674b6e642c5b9c78e0 /compiler/rustc_parse/src/parser | |
| parent | ac968d4804a1990df1db99a865889e5e814dc2f6 (diff) | |
| parent | 2ecfbaef0a68fe6fb3aa7758d9a1bad531490365 (diff) | |
| download | rust-16316a960530bc966d48857dfb6a481c908b4665.tar.gz rust-16316a960530bc966d48857dfb6a481c908b4665.zip | |
Auto merge of #3371 - rust-lang:rustup-2024-03-10, r=saethlin
Automatic Rustup
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs index 2f7ac7d3a12..de088b9364b 100644 --- a/compiler/rustc_parse/src/parser/diagnostics.rs +++ b/compiler/rustc_parse/src/parser/diagnostics.rs @@ -667,7 +667,7 @@ impl<'a> Parser<'a> { { err.note("you may be trying to write a c-string literal"); err.note("c-string literals require Rust 2021 or later"); - HelpUseLatestEdition::new().add_to_diagnostic(&mut err); + err.subdiagnostic(self.dcx(), HelpUseLatestEdition::new()); } // `pub` may be used for an item or `pub(crate)` |
