@@ -20,7 +20,7 @@ use syntax_pos::{Span, DUMMY_SP};
2020use syntax_pos:: hygiene;
2121
2222use rustc_data_structures:: stable_hasher:: {
23- HashStable , StableHasher , StableHasherResult , ToStableHashKey ,
23+ HashStable , StableHasher , ToStableHashKey ,
2424} ;
2525use rustc_data_structures:: fx:: { FxHashSet , FxHashMap } ;
2626use smallvec:: SmallVec ;
@@ -219,9 +219,7 @@ impl<'a> StableHashingContextProvider<'a> for StableHashingContext<'a> {
219219impl < ' a > crate :: dep_graph:: DepGraphSafe for StableHashingContext < ' a > { }
220220
221221impl < ' a > HashStable < StableHashingContext < ' a > > for hir:: BodyId {
222- fn hash_stable < W : StableHasherResult > ( & self ,
223- hcx : & mut StableHashingContext < ' a > ,
224- hasher : & mut StableHasher < W > ) {
222+ fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
225223 if hcx. hash_bodies ( ) {
226224 hcx. body_resolver . body ( * self ) . hash_stable ( hcx, hasher) ;
227225 }
@@ -230,9 +228,7 @@ impl<'a> HashStable<StableHashingContext<'a>> for hir::BodyId {
230228
231229impl < ' a > HashStable < StableHashingContext < ' a > > for hir:: HirId {
232230 #[ inline]
233- fn hash_stable < W : StableHasherResult > ( & self ,
234- hcx : & mut StableHashingContext < ' a > ,
235- hasher : & mut StableHasher < W > ) {
231+ fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
236232 match hcx. node_id_hashing_mode {
237233 NodeIdHashingMode :: Ignore => {
238234 // Don't do anything.
@@ -263,9 +259,7 @@ impl<'a> ToStableHashKey<StableHashingContext<'a>> for hir::HirId {
263259}
264260
265261impl < ' a > HashStable < StableHashingContext < ' a > > for ast:: NodeId {
266- fn hash_stable < W : StableHasherResult > ( & self ,
267- hcx : & mut StableHashingContext < ' a > ,
268- hasher : & mut StableHasher < W > ) {
262+ fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
269263 match hcx. node_id_hashing_mode {
270264 NodeIdHashingMode :: Ignore => {
271265 // Don't do anything.
@@ -298,9 +292,7 @@ impl<'a> HashStable<StableHashingContext<'a>> for Span {
298292 /// codepoint offsets. For the purpose of the hash that's sufficient.
299293 /// Also, hashing filenames is expensive so we avoid doing it twice when the
300294 /// span starts and ends in the same file, which is almost always the case.
301- fn hash_stable < W : StableHasherResult > ( & self ,
302- hcx : & mut StableHashingContext < ' a > ,
303- hasher : & mut StableHasher < W > ) {
295+ fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
304296 const TAG_VALID_SPAN : u8 = 0 ;
305297 const TAG_INVALID_SPAN : u8 = 1 ;
306298 const TAG_EXPANSION : u8 = 0 ;
@@ -379,24 +371,18 @@ impl<'a> HashStable<StableHashingContext<'a>> for Span {
379371}
380372
381373impl < ' a > HashStable < StableHashingContext < ' a > > for DelimSpan {
382- fn hash_stable < W : StableHasherResult > (
383- & self ,
384- hcx : & mut StableHashingContext < ' a > ,
385- hasher : & mut StableHasher < W > ,
386- ) {
374+ fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
387375 self . open . hash_stable ( hcx, hasher) ;
388376 self . close . hash_stable ( hcx, hasher) ;
389377 }
390378}
391379
392- pub fn hash_stable_trait_impls < ' a , W > (
380+ pub fn hash_stable_trait_impls < ' a > (
393381 hcx : & mut StableHashingContext < ' a > ,
394- hasher : & mut StableHasher < W > ,
382+ hasher : & mut StableHasher ,
395383 blanket_impls : & [ DefId ] ,
396384 non_blanket_impls : & FxHashMap < fast_reject:: SimplifiedType , Vec < DefId > > ,
397- ) where
398- W : StableHasherResult ,
399- {
385+ ) {
400386 {
401387 let mut blanket_impls: SmallVec < [ _ ; 8 ] > = blanket_impls
402388 . iter ( )
0 commit comments