File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ impl<'tcx> IntoFromEnvGoal for DomainGoal<'tcx> {
106
106
FromEnv ( ..) |
107
107
WellFormedTy ( ..) |
108
108
FromEnvTy ( ..) |
109
+ Normalize ( ..) |
109
110
RegionOutlives ( ..) |
110
111
TypeOutlives ( ..) => self ,
111
112
}
@@ -284,8 +285,11 @@ pub fn program_clauses_for_associated_type_value<'a, 'tcx>(
284
285
// `Normalize(<A0 as Trait<A1..An>>::AssocType<Pn+1..Pm> -> T)`
285
286
let normalize_goal = DomainGoal :: Normalize ( ty:: ProjectionPredicate { projection_ty, ty } ) ;
286
287
// `Normalize(... -> T) :- WC && WC1`
287
- let clause = Clause :: Implies ( where_clauses, normalize_goal) ;
288
- Lrc :: new ( vec ! [ clause] )
288
+ let clause = ProgramClause {
289
+ goal : normalize_goal,
290
+ hypotheses : where_clauses. into_iter ( ) . map ( |wc| wc. into ( ) ) . collect ( ) ,
291
+ } ;
292
+ Lrc :: new ( vec ! [ Clause :: ForAll ( ty:: Binder :: dummy( clause) ) ] )
289
293
}
290
294
291
295
pub fn dump_program_clauses < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ) {
You can’t perform that action at this time.
0 commit comments