@@ -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) ;
@@ -1719,7 +1719,7 @@ impl<CTX> HashStable<CTX> for AttrArgs
1719
1719
where
1720
1720
CTX : crate :: HashStableContext ,
1721
1721
{
1722
- fn hash_stable ( & self , ctx : & mut CTX , hasher : & mut StableHasher ) {
1722
+ fn hash_stable < H : ExtendedHasher > ( & self , ctx : & mut CTX , hasher : & mut GenericStableHasher < H > ) {
1723
1723
mem:: discriminant ( self ) . hash_stable ( ctx, hasher) ;
1724
1724
match self {
1725
1725
AttrArgs :: Empty => { }
@@ -1755,7 +1755,7 @@ impl<CTX> HashStable<CTX> for DelimArgs
1755
1755
where
1756
1756
CTX : crate :: HashStableContext ,
1757
1757
{
1758
- fn hash_stable ( & self , ctx : & mut CTX , hasher : & mut StableHasher ) {
1758
+ fn hash_stable < H : ExtendedHasher > ( & self , ctx : & mut CTX , hasher : & mut GenericStableHasher < H > ) {
1759
1759
let DelimArgs { dspan, delim, tokens } = self ;
1760
1760
dspan. hash_stable ( ctx, hasher) ;
1761
1761
delim. hash_stable ( ctx, hasher) ;
0 commit comments