File tree 1 file changed +2
-2
lines changed
compiler/rustc_mir_transform/src/coverage
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ impl<'a> CoverageSpansGenerator<'a> {
342
342
) ;
343
343
self . take_curr ( ) ; // Discards curr.
344
344
} else {
345
- self . hold_pending_dups_unless_dominated ( ) ;
345
+ self . update_pending_dups ( ) ;
346
346
}
347
347
} else {
348
348
self . cutoff_prev_at_overlapping_curr ( ) ;
@@ -569,7 +569,7 @@ impl<'a> CoverageSpansGenerator<'a> {
569
569
/// neither `CoverageSpan` dominates the other, both (or possibly more than two) are held,
570
570
/// until their disposition is determined. In this latter case, the `prev` dup is moved into
571
571
/// `pending_dups` so the new `curr` dup can be moved to `prev` for the next iteration.
572
- fn hold_pending_dups_unless_dominated ( & mut self ) {
572
+ fn update_pending_dups ( & mut self ) {
573
573
// Equal coverage spans are ordered by dominators before dominated (if any), so it should be
574
574
// impossible for `curr` to dominate any previous `CoverageSpan`.
575
575
debug_assert ! ( !self . span_bcb_dominates( self . curr( ) , self . prev( ) ) ) ;
You can’t perform that action at this time.
0 commit comments