File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_mir_transform/src/coverage Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ impl<'a> CoverageSpansGenerator<'a> {
464464 /// `pending_dups` could have as few as one span)
465465 /// In either case, no more spans will match the span of `pending_dups`, so
466466 /// add the `pending_dups` if they don't overlap `curr`, and clear the list.
467- fn check_pending_dups ( & mut self ) {
467+ fn maybe_flush_pending_dups ( & mut self ) {
468468 let Some ( last_dup) = self . pending_dups . last ( ) else { return } ;
469469 if last_dup. span == self . prev ( ) . span {
470470 return ;
@@ -506,7 +506,7 @@ impl<'a> CoverageSpansGenerator<'a> {
506506 // by `self.curr_mut().merge_from(prev)`.
507507 self . curr_original_span = curr. span ;
508508 self . some_curr . replace ( curr) ;
509- self . check_pending_dups ( ) ;
509+ self . maybe_flush_pending_dups ( ) ;
510510 return true ;
511511 }
512512 }
You can’t perform that action at this time.
0 commit comments