about summary refs log tree commit diff
path: root/compiler/rustc_infer/src/errors
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-29 11:58:51 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-03-05 12:14:49 +1100
commit18715c98c67235274843974c928a70e84946398b (patch)
treeb7b610fd528d57a6efcbc78c734e89f1f236f8ec /compiler/rustc_infer/src/errors
parentd849f5c2259ae6b5d2c11e42ff4b78f303a9d909 (diff)
downloadrust-18715c98c67235274843974c928a70e84946398b.tar.gz
rust-18715c98c67235274843974c928a70e84946398b.zip
Rename `DiagnosticMessage` as `DiagMessage`.
Diffstat (limited to 'compiler/rustc_infer/src/errors')
-rw-r--r--compiler/rustc_infer/src/errors/mod.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_infer/src/errors/mod.rs b/compiler/rustc_infer/src/errors/mod.rs
index cecc52c8326..f2cb1eb2f98 100644
--- a/compiler/rustc_infer/src/errors/mod.rs
+++ b/compiler/rustc_infer/src/errors/mod.rs
@@ -1,6 +1,6 @@
 use hir::GenericParamKind;
 use rustc_errors::{
-    codes::*, AddToDiagnostic, Applicability, Diag, DiagStyledString, DiagnosticMessage,
+    codes::*, AddToDiagnostic, Applicability, Diag, DiagMessage, DiagStyledString,
     EmissionGuarantee, IntoDiagnosticArg, MultiSpan, SubdiagnosticMessageOp,
 };
 use rustc_hir as hir;
@@ -209,11 +209,11 @@ impl<'a> SourceKindMultiSuggestion<'a> {
 pub enum RegionOriginNote<'a> {
     Plain {
         span: Span,
-        msg: DiagnosticMessage,
+        msg: DiagMessage,
     },
     WithName {
         span: Span,
-        msg: DiagnosticMessage,
+        msg: DiagMessage,
         name: &'a str,
         continues: bool,
     },
@@ -230,7 +230,7 @@ impl AddToDiagnostic for RegionOriginNote<'_> {
         diag: &mut Diag<'_, G>,
         _f: F,
     ) {
-        let mut label_or_note = |span, msg: DiagnosticMessage| {
+        let mut label_or_note = |span, msg: DiagMessage| {
             let sub_count = diag.children.iter().filter(|d| d.span.is_dummy()).count();
             let expanded_sub_count = diag.children.iter().filter(|d| !d.span.is_dummy()).count();
             let span_is_primary = diag.span.primary_spans().iter().all(|&sp| sp == span);
@@ -766,7 +766,7 @@ impl AddToDiagnostic for ConsiderBorrowingParamHelp {
     ) {
         let mut type_param_span: MultiSpan = self.spans.clone().into();
         for &span in &self.spans {
-            // Seems like we can't call f() here as Into<DiagnosticMessage> is required
+            // Seems like we can't call f() here as Into<DiagMessage> is required
             type_param_span.push_span_label(span, fluent::infer_tid_consider_borrowing);
         }
         let msg = f(diag, fluent::infer_tid_param_help.into());