Skip to content

Commit 7b9c644

Browse files
committed
coverage: Rename hold_pending_dups_unless_dominated to update_pending_dups
1 parent 280f607 commit 7b9c644

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
@@ -343,7 +343,7 @@ impl<'a> CoverageSpansGenerator<'a> {
343343
);
344344
self.take_curr(); // Discards curr.
345345
} else {
346-
self.hold_pending_dups_unless_dominated();
346+
self.update_pending_dups();
347347
}
348348
} else {
349349
self.cutoff_prev_at_overlapping_curr();
@@ -572,7 +572,7 @@ impl<'a> CoverageSpansGenerator<'a> {
572572
/// neither `CoverageSpan` dominates the other, both (or possibly more than two) are held,
573573
/// until their disposition is determined. In this latter case, the `prev` dup is moved into
574574
/// `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) {
576576
// Equal coverage spans are ordered by dominators before dominated (if any), so it should be
577577
// impossible for `curr` to dominate any previous `CoverageSpan`.
578578
debug_assert!(!self.span_bcb_dominates(self.curr(), self.prev()));

0 commit comments

Comments
 (0)