From ef18ece564e69a77095bf7ac00f5b9f71f2149af Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 22 Oct 2019 11:17:16 +0200 Subject: [PATCH] Don't hash spans in SpanlessHasher --- clippy_lints/src/utils/hir_utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);