[−][src]Function syntax::source_map::original_sp
pub fn original_sp(sp: Span, enclosing_sp: Span) -> Span
⚙️ This is an internal compiler API. (rustc_private
)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml
.
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.