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 @@ -343,7 +343,7 @@ impl<'a> CoverageSpansGenerator<'a> {
343
343
) ;
344
344
self . take_curr ( ) ; // Discards curr.
345
345
} else {
346
- self . hold_pending_dups_unless_dominated ( ) ;
346
+ self . update_pending_dups ( ) ;
347
347
}
348
348
} else {
349
349
self . cutoff_prev_at_overlapping_curr ( ) ;
@@ -572,7 +572,7 @@ impl<'a> CoverageSpansGenerator<'a> {
572
572
/// neither `CoverageSpan` dominates the other, both (or possibly more than two) are held,
573
573
/// until their disposition is determined. In this latter case, the `prev` dup is moved into
574
574
/// `pending_dups` so the new `curr` dup can be moved to `prev` for the next iteration.
575
- fn hold_pending_dups_unless_dominated ( & mut self ) {
575
+ fn update_pending_dups ( & mut self ) {
576
576
// Equal coverage spans are ordered by dominators before dominated (if any), so it should be
577
577
// impossible for `curr` to dominate any previous `CoverageSpan`.
578
578
debug_assert ! ( !self . span_bcb_dominates( self . curr( ) , self . prev( ) ) ) ;
You can’t perform that action at this time.
0 commit comments