diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-03-24 20:28:44 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-04-06 11:52:16 +0300 |
| commit | 303298b1d53186c17b2466ac8678de77ea2a15fb (patch) | |
| tree | abfdf3057c66ecc440d96d2a8346b3723a642649 | |
| parent | bfaf4180ae8f048634d270564692d35f64a9c130 (diff) | |
| download | rust-303298b1d53186c17b2466ac8678de77ea2a15fb.tar.gz rust-303298b1d53186c17b2466ac8678de77ea2a15fb.zip | |
Fix stable hash for identifiers
| -rw-r--r-- | src/librustc/ich/impls_hir.rs | 5 |
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); } } |
