about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-23 06:34:00 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-28 08:33:25 +1100
commit366536ba2beda7cd5197e76c7c918066ffe5ad40 (patch)
tree67c05c3ad9efca5ff702855dbbe5f44e2ad1a234 /compiler/rustc_errors/src
parent6588f5b7494afdd9bff016b786daad2e96739b97 (diff)
downloadrust-366536ba2beda7cd5197e76c7c918066ffe5ad40.tar.gz
rust-366536ba2beda7cd5197e76c7c918066ffe5ad40.zip
Rename `DelayedDiagnostic` as `DelayedDiagInner`.
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 837a055dae2..40c51c5eded 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -433,7 +433,7 @@ struct DiagCtxtInner {
     /// lint error count.
     lint_err_guars: Vec<ErrorGuaranteed>,
     /// The delayed bugs and their error guarantees.
-    delayed_bugs: Vec<(DelayedDiagnostic, ErrorGuaranteed)>,
+    delayed_bugs: Vec<(DelayedDiagInner, ErrorGuaranteed)>,
 
     /// The number of stashed errors. Unlike the other counts, this can go up
     /// and down, so it doesn't guarantee anything.
@@ -1354,7 +1354,7 @@ impl DiagCtxtInner {
                     #[allow(deprecated)]
                     let guar = ErrorGuaranteed::unchecked_error_guaranteed();
                     self.delayed_bugs
-                        .push((DelayedDiagnostic::with_backtrace(diagnostic, backtrace), guar));
+                        .push((DelayedDiagInner::with_backtrace(diagnostic, backtrace), guar));
                     Some(guar)
                 };
             }
@@ -1581,14 +1581,14 @@ impl DiagCtxtInner {
     }
 }
 
-struct DelayedDiagnostic {
+struct DelayedDiagInner {
     inner: DiagInner,
     note: Backtrace,
 }
 
-impl DelayedDiagnostic {
+impl DelayedDiagInner {
     fn with_backtrace(diagnostic: DiagInner, backtrace: Backtrace) -> Self {
-        DelayedDiagnostic { inner: diagnostic, note: backtrace }
+        DelayedDiagInner { inner: diagnostic, note: backtrace }
     }
 
     fn decorate(self, dcx: &DiagCtxtInner) -> DiagInner {