Skip to content

Commit 303298b

Browse files
committed
Fix stable hash for identifiers
1 parent bfaf418 commit 303298b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc/ich/impls_hir.rs

+3-2
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)