Skip to content

Commit 280f607

Browse files
committed
coverage: Rename check_pending_dups to maybe_flush_pending_dups
This name does a better job of expressing what the method ultimately does.
1 parent 5a61696 commit 280f607

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
@@ -464,7 +464,7 @@ impl<'a> CoverageSpansGenerator<'a> {
464464
/// `pending_dups` could have as few as one span)
465465
/// In either case, no more spans will match the span of `pending_dups`, so
466466
/// add the `pending_dups` if they don't overlap `curr`, and clear the list.
467-
fn check_pending_dups(&mut self) {
467+
fn maybe_flush_pending_dups(&mut self) {
468468
if let Some(dup) = self.pending_dups.last()
469469
&& dup.span != self.prev().span
470470
{
@@ -505,7 +505,7 @@ impl<'a> CoverageSpansGenerator<'a> {
505505
// by `self.curr_mut().merge_from(prev)`.
506506
self.curr_original_span = curr.span;
507507
self.some_curr.replace(curr);
508-
self.check_pending_dups();
508+
self.maybe_flush_pending_dups();
509509
return true;
510510
}
511511
}

0 commit comments

Comments
 (0)