Skip to content

Commit b332cec

Browse files
committed
coverage: Rename hold_pending_dups_unless_dominated to update_pending_dups
1 parent d6c3e99 commit b332cec

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_mir_transform/src/coverage

1 file changed

+2
-2
lines changed

compiler/rustc_mir_transform/src/coverage/spans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl<'a> CoverageSpansGenerator<'a> {
342342
);
343343
self.take_curr(); // Discards curr.
344344
} else {
345-
self.hold_pending_dups_unless_dominated();
345+
self.update_pending_dups();
346346
}
347347
} else {
348348
self.cutoff_prev_at_overlapping_curr();
@@ -565,7 +565,7 @@ impl<'a> CoverageSpansGenerator<'a> {
565565
/// neither `CoverageSpan` dominates the other, both (or possibly more than two) are held,
566566
/// until their disposition is determined. In this latter case, the `prev` dup is moved into
567567
/// `pending_dups` so the new `curr` dup can be moved to `prev` for the next iteration.
568-
fn hold_pending_dups_unless_dominated(&mut self) {
568+
fn update_pending_dups(&mut self) {
569569
// Equal coverage spans are ordered by dominators before dominated (if any), so it should be
570570
// impossible for `curr` to dominate any previous `CoverageSpan`.
571571
debug_assert!(!self.span_bcb_dominates(self.curr(), self.prev()));

0 commit comments

Comments
 (0)