Function rustc_mir_transform::coverage::spans::from_mir::unexpand_into_body_span_with_visible_macro
source · pub(crate) fn unexpand_into_body_span_with_visible_macro(
original_span: Span,
body_span: Span
) -> Option<(Span, Option<Symbol>)>
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.).