Function rustc_mir_transform::coverage::create_mappings
source · fn create_mappings<'tcx>(
tcx: TyCtxt<'tcx>,
hir_info: &ExtractedHirInfo,
coverage_spans: &CoverageSpans,
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.