]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast/src/ast.rs
Auto merge of #96016 - Aaron1011:hash-name-cleanup, r=cjgillot
[rust.git] / compiler / rustc_ast / src / ast.rs
index 714f9383bb2100fee13f16ce64a0957f3300e29c..b7da276fc7e1dc431acd53a999524e3d4e05bb06 100644 (file)
@@ -107,11 +107,11 @@ fn eq(&self, symbol: &Symbol) -> bool {
     }
 }
 
-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);
         }
     }
 }