rustc_mir_transform::coverage::spans

Function remove_unwanted_overlapping_spans

Source
fn remove_unwanted_overlapping_spans(sorted_spans: Vec<Covspan>) -> Vec<Covspan>
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.