Function clippy_utils::source::first_line_of_span
source · pub fn first_line_of_span(sess: &impl HasSession, span: Span) -> Span
Expand description
Returns a new Span that extends the original Span to the first non-whitespace char of the first line.
ⓘ
let x = ();
// ^^
// will be converted to
let x = ();
// ^^^^^^^^^^