summary refs log tree commit diff
path: root/compiler/rustc_lint/src/errors.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-29 16:18:19 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-03-05 12:14:49 +1100
commit573267cf3c10c13f4cb3b9935affd05925d938d0 (patch)
treece60e5aa75d4f6074bfe1ed890fec5a1185176ec /compiler/rustc_lint/src/errors.rs
parent60ea6e2831952110b81fd76190ee66a2f094febd (diff)
downloadrust-573267cf3c10c13f4cb3b9935affd05925d938d0.tar.gz
rust-573267cf3c10c13f4cb3b9935affd05925d938d0.zip
Rename `SubdiagnosticMessageOp` as `SubdiagMessageOp`.
Diffstat (limited to 'compiler/rustc_lint/src/errors.rs')
-rw-r--r--compiler/rustc_lint/src/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/errors.rs b/compiler/rustc_lint/src/errors.rs
index 3be792a9e4f..d73f9e7a4a1 100644
--- a/compiler/rustc_lint/src/errors.rs
+++ b/compiler/rustc_lint/src/errors.rs
@@ -1,5 +1,5 @@
 use crate::fluent_generated as fluent;
-use rustc_errors::{codes::*, AddToDiagnostic, Diag, EmissionGuarantee, SubdiagnosticMessageOp};
+use rustc_errors::{codes::*, AddToDiagnostic, Diag, EmissionGuarantee, SubdiagMessageOp};
 use rustc_macros::{Diagnostic, Subdiagnostic};
 use rustc_session::lint::Level;
 use rustc_span::{Span, Symbol};
@@ -24,7 +24,7 @@ pub enum OverruledAttributeSub {
 }
 
 impl AddToDiagnostic for OverruledAttributeSub {
-    fn add_to_diagnostic_with<G: EmissionGuarantee, F: SubdiagnosticMessageOp<G>>(
+    fn add_to_diagnostic_with<G: EmissionGuarantee, F: SubdiagMessageOp<G>>(
         self,
         diag: &mut Diag<'_, G>,
         _f: F,