about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-29 16:40:44 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-03-05 12:15:10 +1100
commit7aa0eea19caee96c9c811105b3df610e2759dd49 (patch)
treea44027ef593302958886fa1ff3e195bcafde4512 /compiler/rustc_parse/src/parser/expr.rs
parentd98ad0a1819ce4cf6dfb1d4c25bab92b830c2f14 (diff)
downloadrust-7aa0eea19caee96c9c811105b3df610e2759dd49.tar.gz
rust-7aa0eea19caee96c9c811105b3df610e2759dd49.zip
Rename `BuiltinLintDiagnostics` as `BuiltinLintDiag`.
Not the dropping of the trailing `s` -- this type describes a single
diagnostic and its name should be singular.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs4
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),
                     );
                 }