diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2022-04-13 11:23:51 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2022-04-13 11:25:22 -0400 |
| commit | 002a4e1bd5012f6640c1338ac809df03e7eb9288 (patch) | |
| tree | e4221c0a1eab3316aae754a81c5c0a6f7aec1eb4 /compiler/rustc_ast/src | |
| parent | f38c5c8e5d76ea9a87fece143425ef7c703c706a (diff) | |
| download | rust-002a4e1bd5012f6640c1338ac809df03e7eb9288.tar.gz rust-002a4e1bd5012f6640c1338ac809df03e7eb9288.zip | |
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.
Diffstat (limited to 'compiler/rustc_ast/src')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index 42ec206fc65..bf9d20ebfea 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -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); } } } |
