@@ -16,7 +16,7 @@ TrivialTypeFoldableAndLiftImpls! {
16
16
}
17
17
18
18
impl < ' tcx > TypeFoldable < ' tcx > for Terminator < ' tcx > {
19
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
19
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
20
20
self ,
21
21
folder : & mut F ,
22
22
) -> Result < Self , F :: Error > {
@@ -148,7 +148,7 @@ impl<'tcx> TypeFoldable<'tcx> for Terminator<'tcx> {
148
148
}
149
149
150
150
impl < ' tcx > TypeFoldable < ' tcx > for GeneratorKind {
151
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > ( self , _: & mut F ) -> Result < Self , F :: Error > {
151
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > ( self , _: & mut F ) -> Result < Self , F :: Error > {
152
152
Ok ( self )
153
153
}
154
154
@@ -158,7 +158,7 @@ impl<'tcx> TypeFoldable<'tcx> for GeneratorKind {
158
158
}
159
159
160
160
impl < ' tcx > TypeFoldable < ' tcx > for Place < ' tcx > {
161
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
161
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
162
162
self ,
163
163
folder : & mut F ,
164
164
) -> Result < Self , F :: Error > {
@@ -175,7 +175,7 @@ impl<'tcx> TypeFoldable<'tcx> for Place<'tcx> {
175
175
}
176
176
177
177
impl < ' tcx > TypeFoldable < ' tcx > for & ' tcx ty:: List < PlaceElem < ' tcx > > {
178
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
178
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
179
179
self ,
180
180
folder : & mut F ,
181
181
) -> Result < Self , F :: Error > {
@@ -188,7 +188,7 @@ impl<'tcx> TypeFoldable<'tcx> for &'tcx ty::List<PlaceElem<'tcx>> {
188
188
}
189
189
190
190
impl < ' tcx > TypeFoldable < ' tcx > for Rvalue < ' tcx > {
191
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
191
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
192
192
self ,
193
193
folder : & mut F ,
194
194
) -> Result < Self , F :: Error > {
@@ -292,7 +292,7 @@ impl<'tcx> TypeFoldable<'tcx> for Rvalue<'tcx> {
292
292
}
293
293
294
294
impl < ' tcx > TypeFoldable < ' tcx > for Operand < ' tcx > {
295
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
295
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
296
296
self ,
297
297
folder : & mut F ,
298
298
) -> Result < Self , F :: Error > {
@@ -312,7 +312,7 @@ impl<'tcx> TypeFoldable<'tcx> for Operand<'tcx> {
312
312
}
313
313
314
314
impl < ' tcx > TypeFoldable < ' tcx > for PlaceElem < ' tcx > {
315
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
315
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
316
316
self ,
317
317
folder : & mut F ,
318
318
) -> Result < Self , F :: Error > {
@@ -345,7 +345,7 @@ impl<'tcx> TypeFoldable<'tcx> for PlaceElem<'tcx> {
345
345
}
346
346
347
347
impl < ' tcx > TypeFoldable < ' tcx > for Field {
348
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > ( self , _: & mut F ) -> Result < Self , F :: Error > {
348
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > ( self , _: & mut F ) -> Result < Self , F :: Error > {
349
349
Ok ( self )
350
350
}
351
351
fn super_visit_with < V : TypeVisitor < ' tcx > > ( & self , _: & mut V ) -> ControlFlow < V :: BreakTy > {
@@ -354,7 +354,7 @@ impl<'tcx> TypeFoldable<'tcx> for Field {
354
354
}
355
355
356
356
impl < ' tcx > TypeFoldable < ' tcx > for GeneratorSavedLocal {
357
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > ( self , _: & mut F ) -> Result < Self , F :: Error > {
357
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > ( self , _: & mut F ) -> Result < Self , F :: Error > {
358
358
Ok ( self )
359
359
}
360
360
fn super_visit_with < V : TypeVisitor < ' tcx > > ( & self , _: & mut V ) -> ControlFlow < V :: BreakTy > {
@@ -363,7 +363,7 @@ impl<'tcx> TypeFoldable<'tcx> for GeneratorSavedLocal {
363
363
}
364
364
365
365
impl < ' tcx , R : Idx , C : Idx > TypeFoldable < ' tcx > for BitMatrix < R , C > {
366
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > ( self , _: & mut F ) -> Result < Self , F :: Error > {
366
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > ( self , _: & mut F ) -> Result < Self , F :: Error > {
367
367
Ok ( self )
368
368
}
369
369
fn super_visit_with < V : TypeVisitor < ' tcx > > ( & self , _: & mut V ) -> ControlFlow < V :: BreakTy > {
@@ -372,7 +372,7 @@ impl<'tcx, R: Idx, C: Idx> TypeFoldable<'tcx> for BitMatrix<R, C> {
372
372
}
373
373
374
374
impl < ' tcx > TypeFoldable < ' tcx > for Constant < ' tcx > {
375
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
375
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
376
376
self ,
377
377
folder : & mut F ,
378
378
) -> Result < Self , F :: Error > {
@@ -390,11 +390,11 @@ impl<'tcx> TypeFoldable<'tcx> for Constant<'tcx> {
390
390
391
391
impl < ' tcx > TypeFoldable < ' tcx > for ConstantKind < ' tcx > {
392
392
#[ inline( always) ]
393
- fn try_fold_with < F : TypeFolderFallible < ' tcx > > ( self , folder : & mut F ) -> Result < Self , F :: Error > {
393
+ fn try_fold_with < F : FallibleTypeFolder < ' tcx > > ( self , folder : & mut F ) -> Result < Self , F :: Error > {
394
394
folder. try_fold_mir_const ( self )
395
395
}
396
396
397
- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
397
+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
398
398
self ,
399
399
folder : & mut F ,
400
400
) -> Result < Self , F :: Error > {
0 commit comments