diff options
| author | Caio <c410.f3r@gmail.com> | 2021-01-01 15:38:11 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2021-01-07 18:54:12 -0300 |
| commit | 7d42172899663993a9fd2e3445ddb58ab5d10a79 (patch) | |
| tree | 6ee2780ee6c40c64fbe496e86681774682cccf8a /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | 053afe4907fa7ac7ff6d08d42583bde9a4d4414c (diff) | |
| download | rust-7d42172899663993a9fd2e3445ddb58ab5d10a79.tar.gz rust-7d42172899663993a9fd2e3445ddb58ab5d10a79.zip | |
Reintroduce hir::ExprKind::If
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
| -rw-r--r-- | clippy_lints/src/mutable_debug_assertion.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clippy_lints/src/mutable_debug_assertion.rs b/clippy_lints/src/mutable_debug_assertion.rs index 76417aa7ed0..71f91eb4bfb 100644 --- a/clippy_lints/src/mutable_debug_assertion.rs +++ b/clippy_lints/src/mutable_debug_assertion.rs @@ -90,6 +90,10 @@ 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 |
