about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-29 14:53:44 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-03-05 12:14:49 +1100
commit60ea6e2831952110b81fd76190ee66a2f094febd (patch)
treef053e3cc1ca05acde0bb62c5eb988bfb9df7af02 /compiler/rustc_lint/src
parentf16a8d03902a2a73b15024b70ef7d9ebc5649a2c (diff)
downloadrust-60ea6e2831952110b81fd76190ee66a2f094febd.tar.gz
rust-60ea6e2831952110b81fd76190ee66a2f094febd.zip
Rename `SubdiagnosticMessage` as `SubdiagMessage`.
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/internal.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/internal.rs b/compiler/rustc_lint/src/internal.rs
index 85d78374881..fdcd0192e6a 100644
--- a/compiler/rustc_lint/src/internal.rs
+++ b/compiler/rustc_lint/src/internal.rs
@@ -403,7 +403,7 @@ impl LateLintPass<'_> for Diagnostics {
             debug!(?ty);
             if let Some(adt_def) = ty.ty_adt_def()
                 && let Some(name) = cx.tcx.get_diagnostic_name(adt_def.did())
-                && matches!(name, sym::DiagMessage | sym::SubdiagnosticMessage)
+                && matches!(name, sym::DiagMessage | sym::SubdiagMessage)
             {
                 found_diagnostic_message = true;
                 break;