@@ -39,7 +39,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a, 'tcx>> for ty::subst::Kind<'t
3939 }
4040}
4141
42- impl < ' a , ' tcx > HashStable < StableHashingContext < ' a , ' tcx > > for ty:: Region {
42+ impl < ' a , ' tcx > HashStable < StableHashingContext < ' a , ' tcx > > for ty:: RegionKind < ' tcx > {
4343 fn hash_stable < W : StableHasherResult > ( & self ,
4444 hcx : & mut StableHashingContext < ' a , ' tcx > ,
4545 hasher : & mut StableHasher < W > ) {
@@ -432,17 +432,6 @@ impl_stable_hash_for!(enum ty::cast::CastKind {
432432 FnPtrAddrCast
433433} ) ;
434434
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-
446435impl < ' a , ' tcx > HashStable < StableHashingContext < ' a , ' tcx > > for :: middle:: region:: CodeExtentData
447436{
448437 fn hash_stable < W : StableHasherResult > ( & self ,
@@ -477,7 +466,7 @@ impl_stable_hash_for!(struct ty::adjustment::CoerceUnsizedInfo {
477466 custom_kind
478467} ) ;
479468
480- impl_stable_hash_for ! ( struct ty:: FreeRegion {
469+ impl_stable_hash_for ! ( struct ty:: FreeRegion < ' tcx> {
481470 scope,
482471 bound_region
483472} ) ;
0 commit comments