Skip to content

Commit 2c7b7e8

Browse files
committed
Remove if let check for match_ref_pats
1 parent 5239a90 commit 2c7b7e8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clippy_lints/src/matches.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,6 @@ impl<'tcx> LateLintPass<'tcx> for Matches {
632632
if let ExprKind::Match(ex, arms, _) = expr.kind {
633633
check_match_ref_pats(cx, ex, arms.iter().map(|el| el.pat), expr);
634634
}
635-
if let Some(higher::IfLet { let_pat, let_expr, .. }) = higher::IfLet::hir(cx, expr) {
636-
check_match_ref_pats(cx, let_expr, once(let_pat), expr);
637-
}
638635
}
639636

640637
fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx Local<'_>) {

0 commit comments

Comments
 (0)