@@ -221,7 +221,7 @@ fn compare_method_predicate_entailment<'tcx>(
221
221
// The key step here is to update the caller_bounds's predicates to be
222
222
// the new hybrid bounds we computed.
223
223
let normalize_cause = traits:: ObligationCause :: misc ( impl_m_span, impl_m_def_id) ;
224
- let param_env = ty:: ParamEnv :: new (
224
+ let param_env = ty:: ParamEnv :: from_elaborated_clauses (
225
225
tcx. mk_clauses_from_iter ( util:: elaborate ( tcx, hybrid_preds. predicates ) ) ,
226
226
Reveal :: UserFacing ,
227
227
) ;
@@ -488,7 +488,7 @@ pub(super) fn collect_return_position_impl_trait_in_trait_tys<'tcx>(
488
488
. into_iter ( )
489
489
. chain ( tcx. predicates_of ( trait_m. def_id ) . instantiate_own ( tcx, trait_to_placeholder_args) )
490
490
. map ( |( clause, _) | clause) ;
491
- let param_env = ty:: ParamEnv :: new (
491
+ let param_env = ty:: ParamEnv :: from_elaborated_clauses (
492
492
tcx. mk_clauses_from_iter ( util:: elaborate ( tcx, hybrid_preds) ) ,
493
493
Reveal :: UserFacing ,
494
494
) ;
@@ -1782,7 +1782,7 @@ fn compare_const_predicate_entailment<'tcx>(
1782
1782
. map ( |( predicate, _) | predicate) ,
1783
1783
) ;
1784
1784
1785
- let param_env = ty:: ParamEnv :: new (
1785
+ let param_env = ty:: ParamEnv :: from_elaborated_clauses (
1786
1786
tcx. mk_clauses_from_iter ( util:: elaborate ( tcx, hybrid_preds. predicates ) ) ,
1787
1787
Reveal :: UserFacing ,
1788
1788
) ;
@@ -1924,7 +1924,7 @@ fn compare_type_predicate_entailment<'tcx>(
1924
1924
1925
1925
let impl_ty_span = tcx. def_span ( impl_ty_def_id) ;
1926
1926
let normalize_cause = ObligationCause :: misc ( impl_ty_span, impl_ty_def_id) ;
1927
- let param_env = ty:: ParamEnv :: new (
1927
+ let param_env = ty:: ParamEnv :: from_elaborated_clauses (
1928
1928
tcx. mk_clauses_from_iter ( util:: elaborate ( tcx, hybrid_preds. predicates ) ) ,
1929
1929
Reveal :: UserFacing ,
1930
1930
) ;
@@ -2236,7 +2236,7 @@ fn param_env_with_gat_bounds<'tcx>(
2236
2236
} ;
2237
2237
}
2238
2238
2239
- ty:: ParamEnv :: new ( tcx. mk_clauses ( & predicates) , Reveal :: UserFacing )
2239
+ ty:: ParamEnv :: from_elaborated_clauses ( tcx. mk_clauses ( & predicates) , Reveal :: UserFacing )
2240
2240
}
2241
2241
2242
2242
fn assoc_item_kind_str ( impl_item : & ty:: AssocItem ) -> & ' static str {
0 commit comments