coverage: Remove some lingering references to pending_dups
This commit is contained in:
parent
dda102c190
commit
8bd33e332b
1 changed files with 4 additions and 6 deletions
|
@ -182,10 +182,9 @@ struct SpansRefiner {
|
||||||
/// dominance between the `BasicCoverageBlock`s of equal `Span`s.
|
/// dominance between the `BasicCoverageBlock`s of equal `Span`s.
|
||||||
sorted_spans_iter: std::vec::IntoIter<SpanFromMir>,
|
sorted_spans_iter: std::vec::IntoIter<SpanFromMir>,
|
||||||
|
|
||||||
/// The current coverage span to compare to its `prev`, to possibly merge, discard, force the
|
/// The current coverage span to compare to its `prev`, to possibly merge, discard,
|
||||||
/// discard of the `prev` (and or `pending_dups`), or keep both (with `prev` moved to
|
/// or cause `prev` to be modified or discarded.
|
||||||
/// `pending_dups`). If `curr` is not discarded or merged, it becomes `prev` for the next
|
/// If `curr` is not discarded or merged, it becomes `prev` for the next iteration.
|
||||||
/// iteration.
|
|
||||||
some_curr: Option<CurrCovspan>,
|
some_curr: Option<CurrCovspan>,
|
||||||
|
|
||||||
/// The coverage span from a prior iteration; typically assigned from that iteration's `curr`.
|
/// 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
|
/// 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
|
/// `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
|
/// 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
|
/// extends to the right of the closure, update `prev` to that portion of the span.
|
||||||
/// `pending_dups`, repeat the same process.
|
|
||||||
fn carve_out_span_for_closure(&mut self) {
|
fn carve_out_span_for_closure(&mut self) {
|
||||||
let prev = self.prev();
|
let prev = self.prev();
|
||||||
let curr = self.curr();
|
let curr = self.curr();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue