Function rustc_mir_transform::coverage::spans::from_mir::extract_covspans_from_mir
source ยท pub(crate) fn extract_covspans_from_mir(
mir_body: &Body<'_>,
hir_info: &ExtractedHirInfo,
basic_coverage_blocks: &CoverageGraph,
) -> ExtractedCovspans
Expand description
Traverses the MIR body to produce an initial collection of coverage-relevant spans, each associated with a node in the coverage graph (BCB) and possibly other metadata.