Skip to content

Commit 35cac4b

Browse files
committed
Rename DelayedDiagnostic as DelayedDiagInner.
1 parent 29e1120 commit 35cac4b

File tree

1 file changed

+5
-5
lines changed
  • compiler/rustc_errors/src

1 file changed

+5
-5
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ struct DiagCtxtInner {
433433
/// lint error count.
434434
lint_err_guars: Vec<ErrorGuaranteed>,
435435
/// The delayed bugs and their error guarantees.
436-
delayed_bugs: Vec<(DelayedDiagnostic, ErrorGuaranteed)>,
436+
delayed_bugs: Vec<(DelayedDiagInner, ErrorGuaranteed)>,
437437

438438
/// The number of stashed errors. Unlike the other counts, this can go up
439439
/// and down, so it doesn't guarantee anything.
@@ -1354,7 +1354,7 @@ impl DiagCtxtInner {
13541354
#[allow(deprecated)]
13551355
let guar = ErrorGuaranteed::unchecked_error_guaranteed();
13561356
self.delayed_bugs
1357-
.push((DelayedDiagnostic::with_backtrace(diagnostic, backtrace), guar));
1357+
.push((DelayedDiagInner::with_backtrace(diagnostic, backtrace), guar));
13581358
Some(guar)
13591359
};
13601360
}
@@ -1581,14 +1581,14 @@ impl DiagCtxtInner {
15811581
}
15821582
}
15831583

1584-
struct DelayedDiagnostic {
1584+
struct DelayedDiagInner {
15851585
inner: DiagInner,
15861586
note: Backtrace,
15871587
}
15881588

1589-
impl DelayedDiagnostic {
1589+
impl DelayedDiagInner {
15901590
fn with_backtrace(diagnostic: DiagInner, backtrace: Backtrace) -> Self {
1591-
DelayedDiagnostic { inner: diagnostic, note: backtrace }
1591+
DelayedDiagInner { inner: diagnostic, note: backtrace }
15921592
}
15931593

15941594
fn decorate(self, dcx: &DiagCtxtInner) -> DiagInner {

0 commit comments

Comments
 (0)