about summary refs log tree commit diff
path: root/compiler/rustc_ast/src
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2022-04-13 11:23:51 -0400
committerAaron Hill <aa1ronham@gmail.com>2022-04-13 11:25:22 -0400
commit002a4e1bd5012f6640c1338ac809df03e7eb9288 (patch)
treee4221c0a1eab3316aae754a81c5c0a6f7aec1eb4 /compiler/rustc_ast/src
parentf38c5c8e5d76ea9a87fece143425ef7c703c706a (diff)
downloadrust-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.rs4
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);
         }
     }
 }