@@ -11,9 +11,10 @@ use crate::middle::region;
11
11
use crate :: ty;
12
12
use crate :: mir;
13
13
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
+ {
17
18
fn hash_stable < W : StableHasherResult > ( & self ,
18
19
hcx : & mut StableHashingContext < ' a > ,
19
20
hasher : & mut StableHasher < W > ) {
@@ -41,7 +42,8 @@ for &'tcx ty::List<T>
41
42
}
42
43
43
44
impl < ' a , ' tcx , T > ToStableHashKey < StableHashingContext < ' a > > for & ' tcx ty:: List < T >
44
- where T : HashStable < StableHashingContext < ' a > >
45
+ where
46
+ T : HashStable < StableHashingContext < ' a > > ,
45
47
{
46
48
type KeyType = Fingerprint ;
47
49
@@ -119,18 +121,22 @@ impl<'a> HashStable<StableHashingContext<'a>> for ty::RegionVid {
119
121
120
122
impl < ' a , ' tcx > HashStable < StableHashingContext < ' a > > for ty:: ConstVid < ' tcx > {
121
123
#[ 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
+ ) {
125
129
self . index . hash_stable ( hcx, hasher) ;
126
130
}
127
131
}
128
132
129
133
impl < ' tcx > HashStable < StableHashingContext < ' tcx > > for ty:: BoundVar {
130
134
#[ 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
+ ) {
134
140
self . index ( ) . hash_stable ( hcx, hasher) ;
135
141
}
136
142
}
0 commit comments