mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-11 14:33:32 +00:00
add line_count and max_lines to too_many_lines lint message
This commit is contained in:
parent
f253dd06f9
commit
04ba07bdc3
@ -374,7 +374,12 @@ impl<'tcx> Functions {
|
||||
}
|
||||
|
||||
if line_count > self.max_lines {
|
||||
span_lint(cx, TOO_MANY_LINES, span, "this function has a large number of lines")
|
||||
span_lint(
|
||||
cx,
|
||||
TOO_MANY_LINES,
|
||||
span,
|
||||
&format!("this function has too many lines ({}/{})", line_count, self.max_lines),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user