Module rustc_mir_transform::coverage::spans::from_mir
source · Functions
- If the MIR
Statementhas a span contributive to computing coverage spans, return it; otherwise returnNone. - If the MIR
Terminatorhas a span contributive to computing coverage spans, return it; otherwise returnNone. - Returns an extrapolated span (pre-expansion) corresponding to a range within the function’s body source. This span is guaranteed to be contained within, or equal to, the
body_span. If the extrapolated span is not contained within thebody_span,Noneis returned.