]> git.lizzy.rs Git - rust.git/commitdiff
Also hash mem::discriminant in hash_stmt
authorflip1995 <hello@philkrones.com>
Tue, 14 May 2019 12:13:23 +0000 (14:13 +0200)
committerflip1995 <hello@philkrones.com>
Tue, 14 May 2019 12:13:23 +0000 (14:13 +0200)
clippy_lints/src/utils/hir_utils.rs

index f3525f6adb8aadc766e0c87d7149c60d5ad8726c..77d6a52f57f2dfb4fe3c8308206ddba118866285 100644 (file)
@@ -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 {