diff --git a/clippy_lints/src/utils/hir_utils.rs b/clippy_lints/src/utils/hir_utils.rs index 0e8fcf8fd0f..d7bcc589a46 100644 --- a/clippy_lints/src/utils/hir_utils.rs +++ b/clippy_lints/src/utils/hir_utils.rs @@ -411,7 +411,7 @@ pub fn hash_expr(&mut self, e: &Expr) { self.hash_expr(r); }, ExprKind::AssignOp(ref o, ref l, ref r) => { - o.hash(&mut self.s); + o.node.hash(&mut self.s); self.hash_expr(l); self.hash_expr(r); }, @@ -460,7 +460,7 @@ pub fn hash_expr(&mut self, e: &Expr) { }, ExprKind::InlineAsm(..) | ExprKind::Err => {}, ExprKind::Lit(ref l) => { - l.hash(&mut self.s); + l.node.hash(&mut self.s); }, ExprKind::Loop(ref b, ref i, _) => { self.hash_block(b);