mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 09:27:25 +00:00
while_let_loop uses placeholders in suggestions
Due to that we can't make the lint MachineApplicable anymore.
This commit is contained in:
parent
d516925ec8
commit
e974d84d03
1 changed files with 2 additions and 2 deletions
|
@ -530,12 +530,12 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
|
|||
return;
|
||||
}
|
||||
|
||||
// NOTE: we used to make build a body here instead of using
|
||||
// NOTE: we used to build a body here instead of using
|
||||
// ellipsis, this was removed because:
|
||||
// 1) it was ugly with big bodies;
|
||||
// 2) it was not indented properly;
|
||||
// 3) it wasn’t very smart (see #675).
|
||||
let mut applicability = Applicability::MachineApplicable;
|
||||
let mut applicability = Applicability::HasPlaceholders;
|
||||
span_lint_and_sugg(
|
||||
cx,
|
||||
WHILE_LET_LOOP,
|
||||
|
|
Loading…
Reference in a new issue