fn line_span(sess: &impl HasSession, 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 = ();
// ^^^^^^^^^^^^^^
fn line_span(sess: &impl HasSession, span: Span) -> Span
Extends the span to the beginning of the spans line, incl. whitespaces.
let x = ();
// ^^
// will be converted to
let x = ();
// ^^^^^^^^^^^^^^