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 @@ -463,7 +463,7 @@ impl<'a> CoverageSpansGenerator<'a> {
463
463
/// `pending_dups` could have as few as one span)
464
464
/// In either case, no more spans will match the span of `pending_dups`, so
465
465
/// add the `pending_dups` if they don't overlap `curr`, and clear the list.
466
- fn check_pending_dups ( & mut self ) {
466
+ fn maybe_flush_pending_dups ( & mut self ) {
467
467
if let Some ( dup) = self . pending_dups . last ( ) && dup. span != self . prev ( ) . span {
468
468
debug ! (
469
469
" SAME spans, but pending_dups are NOT THE SAME, so BCBs matched on \
@@ -502,7 +502,7 @@ impl<'a> CoverageSpansGenerator<'a> {
502
502
// by `self.curr_mut().merge_from(prev)`.
503
503
self . curr_original_span = curr. span ;
504
504
self . some_curr . replace ( curr) ;
505
- self . check_pending_dups ( ) ;
505
+ self . maybe_flush_pending_dups ( ) ;
506
506
return true ;
507
507
}
508
508
}
You can’t perform that action at this time.
0 commit comments