Function rustc_span::source_map::original_sp
source · pub fn original_sp(sp: Span, enclosing_sp: Span) -> Span
Expand description
Returns the span itself if it doesn’t come from a macro expansion,
otherwise return the call site span up to the enclosing_sp
by
following the expn_data
chain.