diff options
| author | flip1995 <philipp.krones@embecosm.com> | 2021-12-30 14:04:13 +0100 |
|---|---|---|
| committer | flip1995 <philipp.krones@embecosm.com> | 2021-12-30 14:17:53 +0100 |
| commit | e45842e3602e806345b3355ed0955e604daef49c (patch) | |
| tree | db4d1481f0b49bae4bdeedea435b5cfc0ceb6e38 /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | 01217f6f4c752700754e8e66eb02d763c4c55c72 (diff) | |
| parent | c1cd64b9c6b29ed2a577fc174a50c76267a966e2 (diff) | |
| download | rust-e45842e3602e806345b3355ed0955e604daef49c.tar.gz rust-e45842e3602e806345b3355ed0955e604daef49c.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 12e219cd5c8..fa7274990db 100644 --- a/clippy_lints/src/mutable_debug_assertion.rs +++ b/clippy_lints/src/mutable_debug_assertion.rs @@ -88,10 +88,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 |
