@@ -20,7 +20,7 @@ use syntax_pos::{Span, DUMMY_SP};
20
20
use syntax_pos:: hygiene;
21
21
22
22
use rustc_data_structures:: stable_hasher:: {
23
- HashStable , StableHasher , StableHasherResult , ToStableHashKey ,
23
+ HashStable , StableHasher , ToStableHashKey ,
24
24
} ;
25
25
use rustc_data_structures:: fx:: { FxHashSet , FxHashMap } ;
26
26
use smallvec:: SmallVec ;
@@ -219,9 +219,7 @@ impl<'a> StableHashingContextProvider<'a> for StableHashingContext<'a> {
219
219
impl < ' a > crate :: dep_graph:: DepGraphSafe for StableHashingContext < ' a > { }
220
220
221
221
impl < ' 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 ) {
225
223
if hcx. hash_bodies ( ) {
226
224
hcx. body_resolver . body ( * self ) . hash_stable ( hcx, hasher) ;
227
225
}
@@ -230,9 +228,7 @@ impl<'a> HashStable<StableHashingContext<'a>> for hir::BodyId {
230
228
231
229
impl < ' a > HashStable < StableHashingContext < ' a > > for hir:: HirId {
232
230
#[ 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 ) {
236
232
match hcx. node_id_hashing_mode {
237
233
NodeIdHashingMode :: Ignore => {
238
234
// Don't do anything.
@@ -263,9 +259,7 @@ impl<'a> ToStableHashKey<StableHashingContext<'a>> for hir::HirId {
263
259
}
264
260
265
261
impl < ' 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 ) {
269
263
match hcx. node_id_hashing_mode {
270
264
NodeIdHashingMode :: Ignore => {
271
265
// Don't do anything.
@@ -298,9 +292,7 @@ impl<'a> HashStable<StableHashingContext<'a>> for Span {
298
292
/// codepoint offsets. For the purpose of the hash that's sufficient.
299
293
/// Also, hashing filenames is expensive so we avoid doing it twice when the
300
294
/// 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 ) {
304
296
const TAG_VALID_SPAN : u8 = 0 ;
305
297
const TAG_INVALID_SPAN : u8 = 1 ;
306
298
const TAG_EXPANSION : u8 = 0 ;
@@ -379,24 +371,18 @@ impl<'a> HashStable<StableHashingContext<'a>> for Span {
379
371
}
380
372
381
373
impl < ' 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 ) {
387
375
self . open . hash_stable ( hcx, hasher) ;
388
376
self . close . hash_stable ( hcx, hasher) ;
389
377
}
390
378
}
391
379
392
- pub fn hash_stable_trait_impls < ' a , W > (
380
+ pub fn hash_stable_trait_impls < ' a > (
393
381
hcx : & mut StableHashingContext < ' a > ,
394
- hasher : & mut StableHasher < W > ,
382
+ hasher : & mut StableHasher ,
395
383
blanket_impls : & [ DefId ] ,
396
384
non_blanket_impls : & FxHashMap < fast_reject:: SimplifiedType , Vec < DefId > > ,
397
- ) where
398
- W : StableHasherResult ,
399
- {
385
+ ) {
400
386
{
401
387
let mut blanket_impls: SmallVec < [ _ ; 8 ] > = blanket_impls
402
388
. iter ( )
0 commit comments