@@ -23,7 +23,7 @@ use std::{cmp, fmt, mem};
23
23
24
24
pub use rustc_ast_ir:: { Movability , Mutability } ;
25
25
use rustc_data_structures:: packed:: Pu128 ;
26
- use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
26
+ use rustc_data_structures:: stable_hasher:: { ExtendedHasher , GenericStableHasher , HashStable } ;
27
27
use rustc_data_structures:: stack:: ensure_sufficient_stack;
28
28
use rustc_data_structures:: sync:: Lrc ;
29
29
use rustc_macros:: { Decodable , Encodable , HashStable_Generic } ;
@@ -105,7 +105,7 @@ impl PartialEq<Symbol> for Path {
105
105
}
106
106
107
107
impl < CTX : rustc_span:: HashStableContext > HashStable < CTX > for Path {
108
- fn hash_stable ( & self , hcx : & mut CTX , hasher : & mut StableHasher ) {
108
+ fn hash_stable < H : ExtendedHasher > ( & self , hcx : & mut CTX , hasher : & mut GenericStableHasher < H > ) {
109
109
self . segments . len ( ) . hash_stable ( hcx, hasher) ;
110
110
for segment in & self . segments {
111
111
segment. ident . hash_stable ( hcx, hasher) ;
@@ -1723,7 +1723,7 @@ impl<CTX> HashStable<CTX> for AttrArgs
1723
1723
where
1724
1724
CTX : crate :: HashStableContext ,
1725
1725
{
1726
- fn hash_stable ( & self , ctx : & mut CTX , hasher : & mut StableHasher ) {
1726
+ fn hash_stable < H : ExtendedHasher > ( & self , ctx : & mut CTX , hasher : & mut GenericStableHasher < H > ) {
1727
1727
mem:: discriminant ( self ) . hash_stable ( ctx, hasher) ;
1728
1728
match self {
1729
1729
AttrArgs :: Empty => { }
@@ -1759,7 +1759,7 @@ impl<CTX> HashStable<CTX> for DelimArgs
1759
1759
where
1760
1760
CTX : crate :: HashStableContext ,
1761
1761
{
1762
- fn hash_stable ( & self , ctx : & mut CTX , hasher : & mut StableHasher ) {
1762
+ fn hash_stable < H : ExtendedHasher > ( & self , ctx : & mut CTX , hasher : & mut GenericStableHasher < H > ) {
1763
1763
let DelimArgs { dspan, delim, tokens } = self ;
1764
1764
dspan. hash_stable ( ctx, hasher) ;
1765
1765
delim. hash_stable ( ctx, hasher) ;
0 commit comments