about summary refs log tree commit diff
path: root/compiler/rustc_session/src/parse.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_session/src/parse.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_session/src/parse.rs')
-rw-r--r--compiler/rustc_session/src/parse.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs
index 6af951c1aa7..25b5422f322 100644
--- a/compiler/rustc_session/src/parse.rs
+++ b/compiler/rustc_session/src/parse.rs
@@ -7,7 +7,7 @@ use crate::errors::{
     SuggestUpgradeCompiler,
 };
 use crate::lint::{
-    builtin::UNSTABLE_SYNTAX_PRE_EXPANSION, BufferedEarlyLint, BuiltinLintDiagnostics, Lint, LintId,
+    builtin::UNSTABLE_SYNTAX_PRE_EXPANSION, BufferedEarlyLint, BuiltinLintDiag, Lint, LintId,
 };
 use crate::Session;
 use rustc_ast::node_id::NodeId;
@@ -298,7 +298,7 @@ impl ParseSess {
                 node_id,
                 msg: msg.into(),
                 lint_id: LintId::of(lint),
-                diagnostic: BuiltinLintDiagnostics::Normal,
+                diagnostic: BuiltinLintDiag::Normal,
             });
         });
     }
@@ -309,7 +309,7 @@ impl ParseSess {
         span: impl Into<MultiSpan>,
         node_id: NodeId,
         msg: impl Into<DiagMessage>,
-        diagnostic: BuiltinLintDiagnostics,
+        diagnostic: BuiltinLintDiag,
     ) {
         self.buffered_lints.with_lock(|buffered_lints| {
             buffered_lints.push(BufferedEarlyLint {