rustc_mir_transform::coverage

Function create_mappings

Source
fn create_mappings(
    extracted_mappings: &ExtractedMappings,
    coverage_counters: &CoverageCounters,
) -> Vec<Mapping>
Expand description

For each coverage span extracted from MIR, create a corresponding mapping.

Precondition: All BCBs corresponding to those spans have been given coverage counters.