Function rustc_mir_transform::coverage::spans::refine_sorted_spans

source ·
fn refine_sorted_spans(sorted_spans: Vec<SpanFromMir>) -> Vec<RefinedCovspan>
Expand description

Takes one of the buckets of (sorted) spans extracted from MIR, and “refines” those spans by removing spans that overlap in unwanted ways, and by merging compatible adjacent spans.