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