@@ -39,7 +39,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a, 'tcx>> for ty::subst::Kind<'t
39
39
}
40
40
}
41
41
42
- impl < ' a , ' tcx > HashStable < StableHashingContext < ' a , ' tcx > > for ty:: Region {
42
+ impl < ' a , ' tcx > HashStable < StableHashingContext < ' a , ' tcx > > for ty:: RegionKind < ' tcx > {
43
43
fn hash_stable < W : StableHasherResult > ( & self ,
44
44
hcx : & mut StableHashingContext < ' a , ' tcx > ,
45
45
hasher : & mut StableHasher < W > ) {
@@ -432,17 +432,6 @@ impl_stable_hash_for!(enum ty::cast::CastKind {
432
432
FnPtrAddrCast
433
433
} ) ;
434
434
435
- impl < ' a , ' tcx > HashStable < StableHashingContext < ' a , ' tcx > > for :: middle:: region:: CodeExtent
436
- {
437
- fn hash_stable < W : StableHasherResult > ( & self ,
438
- hcx : & mut StableHashingContext < ' a , ' tcx > ,
439
- hasher : & mut StableHasher < W > ) {
440
- hcx. with_node_id_hashing_mode ( NodeIdHashingMode :: HashDefPath , |hcx| {
441
- hcx. tcx ( ) . region_maps . code_extent_data ( * self ) . hash_stable ( hcx, hasher) ;
442
- } ) ;
443
- }
444
- }
445
-
446
435
impl < ' a , ' tcx > HashStable < StableHashingContext < ' a , ' tcx > > for :: middle:: region:: CodeExtentData
447
436
{
448
437
fn hash_stable < W : StableHasherResult > ( & self ,
@@ -477,7 +466,7 @@ impl_stable_hash_for!(struct ty::adjustment::CoerceUnsizedInfo {
477
466
custom_kind
478
467
} ) ;
479
468
480
- impl_stable_hash_for ! ( struct ty:: FreeRegion {
469
+ impl_stable_hash_for ! ( struct ty:: FreeRegion < ' tcx> {
481
470
scope,
482
471
bound_region
483
472
} ) ;
0 commit comments