Skip to content

Commit 2bb74f6

Browse files
committed
Fix stable hash for identifiers
1 parent 2c8eb34 commit 2bb74f6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/librustc/ich/impls_hir.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,11 +654,12 @@ impl<'a> HashStable<StableHashingContext<'a>> for ast::Ident {
654654
hcx: &mut StableHashingContext<'a>,
655655
hasher: &mut StableHasher<W>) {
656656
let ast::Ident {
657-
ref name,
658-
span: _ // Ignore this
657+
name,
658+
span,
659659
} = *self;
660660

661661
name.hash_stable(hcx, hasher);
662+
span.hash_stable(hcx, hasher);
662663
}
663664
}
664665

0 commit comments

Comments
 (0)