@@ -432,9 +432,9 @@ struct HandlerInner {
432432 deduplicated_err_count : usize ,
433433 emitter : Box < DynEmitter > ,
434434 span_delayed_bugs : Vec < DelayedDiagnostic > ,
435- delayed_good_path_bugs : Vec < DelayedDiagnostic > ,
435+ good_path_delayed_bugs : Vec < DelayedDiagnostic > ,
436436 /// This flag indicates that an expected diagnostic was emitted and suppressed.
437- /// This is used for the `delayed_good_path_bugs ` check.
437+ /// This is used for the `good_path_delayed_bugs ` check.
438438 suppressed_expected_diag : bool ,
439439
440440 /// This set contains the `DiagnosticId` of all emitted diagnostics to avoid
@@ -549,16 +549,16 @@ impl Drop for HandlerInner {
549549 self . flush_delayed ( bugs, "no errors encountered even though `span_delayed_bug` issued" ) ;
550550 }
551551
552- // FIXME(eddyb) this explains what `delayed_good_path_bugs ` are!
552+ // FIXME(eddyb) this explains what `good_path_delayed_bugs ` are!
553553 // They're `span_delayed_bugs` but for "require some diagnostic happened"
554554 // instead of "require some error happened". Sadly that isn't ideal, as
555555 // lints can be `#[allow]`'d, potentially leading to this triggering.
556556 // Also, "good path" should be replaced with a better naming.
557557 if !self . has_any_message ( ) && !self . suppressed_expected_diag && !std:: thread:: panicking ( ) {
558- let bugs = std:: mem:: replace ( & mut self . delayed_good_path_bugs , Vec :: new ( ) ) ;
558+ let bugs = std:: mem:: replace ( & mut self . good_path_delayed_bugs , Vec :: new ( ) ) ;
559559 self . flush_delayed (
560560 bugs,
561- "no warnings or errors encountered even though `delayed_good_path_bugs ` issued" ,
561+ "no warnings or errors encountered even though `good_path_delayed_bugs ` issued" ,
562562 ) ;
563563 }
564564
@@ -610,7 +610,7 @@ impl Handler {
610610 deduplicated_warn_count : 0 ,
611611 emitter,
612612 span_delayed_bugs : Vec :: new ( ) ,
613- delayed_good_path_bugs : Vec :: new ( ) ,
613+ good_path_delayed_bugs : Vec :: new ( ) ,
614614 suppressed_expected_diag : false ,
615615 taught_diagnostics : Default :: default ( ) ,
616616 emitted_diagnostic_codes : Default :: default ( ) ,
@@ -665,7 +665,7 @@ impl Handler {
665665
666666 // actually free the underlying memory (which `clear` would not do)
667667 inner. span_delayed_bugs = Default :: default ( ) ;
668- inner. delayed_good_path_bugs = Default :: default ( ) ;
668+ inner. good_path_delayed_bugs = Default :: default ( ) ;
669669 inner. taught_diagnostics = Default :: default ( ) ;
670670 inner. emitted_diagnostic_codes = Default :: default ( ) ;
671671 inner. emitted_diagnostics = Default :: default ( ) ;
@@ -1008,8 +1008,8 @@ impl Handler {
10081008
10091009 // FIXME(eddyb) note the comment inside `impl Drop for HandlerInner`, that's
10101010 // where the explanation of what "good path" is (also, it should be renamed).
1011- pub fn delay_good_path_bug ( & self , msg : impl Into < DiagnosticMessage > ) {
1012- self . inner . borrow_mut ( ) . delay_good_path_bug ( msg)
1011+ pub fn good_path_delayed_bug ( & self , msg : impl Into < DiagnosticMessage > ) {
1012+ self . inner . borrow_mut ( ) . good_path_delayed_bug ( msg)
10131013 }
10141014
10151015 #[ track_caller]
@@ -1444,7 +1444,7 @@ impl HandlerInner {
14441444 }
14451445
14461446 fn delayed_bug_count ( & self ) -> usize {
1447- self . span_delayed_bugs . len ( ) + self . delayed_good_path_bugs . len ( )
1447+ self . span_delayed_bugs . len ( ) + self . good_path_delayed_bugs . len ( )
14481448 }
14491449
14501450 fn print_error_count ( & mut self , registry : & Registry ) {
@@ -1620,13 +1620,13 @@ impl HandlerInner {
16201620
16211621 // FIXME(eddyb) note the comment inside `impl Drop for HandlerInner`, that's
16221622 // where the explanation of what "good path" is (also, it should be renamed).
1623- fn delay_good_path_bug ( & mut self , msg : impl Into < DiagnosticMessage > ) {
1623+ fn good_path_delayed_bug ( & mut self , msg : impl Into < DiagnosticMessage > ) {
16241624 let mut diagnostic = Diagnostic :: new ( Level :: DelayedBug , msg) ;
16251625 if self . flags . report_delayed_bugs {
16261626 self . emit_diagnostic ( & mut diagnostic) ;
16271627 }
16281628 let backtrace = std:: backtrace:: Backtrace :: capture ( ) ;
1629- self . delayed_good_path_bugs . push ( DelayedDiagnostic :: with_backtrace ( diagnostic, backtrace) ) ;
1629+ self . good_path_delayed_bugs . push ( DelayedDiagnostic :: with_backtrace ( diagnostic, backtrace) ) ;
16301630 }
16311631
16321632 fn failure_note ( & mut self , msg : impl Into < DiagnosticMessage > ) {
0 commit comments