Skip to main content

prelude_user_span

Function prelude_user_span 

Source
pub fn prelude_user_span(
    segments: &[PreludeSegment],
    span: Span,
) -> Option<Span>
Expand description

A span of the prelude-expanded text as a span of the author’s own text — None when either end lies in spliced stdlib text. The one inversion of the prelude splice: every surface that reports a location against the author’s file translates through this.