@@ -16,7 +16,7 @@ TrivialTypeFoldableAndLiftImpls! {
1616}
1717
1818impl < ' tcx > TypeFoldable < ' tcx > for Terminator < ' tcx > {
19- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
19+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
2020 self ,
2121 folder : & mut F ,
2222 ) -> Result < Self , F :: Error > {
@@ -148,7 +148,7 @@ impl<'tcx> TypeFoldable<'tcx> for Terminator<'tcx> {
148148}
149149
150150impl < ' 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 > {
152152 Ok ( self )
153153 }
154154
@@ -158,7 +158,7 @@ impl<'tcx> TypeFoldable<'tcx> for GeneratorKind {
158158}
159159
160160impl < ' tcx > TypeFoldable < ' tcx > for Place < ' tcx > {
161- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
161+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
162162 self ,
163163 folder : & mut F ,
164164 ) -> Result < Self , F :: Error > {
@@ -175,7 +175,7 @@ impl<'tcx> TypeFoldable<'tcx> for Place<'tcx> {
175175}
176176
177177impl < ' 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 > > (
179179 self ,
180180 folder : & mut F ,
181181 ) -> Result < Self , F :: Error > {
@@ -188,7 +188,7 @@ impl<'tcx> TypeFoldable<'tcx> for &'tcx ty::List<PlaceElem<'tcx>> {
188188}
189189
190190impl < ' tcx > TypeFoldable < ' tcx > for Rvalue < ' tcx > {
191- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
191+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
192192 self ,
193193 folder : & mut F ,
194194 ) -> Result < Self , F :: Error > {
@@ -292,7 +292,7 @@ impl<'tcx> TypeFoldable<'tcx> for Rvalue<'tcx> {
292292}
293293
294294impl < ' tcx > TypeFoldable < ' tcx > for Operand < ' tcx > {
295- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
295+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
296296 self ,
297297 folder : & mut F ,
298298 ) -> Result < Self , F :: Error > {
@@ -312,7 +312,7 @@ impl<'tcx> TypeFoldable<'tcx> for Operand<'tcx> {
312312}
313313
314314impl < ' tcx > TypeFoldable < ' tcx > for PlaceElem < ' tcx > {
315- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
315+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
316316 self ,
317317 folder : & mut F ,
318318 ) -> Result < Self , F :: Error > {
@@ -345,7 +345,7 @@ impl<'tcx> TypeFoldable<'tcx> for PlaceElem<'tcx> {
345345}
346346
347347impl < ' 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 > {
349349 Ok ( self )
350350 }
351351 fn super_visit_with < V : TypeVisitor < ' tcx > > ( & self , _: & mut V ) -> ControlFlow < V :: BreakTy > {
@@ -354,7 +354,7 @@ impl<'tcx> TypeFoldable<'tcx> for Field {
354354}
355355
356356impl < ' 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 > {
358358 Ok ( self )
359359 }
360360 fn super_visit_with < V : TypeVisitor < ' tcx > > ( & self , _: & mut V ) -> ControlFlow < V :: BreakTy > {
@@ -363,7 +363,7 @@ impl<'tcx> TypeFoldable<'tcx> for GeneratorSavedLocal {
363363}
364364
365365impl < ' 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 > {
367367 Ok ( self )
368368 }
369369 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> {
372372}
373373
374374impl < ' tcx > TypeFoldable < ' tcx > for Constant < ' tcx > {
375- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
375+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
376376 self ,
377377 folder : & mut F ,
378378 ) -> Result < Self , F :: Error > {
@@ -390,11 +390,11 @@ impl<'tcx> TypeFoldable<'tcx> for Constant<'tcx> {
390390
391391impl < ' tcx > TypeFoldable < ' tcx > for ConstantKind < ' tcx > {
392392 #[ 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 > {
394394 folder. try_fold_mir_const ( self )
395395 }
396396
397- fn try_super_fold_with < F : TypeFolderFallible < ' tcx > > (
397+ fn try_super_fold_with < F : FallibleTypeFolder < ' tcx > > (
398398 self ,
399399 folder : & mut F ,
400400 ) -> Result < Self , F :: Error > {
0 commit comments