From 2c7b7e8c56849d272dc7acbd5f0ad0ec02c06e52 Mon Sep 17 00:00:00 2001 From: Cameron Steffen Date: Fri, 5 Nov 2021 14:50:22 -0500 Subject: [PATCH] Remove if let check for match_ref_pats --- clippy_lints/src/matches.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 08b652f4f3f3f..88b1685f52f25 100644 --- a/clippy_lints/src/matches.rs +++ b/clippy_lints/src/matches.rs @@ -632,9 +632,6 @@ impl<'tcx> LateLintPass<'tcx> for Matches { if let ExprKind::Match(ex, arms, _) = expr.kind { check_match_ref_pats(cx, ex, arms.iter().map(|el| el.pat), expr); } - if let Some(higher::IfLet { let_pat, let_expr, .. }) = higher::IfLet::hir(cx, expr) { - check_match_ref_pats(cx, let_expr, once(let_pat), expr); - } } fn check_local(&mut self, cx: &LateContext<'tcx>, local: &'tcx Local<'_>) {