diff options
| author | bors <bors@rust-lang.org> | 2024-03-05 02:58:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-05 02:58:34 +0000 |
| commit | 1547c076bfec8abb819d6a81e1e4095d267bd5b4 (patch) | |
| tree | cb13d4c597ac854933926f459bc4edc6ff7c9b5c /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 2eeff462b762ed00f9d557d8c6ad7a3d562f692a (diff) | |
| parent | 1cd957498bd4f42b69b87b4463ebde259d0a96c4 (diff) | |
| download | rust-1547c076bfec8abb819d6a81e1e4095d267bd5b4.tar.gz rust-1547c076bfec8abb819d6a81e1e4095d267bd5b4.zip | |
Auto merge of #121780 - nnethercote:diag-renaming2, r=davidtwco
Diagnostic renaming 2 A sequel to #121489. r? `@davidtwco`
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index eb9a2659618..6cc358db9fc 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -31,7 +31,7 @@ use rustc_lexer::unescape::unescape_char; use rustc_macros::Subdiagnostic; use rustc_session::errors::{report_lit_error, ExprParenthesesNeeded}; use rustc_session::lint::builtin::BREAK_WITH_LABEL_AND_LOOP; -use rustc_session::lint::BuiltinLintDiagnostics; +use rustc_session::lint::BuiltinLintDiag; use rustc_span::source_map::{self, Spanned}; use rustc_span::symbol::{kw, sym, Ident, Symbol}; use rustc_span::{BytePos, ErrorGuaranteed, Pos, Span}; @@ -1880,7 +1880,7 @@ impl<'a> Parser<'a> { lo.to(expr.span), ast::CRATE_NODE_ID, "this labeled break expression is easy to confuse with an unlabeled break with a labeled value expression", - BuiltinLintDiagnostics::BreakWithLabelAndLoop(expr.span), + BuiltinLintDiag::BreakWithLabelAndLoop(expr.span), ); } |
