@@ -220,7 +220,7 @@ fn program_clauses_for_trait<'a, 'tcx>(
220
220
// `Implemented(Self: Trait<P1..Pn>) :- FromEnv(Self: Trait<P1..Pn>)`
221
221
let implemented_from_env = ProgramClause {
222
222
goal : impl_trait,
223
- hypotheses : tcx. mk_goals ( iter :: once ( from_env) ) ,
223
+ hypotheses : tcx. intern_goals ( & [ from_env] ) ,
224
224
} ;
225
225
let clauses = iter:: once ( Clause :: ForAll ( ty:: Binder :: dummy ( implemented_from_env) ) ) ;
226
226
@@ -256,7 +256,7 @@ fn implied_bound_from_trait<'a, 'tcx>(
256
256
// `FromEnv(WC) :- FromEnv(Self: Trait<P1..Pn>)`
257
257
Clause :: ForAll ( where_clause. lower ( ) . map_bound ( |goal| ProgramClause {
258
258
goal : goal. into_from_env_goal ( ) ,
259
- hypotheses : tcx. mk_goals ( iter :: once ( Goal :: from ( impl_trait) ) ) ,
259
+ hypotheses : tcx. intern_goals ( & [ Goal :: from ( impl_trait) ] ) ,
260
260
} ) )
261
261
}
262
262
@@ -290,7 +290,7 @@ fn program_clauses_for_impl<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId
290
290
. map ( |wc| Goal :: from_poly_domain_goal ( wc, tcx) ) ,
291
291
) ,
292
292
} ;
293
- tcx. mk_clauses ( iter :: once ( Clause :: ForAll ( ty:: Binder :: dummy ( clause) ) ) )
293
+ tcx. intern_clauses ( & [ Clause :: ForAll ( ty:: Binder :: dummy ( clause) ) ] )
294
294
}
295
295
296
296
pub fn program_clauses_for_associated_type_value < ' a , ' tcx > (
@@ -344,7 +344,7 @@ pub fn program_clauses_for_associated_type_value<'a, 'tcx>(
344
344
. map ( |wc| Goal :: from_poly_domain_goal ( wc, tcx) ) ,
345
345
) ,
346
346
} ;
347
- tcx. mk_clauses ( iter :: once ( Clause :: ForAll ( ty:: Binder :: dummy ( clause) ) ) )
347
+ tcx. intern_clauses ( & [ Clause :: ForAll ( ty:: Binder :: dummy ( clause) ) ] )
348
348
}
349
349
350
350
pub fn dump_program_clauses < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ) {
0 commit comments