@@ -23,7 +23,7 @@ use std::{cmp, fmt, mem};
2323
2424pub use rustc_ast_ir:: { Movability , Mutability } ;
2525use rustc_data_structures:: packed:: Pu128 ;
26- use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
26+ use rustc_data_structures:: stable_hasher:: { ExtendedHasher , GenericStableHasher , HashStable } ;
2727use rustc_data_structures:: stack:: ensure_sufficient_stack;
2828use rustc_data_structures:: sync:: Lrc ;
2929use rustc_macros:: { Decodable , Encodable , HashStable_Generic } ;
@@ -105,7 +105,7 @@ impl PartialEq<Symbol> for Path {
105105}
106106
107107impl < 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 > ) {
109109 self . segments . len ( ) . hash_stable ( hcx, hasher) ;
110110 for segment in & self . segments {
111111 segment. ident . hash_stable ( hcx, hasher) ;
@@ -1719,7 +1719,7 @@ impl<CTX> HashStable<CTX> for AttrArgs
17191719where
17201720 CTX : crate :: HashStableContext ,
17211721{
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 > ) {
17231723 mem:: discriminant ( self ) . hash_stable ( ctx, hasher) ;
17241724 match self {
17251725 AttrArgs :: Empty => { }
@@ -1755,7 +1755,7 @@ impl<CTX> HashStable<CTX> for DelimArgs
17551755where
17561756 CTX : crate :: HashStableContext ,
17571757{
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 > ) {
17591759 let DelimArgs { dspan, delim, tokens } = self ;
17601760 dspan. hash_stable ( ctx, hasher) ;
17611761 delim. hash_stable ( ctx, hasher) ;
0 commit comments