diff options
| author | bors <bors@rust-lang.org> | 2024-01-11 05:04:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-11 05:04:54 +0000 |
| commit | 67659fb7952bad8c5d54955f69d289f03763e0b1 (patch) | |
| tree | 9a9be3d5c61a45756bd79fc9ac1e5173dbcc41c9 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 2dc23e7952089efd24d0becc126067ae694b6ba8 (diff) | |
| parent | 2a5ae9f55964143dc722f32e52d7aeda2c32633f (diff) | |
| download | rust-67659fb7952bad8c5d54955f69d289f03763e0b1.tar.gz rust-67659fb7952bad8c5d54955f69d289f03763e0b1.zip | |
Auto merge of #3264 - rust-lang:rustup-2024-01-11, r=saethlin
Automatic Rustup
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index db777266b59..8ca02452342 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1753,7 +1753,7 @@ impl<'a> Parser<'a> { err: impl FnOnce(&Self) -> DiagnosticBuilder<'a>, ) -> L { if let Some(diag) = self.dcx().steal_diagnostic(lifetime.span, StashKey::LifetimeIsChar) { - diag.span_suggestion_verbose_mv( + diag.with_span_suggestion_verbose( lifetime.span.shrink_to_hi(), "add `'` to close the char literal", "'", @@ -1762,7 +1762,7 @@ impl<'a> Parser<'a> { .emit(); } else { err(self) - .span_suggestion_verbose_mv( + .with_span_suggestion_verbose( lifetime.span.shrink_to_hi(), "add `'` to close the char literal", "'", @@ -2150,7 +2150,7 @@ impl<'a> Parser<'a> { if [sym::i32, sym::u32, sym::isize, sym::usize].contains(&suffix) { // #59553: warn instead of reject out of hand to allow the fix to percolate // through the ecosystem when people fix their macros - self.dcx().emit_warning(errors::InvalidLiteralSuffixOnTupleIndex { + self.dcx().emit_warn(errors::InvalidLiteralSuffixOnTupleIndex { span, suffix, exception: Some(()), |
