Skip to content

Commit e0eb47c

Browse files
committed
coverage: Rename hold_pending_dups_unless_dominated to update_pending_dups
1 parent d4b4e0f commit e0eb47c

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

+2-2
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();
@@ -569,7 +569,7 @@ impl<'a> CoverageSpansGenerator<'a> {
569569
/// neither `CoverageSpan` dominates the other, both (or possibly more than two) are held,
570570
/// until their disposition is determined. In this latter case, the `prev` dup is moved into
571571
/// `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) {
573573
// Equal coverage spans are ordered by dominators before dominated (if any), so it should be
574574
// impossible for `curr` to dominate any previous `CoverageSpan`.
575575
debug_assert!(!self.span_bcb_dominates(self.curr(), self.prev()));

0 commit comments

Comments
 (0)