Skip to content

Commit 8866780

Browse files
committed
Move DiagCtxtInner::deduplicated_warn_count.
To put it next to a similar field.
1 parent 12ba450 commit 8866780

File tree

1 file changed

+4
-3
lines changed
  • compiler/rustc_errors/src

1 file changed

+4
-3
lines changed

compiler/rustc_errors/src/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ pub struct DiagCtxt {
420420
/// as well as inconsistent state observation.
421421
struct DiagCtxtInner {
422422
flags: DiagCtxtFlags,
423+
423424
/// The number of lint errors that have been emitted.
424425
lint_err_count: usize,
425426
/// The number of errors that have been emitted, including duplicates.
@@ -429,6 +430,9 @@ struct DiagCtxtInner {
429430
err_count: usize,
430431
warn_count: usize,
431432
deduplicated_err_count: usize,
433+
/// The warning count, used for a recap upon finishing
434+
deduplicated_warn_count: usize,
435+
432436
emitter: Box<DynEmitter>,
433437
span_delayed_bugs: Vec<DelayedDiagnostic>,
434438
good_path_delayed_bugs: Vec<DelayedDiagnostic>,
@@ -455,9 +459,6 @@ struct DiagCtxtInner {
455459
/// When `.abort_if_errors()` is called, these are also emitted.
456460
stashed_diagnostics: FxIndexMap<(Span, StashKey), Diagnostic>,
457461

458-
/// The warning count, used for a recap upon finishing
459-
deduplicated_warn_count: usize,
460-
461462
future_breakage_diagnostics: Vec<Diagnostic>,
462463

463464
/// The [`Self::unstable_expect_diagnostics`] should be empty when this struct is

0 commit comments

Comments
 (0)