about summary refs log tree commit diff
path: root/clippy_lints/src/mutable_debug_assertion.rs
diff options
context:
space:
mode:
authorflip1995 <philipp.krones@embecosm.com>2022-01-27 14:23:31 +0100
committerflip1995 <philipp.krones@embecosm.com>2022-01-27 14:23:31 +0100
commitd037b280252774edcd5ceb11e746bff65aab8a82 (patch)
tree580676da526927001979aa7317a0d937a2a388c2 /clippy_lints/src/mutable_debug_assertion.rs
parent02516c47ab089d7cf8f106c3fbc1921cce370462 (diff)
parentea4db3a6c6fdd30abb0b746f7a68d403a07d24bf (diff)
downloadrust-d037b280252774edcd5ceb11e746bff65aab8a82.tar.gz
rust-d037b280252774edcd5ceb11e746bff65aab8a82.zip
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
-rw-r--r--clippy_lints/src/mutable_debug_assertion.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/clippy_lints/src/mutable_debug_assertion.rs b/clippy_lints/src/mutable_debug_assertion.rs
index cd1bc202370..4ba68c8eacd 100644
--- a/clippy_lints/src/mutable_debug_assertion.rs
+++ b/clippy_lints/src/mutable_debug_assertion.rs
@@ -92,10 +92,6 @@ impl<'a, 'tcx> Visitor<'tcx> for MutArgVisitor<'a, 'tcx> {
                 self.found = true;
                 return;
             },
-            ExprKind::If(..) => {
-                self.found = true;
-                return;
-            },
             ExprKind::Path(_) => {
                 if let Some(adj) = self.cx.typeck_results().adjustments().get(expr.hir_id) {
                     if adj