diff options
| author | flip1995 <hello@philkrones.com> | 2019-11-25 13:18:38 +0100 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-11-25 13:18:38 +0100 |
| commit | d43c424145c6e2480b224da03f5df3e776a3079a (patch) | |
| tree | fe96332a2156db565c2d2f505a7b885186fd5b04 /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | cc35165f52c16b884d06e1efc76c8f2bf73f1cbd (diff) | |
| download | rust-d43c424145c6e2480b224da03f5df3e776a3079a.tar.gz rust-d43c424145c6e2480b224da03f5df3e776a3079a.zip | |
Rustup to rust-lang/rust#66671
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
| -rw-r--r-- | clippy_lints/src/mutable_debug_assertion.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/mutable_debug_assertion.rs b/clippy_lints/src/mutable_debug_assertion.rs index 6d955331add..fde5ac621a9 100644 --- a/clippy_lints/src/mutable_debug_assertion.rs +++ b/clippy_lints/src/mutable_debug_assertion.rs @@ -77,14 +77,14 @@ fn extract_call<'a, 'tcx>(cx: &'a LateContext<'a, 'tcx>, e: &'tcx Expr) -> Optio if let ExprKind::Tup(ref conditions) = headerexpr.kind; if conditions.len() == 2; then { - if let ExprKind::AddrOf(_, ref lhs) = conditions[0].kind { + if let ExprKind::AddrOf(_, _, ref lhs) = conditions[0].kind { let mut visitor = MutArgVisitor::new(cx); visitor.visit_expr(lhs); if let Some(span) = visitor.expr_span() { return Some(span); } } - if let ExprKind::AddrOf(_, ref rhs) = conditions[1].kind { + if let ExprKind::AddrOf(_, _, ref rhs) = conditions[1].kind { let mut visitor = MutArgVisitor::new(cx); visitor.visit_expr(rhs); if let Some(span) = visitor.expr_span() { @@ -128,7 +128,7 @@ impl<'a, 'tcx> MutArgVisitor<'a, 'tcx> { impl<'a, 'tcx> Visitor<'tcx> for MutArgVisitor<'a, 'tcx> { fn visit_expr(&mut self, expr: &'tcx Expr) { match expr.kind { - ExprKind::AddrOf(Mutability::Mutable, _) => { + ExprKind::AddrOf(_, Mutability::Mutable, _) => { self.found = true; return; }, |
