Remove last vestiges of skippng ident span hashing

This removes a comment that no longer applies, and properly hashes
the full ident for path segments.
This commit is contained in:
Aaron Hill 2022-04-13 11:23:51 -04:00
parent f38c5c8e5d
commit 002a4e1bd5
No known key found for this signature in database
GPG key ID: B4087E510E98B164
2 changed files with 2 additions and 12 deletions

View file

@ -107,11 +107,11 @@ impl PartialEq<Symbol> for Path {
}
}
impl<CTX> HashStable<CTX> for Path {
impl<CTX: rustc_span::HashStableContext> HashStable<CTX> for Path {
fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher) {
self.segments.len().hash_stable(hcx, hasher);
for segment in &self.segments {
segment.ident.name.hash_stable(hcx, hasher);
segment.ident.hash_stable(hcx, hasher);
}
}
}