From 4b4d73475808c1e4c1cdf03f9cfda7338ca878f5 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 14 May 2019 14:13:23 +0200 Subject: [PATCH] Also hash mem::discriminant in hash_stmt --- clippy_lints/src/utils/hir_utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clippy_lints/src/utils/hir_utils.rs b/clippy_lints/src/utils/hir_utils.rs index f3525f6adb8..77d6a52f57f 100644 --- a/clippy_lints/src/utils/hir_utils.rs +++ b/clippy_lints/src/utils/hir_utils.rs @@ -578,6 +578,8 @@ pub fn hash_path(&mut self, p: &Path) { } pub fn hash_stmt(&mut self, b: &Stmt) { + std::mem::discriminant(&b.node).hash(&mut self.s); + match b.node { StmtKind::Local(ref local) => { if let Some(ref init) = local.init { -- 2.44.0