Skip to main content

line_span

Function line_span 

Source
fn line_span<'sm>(sm: impl HasSourceMap<'sm>, span: Span) -> Span
Expand description

Extends the span to the beginning of the spans line, incl. whitespaces.

       let x = ();
//             ^^
// will be converted to
       let x = ();
// ^^^^^^^^^^^^^^