@@ -73,7 +73,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
73
73
goal. predicate . projection_ty ,
74
74
assumption_projection_pred. projection_ty ,
75
75
) ?;
76
- ecx. eq ( goal. param_env , goal. predicate . term , assumption_projection_pred. term ) ?;
76
+ ecx. eq ( goal. param_env , goal. predicate . term , assumption_projection_pred. term )
77
+ . expect ( "expected goal term to be fully unconstrained" ) ;
77
78
ecx. add_goals ( requirements) ;
78
79
ecx. evaluate_added_goals_and_make_canonical_response ( Certainty :: Yes )
79
80
} )
@@ -114,7 +115,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
114
115
. into_iter ( )
115
116
. map ( |pred| goal. with ( tcx, pred) ) ,
116
117
) ;
117
- ecx. eq ( goal. param_env , goal. predicate . term , assumption_projection_pred. term ) ?;
118
+ ecx. eq ( goal. param_env , goal. predicate . term , assumption_projection_pred. term )
119
+ . expect ( "expected goal term to be fully unconstrained" ) ;
118
120
ecx. evaluate_added_goals_and_make_canonical_response ( Certainty :: Yes )
119
121
} )
120
122
} else {
@@ -206,7 +208,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
206
208
ty. map_bound ( |ty| ty. into ( ) )
207
209
} ;
208
210
209
- ecx. eq ( goal. param_env , goal. predicate . term , term. subst ( tcx, substs) ) ?;
211
+ ecx. eq ( goal. param_env , goal. predicate . term , term. subst ( tcx, substs) )
212
+ . expect ( "expected goal term to be fully unconstrained" ) ;
210
213
ecx. evaluate_added_goals_and_make_canonical_response ( Certainty :: Yes )
211
214
} )
212
215
}
@@ -375,7 +378,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
375
378
) ,
376
379
} ;
377
380
378
- ecx. eq ( goal. param_env , goal. predicate . term , metadata_ty. into ( ) ) ?;
381
+ ecx. eq ( goal. param_env , goal. predicate . term , metadata_ty. into ( ) )
382
+ . expect ( "expected goal term to be fully unconstrained" ) ;
379
383
ecx. evaluate_added_goals_and_make_canonical_response ( Certainty :: Yes )
380
384
} )
381
385
}
@@ -513,7 +517,8 @@ impl<'tcx> assembly::GoalKind<'tcx> for ProjectionPredicate<'tcx> {
513
517
} ;
514
518
515
519
ecx. probe ( |ecx| {
516
- ecx. eq ( goal. param_env , goal. predicate . term , discriminant_ty. into ( ) ) ?;
520
+ ecx. eq ( goal. param_env , goal. predicate . term , discriminant_ty. into ( ) )
521
+ . expect ( "expected goal term to be fully unconstrained" ) ;
517
522
ecx. evaluate_added_goals_and_make_canonical_response ( Certainty :: Yes )
518
523
} )
519
524
}
0 commit comments