@@ -420,6 +420,7 @@ pub struct DiagCtxt {
420
420
/// as well as inconsistent state observation.
421
421
struct DiagCtxtInner {
422
422
flags : DiagCtxtFlags ,
423
+
423
424
/// The number of lint errors that have been emitted.
424
425
lint_err_count : usize ,
425
426
/// The number of errors that have been emitted, including duplicates.
@@ -429,6 +430,9 @@ struct DiagCtxtInner {
429
430
err_count : usize ,
430
431
warn_count : usize ,
431
432
deduplicated_err_count : usize ,
433
+ /// The warning count, used for a recap upon finishing
434
+ deduplicated_warn_count : usize ,
435
+
432
436
emitter : Box < DynEmitter > ,
433
437
span_delayed_bugs : Vec < DelayedDiagnostic > ,
434
438
good_path_delayed_bugs : Vec < DelayedDiagnostic > ,
@@ -455,9 +459,6 @@ struct DiagCtxtInner {
455
459
/// When `.abort_if_errors()` is called, these are also emitted.
456
460
stashed_diagnostics : FxIndexMap < ( Span , StashKey ) , Diagnostic > ,
457
461
458
- /// The warning count, used for a recap upon finishing
459
- deduplicated_warn_count : usize ,
460
-
461
462
future_breakage_diagnostics : Vec < Diagnostic > ,
462
463
463
464
/// The [`Self::unstable_expect_diagnostics`] should be empty when this struct is
0 commit comments