@@ -191,7 +191,8 @@ impl<'a, 'tcx> Lift<'tcx> for traits::ObligationCauseCode<'a> {
191191 super :: AssignmentLhsSized => Some ( super :: AssignmentLhsSized ) ,
192192 super :: StructInitializerSized => Some ( super :: StructInitializerSized ) ,
193193 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 ) ,
195196 super :: RepeatVec => Some ( super :: RepeatVec ) ,
196197 super :: FieldSized => Some ( super :: FieldSized ) ,
197198 super :: ConstSized => Some ( super :: ConstSized ) ,
@@ -213,34 +214,19 @@ impl<'a, 'tcx> Lift<'tcx> for traits::ObligationCauseCode<'a> {
213214 lint_id : lint_id,
214215 } )
215216 }
216- super :: ExprAssignable => {
217- Some ( super :: ExprAssignable )
218- }
217+ super :: ExprAssignable => Some ( super :: ExprAssignable ) ,
219218 super :: MatchExpressionArm { arm_span, source } => {
220219 Some ( super :: MatchExpressionArm { arm_span : arm_span,
221220 source : source } )
222221 }
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) ) ,
244230 }
245231 }
246232}
@@ -492,12 +478,14 @@ impl<'tcx> TypeFoldable<'tcx> for traits::ObligationCauseCode<'tcx> {
492478 super :: AssignmentLhsSized |
493479 super :: StructInitializerSized |
494480 super :: VariableType ( _) |
495- super :: ReturnType |
481+ super :: ReturnType ( _) |
482+ super :: SizedReturnType |
496483 super :: ReturnNoExpression |
497484 super :: RepeatVec |
498485 super :: FieldSized |
499486 super :: ConstSized |
500487 super :: SharedStatic |
488+ super :: BlockTailExpression ( _) |
501489 super :: CompareImplMethodObligation { .. } => self . clone ( ) ,
502490
503491 super :: ProjectionWf ( proj) => super :: ProjectionWf ( proj. fold_with ( folder) ) ,
@@ -537,12 +525,14 @@ impl<'tcx> TypeFoldable<'tcx> for traits::ObligationCauseCode<'tcx> {
537525 super :: AssignmentLhsSized |
538526 super :: StructInitializerSized |
539527 super :: VariableType ( _) |
540- super :: ReturnType |
528+ super :: ReturnType ( _) |
529+ super :: SizedReturnType |
541530 super :: ReturnNoExpression |
542531 super :: RepeatVec |
543532 super :: FieldSized |
544533 super :: ConstSized |
545534 super :: SharedStatic |
535+ super :: BlockTailExpression ( _) |
546536 super :: CompareImplMethodObligation { .. } => false ,
547537
548538 super :: ProjectionWf ( proj) => proj. visit_with ( visitor) ,
0 commit comments