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 @@ -459,7 +459,7 @@ impl<'a> CoverageSpansGenerator<'a> {
459459 /// `pending_dups` could have as few as one span)
460460 /// In either case, no more spans will match the span of `pending_dups`, so
461461 /// add the `pending_dups` if they don't overlap `curr`, and clear the list.
462- fn check_pending_dups ( & mut self ) {
462+ fn maybe_flush_pending_dups ( & mut self ) {
463463 if let Some ( dup) = self . pending_dups . last ( ) && dup. span != self . prev ( ) . span {
464464 debug ! (
465465 " SAME spans, but pending_dups are NOT THE SAME, so BCBs matched on \
@@ -498,7 +498,7 @@ impl<'a> CoverageSpansGenerator<'a> {
498498 // by `self.curr_mut().merge_from(prev)`.
499499 self . curr_original_span = curr. span ;
500500 self . some_curr . replace ( curr) ;
501- self . check_pending_dups ( ) ;
501+ self . maybe_flush_pending_dups ( ) ;
502502 return true ;
503503 }
504504 }
You can’t perform that action at this time.
0 commit comments