@@ -221,7 +221,7 @@ fn compare_method_predicate_entailment<'tcx>(
221221 // The key step here is to update the caller_bounds's predicates to be
222222 // the new hybrid bounds we computed.
223223 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 (
225225 tcx. mk_clauses_from_iter ( util:: elaborate ( tcx, hybrid_preds. predicates ) ) ,
226226 Reveal :: UserFacing ,
227227 ) ;
@@ -488,7 +488,7 @@ pub(super) fn collect_return_position_impl_trait_in_trait_tys<'tcx>(
488488 . into_iter ( )
489489 . chain ( tcx. predicates_of ( trait_m. def_id ) . instantiate_own ( tcx, trait_to_placeholder_args) )
490490 . map ( |( clause, _) | clause) ;
491- let param_env = ty:: ParamEnv :: new (
491+ let param_env = ty:: ParamEnv :: from_elaborated_clauses (
492492 tcx. mk_clauses_from_iter ( util:: elaborate ( tcx, hybrid_preds) ) ,
493493 Reveal :: UserFacing ,
494494 ) ;
@@ -1782,7 +1782,7 @@ fn compare_const_predicate_entailment<'tcx>(
17821782 . map ( |( predicate, _) | predicate) ,
17831783 ) ;
17841784
1785- let param_env = ty:: ParamEnv :: new (
1785+ let param_env = ty:: ParamEnv :: from_elaborated_clauses (
17861786 tcx. mk_clauses_from_iter ( util:: elaborate ( tcx, hybrid_preds. predicates ) ) ,
17871787 Reveal :: UserFacing ,
17881788 ) ;
@@ -1924,7 +1924,7 @@ fn compare_type_predicate_entailment<'tcx>(
19241924
19251925 let impl_ty_span = tcx. def_span ( impl_ty_def_id) ;
19261926 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 (
19281928 tcx. mk_clauses_from_iter ( util:: elaborate ( tcx, hybrid_preds. predicates ) ) ,
19291929 Reveal :: UserFacing ,
19301930 ) ;
@@ -2236,7 +2236,7 @@ fn param_env_with_gat_bounds<'tcx>(
22362236 } ;
22372237 }
22382238
2239- ty:: ParamEnv :: new ( tcx. mk_clauses ( & predicates) , Reveal :: UserFacing )
2239+ ty:: ParamEnv :: from_elaborated_clauses ( tcx. mk_clauses ( & predicates) , Reveal :: UserFacing )
22402240}
22412241
22422242fn assoc_item_kind_str ( impl_item : & ty:: AssocItem ) -> & ' static str {
0 commit comments