Function rustc_mir_transform::coverage::spans::from_mir::unexpand_into_body_span
source · fn unexpand_into_body_span(span: Span, body_span: Span) -> Option<Span>Expand description
Returns an extrapolated span (pre-expansion1) 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 the body_span, None is returned.
1Expansions result from Rust syntax including macros, syntactic sugar, etc.).