Function rustc_mir_transform::coverage::spans::generate_coverage_spans
source · pub(super) fn generate_coverage_spans(
mir_body: &Body<'_>,
hir_info: &ExtractedHirInfo,
basic_coverage_blocks: &CoverageGraph
) -> Option<CoverageSpans>
Expand description
Extracts coverage-relevant spans from MIR, and associates them with their corresponding BCBs.
Returns None
if no coverage-relevant spans could be extracted.