@@ -11,9 +11,10 @@ use crate::middle::region;
1111use crate :: ty;
1212use crate :: mir;
1313
14- impl < ' a , ' tcx , T > HashStable < StableHashingContext < ' a > >
15- for & ' tcx ty:: List < T >
16- where T : HashStable < StableHashingContext < ' a > > {
14+ impl < ' a , ' tcx , T > HashStable < StableHashingContext < ' a > > for & ' tcx ty:: List < T >
15+ where
16+ T : HashStable < StableHashingContext < ' a > > ,
17+ {
1718 fn hash_stable < W : StableHasherResult > ( & self ,
1819 hcx : & mut StableHashingContext < ' a > ,
1920 hasher : & mut StableHasher < W > ) {
@@ -41,7 +42,8 @@ for &'tcx ty::List<T>
4142}
4243
4344impl < ' a , ' tcx , T > ToStableHashKey < StableHashingContext < ' a > > for & ' tcx ty:: List < T >
44- where T : HashStable < StableHashingContext < ' a > >
45+ where
46+ T : HashStable < StableHashingContext < ' a > > ,
4547{
4648 type KeyType = Fingerprint ;
4749
@@ -119,18 +121,22 @@ impl<'a> HashStable<StableHashingContext<'a>> for ty::RegionVid {
119121
120122impl < ' a , ' tcx > HashStable < StableHashingContext < ' a > > for ty:: ConstVid < ' tcx > {
121123 #[ inline]
122- fn hash_stable < W : StableHasherResult > ( & self ,
123- hcx : & mut StableHashingContext < ' a > ,
124- hasher : & mut StableHasher < W > ) {
124+ fn hash_stable < W : StableHasherResult > (
125+ & self ,
126+ hcx : & mut StableHashingContext < ' a > ,
127+ hasher : & mut StableHasher < W > ,
128+ ) {
125129 self . index . hash_stable ( hcx, hasher) ;
126130 }
127131}
128132
129133impl < ' tcx > HashStable < StableHashingContext < ' tcx > > for ty:: BoundVar {
130134 #[ inline]
131- fn hash_stable < W : StableHasherResult > ( & self ,
132- hcx : & mut StableHashingContext < ' tcx > ,
133- hasher : & mut StableHasher < W > ) {
135+ fn hash_stable < W : StableHasherResult > (
136+ & self ,
137+ hcx : & mut StableHashingContext < ' tcx > ,
138+ hasher : & mut StableHasher < W > ,
139+ ) {
134140 self . index ( ) . hash_stable ( hcx, hasher) ;
135141 }
136142}
0 commit comments