@@ -420,6 +420,7 @@ pub struct DiagCtxt {
420420/// as well as inconsistent state observation.
421421struct 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