diff options
| author | flip1995 <hello@philkrones.com> | 2019-05-14 14:13:23 +0200 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-05-14 14:13:23 +0200 |
| commit | 4b4d73475808c1e4c1cdf03f9cfda7338ca878f5 (patch) | |
| tree | 6630f9805cea8657a1f1d6ab56f184f7917a3386 | |
| parent | f11b23608724b24ffe01f03552fd558be2e80d24 (diff) | |
| download | rust-4b4d73475808c1e4c1cdf03f9cfda7338ca878f5.tar.gz rust-4b4d73475808c1e4c1cdf03f9cfda7338ca878f5.zip | |
Also hash mem::discriminant in hash_stmt
| -rw-r--r-- | clippy_lints/src/utils/hir_utils.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> { } 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 { |
