Skip to content

Commit 1132caa

Browse files
committedApr 17, 2019
Auto merge of #3975 - phansch:has_placeholders, r=flip1995
Change while_let_loop applicability to HasPlaceholders The suggestion has been changed at some point to use `..` in the suggested code. Due to that we can't make the lint MachineApplicable anymore. cc #3630
2 parents e4eee4b + e974d84 commit 1132caa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎clippy_lints/src/loops.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,12 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
530530
return;
531531
}
532532

533-
// NOTE: we used to make build a body here instead of using
533+
// NOTE: we used to build a body here instead of using
534534
// ellipsis, this was removed because:
535535
// 1) it was ugly with big bodies;
536536
// 2) it was not indented properly;
537537
// 3) it wasn’t very smart (see #675).
538-
let mut applicability = Applicability::MachineApplicable;
538+
let mut applicability = Applicability::HasPlaceholders;
539539
span_lint_and_sugg(
540540
cx,
541541
WHILE_LET_LOOP,

0 commit comments

Comments
 (0)
Please sign in to comment.