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