@@ -191,7 +191,8 @@ impl<'a, 'tcx> Lift<'tcx> for traits::ObligationCauseCode<'a> {
191
191
super :: AssignmentLhsSized => Some ( super :: AssignmentLhsSized ) ,
192
192
super :: StructInitializerSized => Some ( super :: StructInitializerSized ) ,
193
193
super :: VariableType ( id) => Some ( super :: VariableType ( id) ) ,
194
- super :: ReturnType => Some ( super :: ReturnType ) ,
194
+ super :: ReturnType ( id) => Some ( super :: ReturnType ( id) ) ,
195
+ super :: SizedReturnType => Some ( super :: SizedReturnType ) ,
195
196
super :: RepeatVec => Some ( super :: RepeatVec ) ,
196
197
super :: FieldSized => Some ( super :: FieldSized ) ,
197
198
super :: ConstSized => Some ( super :: ConstSized ) ,
@@ -213,34 +214,19 @@ impl<'a, 'tcx> Lift<'tcx> for traits::ObligationCauseCode<'a> {
213
214
lint_id : lint_id,
214
215
} )
215
216
}
216
- super :: ExprAssignable => {
217
- Some ( super :: ExprAssignable )
218
- }
217
+ super :: ExprAssignable => Some ( super :: ExprAssignable ) ,
219
218
super :: MatchExpressionArm { arm_span, source } => {
220
219
Some ( super :: MatchExpressionArm { arm_span : arm_span,
221
220
source : source } )
222
221
}
223
- super :: IfExpression => {
224
- Some ( super :: IfExpression )
225
- }
226
- super :: IfExpressionWithNoElse => {
227
- Some ( super :: IfExpressionWithNoElse )
228
- }
229
- super :: EquatePredicate => {
230
- Some ( super :: EquatePredicate )
231
- }
232
- super :: MainFunctionType => {
233
- Some ( super :: MainFunctionType )
234
- }
235
- super :: StartFunctionType => {
236
- Some ( super :: StartFunctionType )
237
- }
238
- super :: IntrinsicType => {
239
- Some ( super :: IntrinsicType )
240
- }
241
- super :: MethodReceiver => {
242
- Some ( super :: MethodReceiver )
243
- }
222
+ super :: IfExpression => Some ( super :: IfExpression ) ,
223
+ super :: IfExpressionWithNoElse => Some ( super :: IfExpressionWithNoElse ) ,
224
+ super :: EquatePredicate => Some ( super :: EquatePredicate ) ,
225
+ super :: MainFunctionType => Some ( super :: MainFunctionType ) ,
226
+ super :: StartFunctionType => Some ( super :: StartFunctionType ) ,
227
+ super :: IntrinsicType => Some ( super :: IntrinsicType ) ,
228
+ super :: MethodReceiver => Some ( super :: MethodReceiver ) ,
229
+ super :: BlockTailExpression ( id) => Some ( super :: BlockTailExpression ( id) ) ,
244
230
}
245
231
}
246
232
}
@@ -492,12 +478,14 @@ impl<'tcx> TypeFoldable<'tcx> for traits::ObligationCauseCode<'tcx> {
492
478
super :: AssignmentLhsSized |
493
479
super :: StructInitializerSized |
494
480
super :: VariableType ( _) |
495
- super :: ReturnType |
481
+ super :: ReturnType ( _) |
482
+ super :: SizedReturnType |
496
483
super :: ReturnNoExpression |
497
484
super :: RepeatVec |
498
485
super :: FieldSized |
499
486
super :: ConstSized |
500
487
super :: SharedStatic |
488
+ super :: BlockTailExpression ( _) |
501
489
super :: CompareImplMethodObligation { .. } => self . clone ( ) ,
502
490
503
491
super :: ProjectionWf ( proj) => super :: ProjectionWf ( proj. fold_with ( folder) ) ,
@@ -537,12 +525,14 @@ impl<'tcx> TypeFoldable<'tcx> for traits::ObligationCauseCode<'tcx> {
537
525
super :: AssignmentLhsSized |
538
526
super :: StructInitializerSized |
539
527
super :: VariableType ( _) |
540
- super :: ReturnType |
528
+ super :: ReturnType ( _) |
529
+ super :: SizedReturnType |
541
530
super :: ReturnNoExpression |
542
531
super :: RepeatVec |
543
532
super :: FieldSized |
544
533
super :: ConstSized |
545
534
super :: SharedStatic |
535
+ super :: BlockTailExpression ( _) |
546
536
super :: CompareImplMethodObligation { .. } => false ,
547
537
548
538
super :: ProjectionWf ( proj) => proj. visit_with ( visitor) ,
0 commit comments