diff options
| author | flip1995 <philipp.krones@embecosm.com> | 2022-01-27 14:23:31 +0100 |
|---|---|---|
| committer | flip1995 <philipp.krones@embecosm.com> | 2022-01-27 14:23:31 +0100 |
| commit | d037b280252774edcd5ceb11e746bff65aab8a82 (patch) | |
| tree | 580676da526927001979aa7317a0d937a2a388c2 /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | 02516c47ab089d7cf8f106c3fbc1921cce370462 (diff) | |
| parent | ea4db3a6c6fdd30abb0b746f7a68d403a07d24bf (diff) | |
| download | rust-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.rs | 4 |
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 |
