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 @@ -462,7 +462,7 @@ impl<'a> CoverageSpansGenerator<'a> {
462
462
/// `pending_dups` could have as few as one span)
463
463
/// In either case, no more spans will match the span of `pending_dups`, so
464
464
/// add the `pending_dups` if they don't overlap `curr`, and clear the list.
465
- fn check_pending_dups ( & mut self ) {
465
+ fn maybe_flush_pending_dups ( & mut self ) {
466
466
if let Some ( dup) = self . pending_dups . last ( )
467
467
&& dup. span != self . prev ( ) . span
468
468
{
@@ -503,7 +503,7 @@ impl<'a> CoverageSpansGenerator<'a> {
503
503
// by `self.curr_mut().merge_from(prev)`.
504
504
self . curr_original_span = curr. span ;
505
505
self . some_curr . replace ( curr) ;
506
- self . check_pending_dups ( ) ;
506
+ self . maybe_flush_pending_dups ( ) ;
507
507
return true ;
508
508
}
509
509
}
You can’t perform that action at this time.
0 commit comments