rustc_mir_transform::coverage::unexpand

Function unexpand_into_body_span

Source
pub(crate) fn unexpand_into_body_span(
    original_span: Span,
    body_span: Span,
) -> Option<Span>
Expand description

Walks through the expansion ancestors of original_span to find a span that is contained in body_span and has the same [syntax context] as body_span.