Function clippy_utils::line_span
source · pub(crate) 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 = ();
// ^^^^^^^^^^^^^^