about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-03-24 20:28:44 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-04-06 11:52:16 +0300
commit303298b1d53186c17b2466ac8678de77ea2a15fb (patch)
treeabfdf3057c66ecc440d96d2a8346b3723a642649
parentbfaf4180ae8f048634d270564692d35f64a9c130 (diff)
downloadrust-303298b1d53186c17b2466ac8678de77ea2a15fb.tar.gz
rust-303298b1d53186c17b2466ac8678de77ea2a15fb.zip
Fix stable hash for identifiers
-rw-r--r--src/librustc/ich/impls_hir.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc/ich/impls_hir.rs b/src/librustc/ich/impls_hir.rs
index 7335511a5a0..38b284fd646 100644
--- a/src/librustc/ich/impls_hir.rs
+++ b/src/librustc/ich/impls_hir.rs
@@ -654,11 +654,12 @@ impl<'a> HashStable<StableHashingContext<'a>> for ast::Ident {
                                           hcx: &mut StableHashingContext<'a>,
                                           hasher: &mut StableHasher<W>) {
         let ast::Ident {
-            ref name,
-            span: _ // Ignore this
+            name,
+            span,
         } = *self;
 
         name.hash_stable(hcx, hasher);
+        span.hash_stable(hcx, hasher);
     }
 }