@@ -1078,7 +1078,8 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
1078
1078
}
1079
1079
1080
1080
self . prove_predicate (
1081
- ty:: PredicateKind :: WellFormed ( inferred_ty. into ( ) ) . to_predicate ( self . tcx ( ) ) ,
1081
+ ty:: Binder :: dummy ( ty:: PredicateKind :: WellFormed ( inferred_ty. into ( ) ) )
1082
+ . to_predicate ( self . tcx ( ) ) ,
1082
1083
Locations :: All ( span) ,
1083
1084
ConstraintCategory :: TypeAnnotation ,
1084
1085
) ;
@@ -1314,7 +1315,8 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
1314
1315
obligations. obligations . push ( traits:: Obligation :: new (
1315
1316
ObligationCause :: dummy ( ) ,
1316
1317
param_env,
1317
- ty:: PredicateKind :: WellFormed ( revealed_ty. into ( ) ) . to_predicate ( infcx. tcx ) ,
1318
+ ty:: Binder :: dummy ( ty:: PredicateKind :: WellFormed ( revealed_ty. into ( ) ) )
1319
+ . to_predicate ( infcx. tcx ) ,
1318
1320
) ) ;
1319
1321
obligations. add (
1320
1322
infcx
@@ -1584,7 +1586,9 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
1584
1586
self . check_call_dest ( body, term, & sig, destination, term_location) ;
1585
1587
1586
1588
self . prove_predicates (
1587
- sig. inputs_and_output . iter ( ) . map ( |ty| ty:: PredicateKind :: WellFormed ( ty. into ( ) ) ) ,
1589
+ sig. inputs_and_output
1590
+ . iter ( )
1591
+ . map ( |ty| ty:: Binder :: dummy ( ty:: PredicateKind :: WellFormed ( ty. into ( ) ) ) ) ,
1588
1592
term_location. to_locations ( ) ,
1589
1593
ConstraintCategory :: Boring ,
1590
1594
) ;
0 commit comments