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