@@ -1078,7 +1078,8 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
10781078 }
10791079
10801080 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 ( ) ) ,
10821083 Locations :: All ( span) ,
10831084 ConstraintCategory :: TypeAnnotation ,
10841085 ) ;
@@ -1314,7 +1315,8 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
13141315 obligations. obligations . push ( traits:: Obligation :: new (
13151316 ObligationCause :: dummy ( ) ,
13161317 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 ) ,
13181320 ) ) ;
13191321 obligations. add (
13201322 infcx
@@ -1584,7 +1586,9 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
15841586 self . check_call_dest ( body, term, & sig, destination, term_location) ;
15851587
15861588 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 ( ) ) ) ) ,
15881592 term_location. to_locations ( ) ,
15891593 ConstraintCategory :: Boring ,
15901594 ) ;
0 commit comments