diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-02-21 22:57:35 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-02-23 19:51:23 +1100 |
| commit | 8bd33e332b2acc5ff646ea742a8661b42f122653 (patch) | |
| tree | d3c022b9e87012848b08393c884e7ca15e2da85a | |
| parent | dda102c190f854f6b2dc165622c8173ffb752025 (diff) | |
| download | rust-8bd33e332b2acc5ff646ea742a8661b42f122653.tar.gz rust-8bd33e332b2acc5ff646ea742a8661b42f122653.zip | |
coverage: Remove some lingering references to `pending_dups`
| -rw-r--r-- | compiler/rustc_mir_transform/src/coverage/spans.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/compiler/rustc_mir_transform/src/coverage/spans.rs b/compiler/rustc_mir_transform/src/coverage/spans.rs index 98fb1d8e1c9..cdc8a950640 100644 --- a/compiler/rustc_mir_transform/src/coverage/spans.rs +++ b/compiler/rustc_mir_transform/src/coverage/spans.rs @@ -182,10 +182,9 @@ struct SpansRefiner { /// dominance between the `BasicCoverageBlock`s of equal `Span`s. sorted_spans_iter: std::vec::IntoIter<SpanFromMir>, - /// The current coverage span to compare to its `prev`, to possibly merge, discard, force the - /// discard of the `prev` (and or `pending_dups`), or keep both (with `prev` moved to - /// `pending_dups`). If `curr` is not discarded or merged, it becomes `prev` for the next - /// iteration. + /// The current coverage span to compare to its `prev`, to possibly merge, discard, + /// or cause `prev` to be modified or discarded. + /// If `curr` is not discarded or merged, it becomes `prev` for the next iteration. some_curr: Option<CurrCovspan>, /// The coverage span from a prior iteration; typically assigned from that iteration's `curr`. @@ -332,8 +331,7 @@ impl SpansRefiner { /// If `prev`s span extends left of the closure (`curr`), carve out the closure's span from /// `prev`'s span. (The closure's coverage counters will be injected when processing the /// closure's own MIR.) Add the portion of the span to the left of the closure; and if the span - /// extends to the right of the closure, update `prev` to that portion of the span. For any - /// `pending_dups`, repeat the same process. + /// extends to the right of the closure, update `prev` to that portion of the span. fn carve_out_span_for_closure(&mut self) { let prev = self.prev(); let curr = self.curr(); |
