Function clippy_utils::source::line_span
source · fn line_span<T: LintContext>(cx: &T, 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 = ();
// ^^^^^^^^^^^^^^