@@ -24,6 +24,7 @@ use rustc_session::parse::feature_err;
2424use rustc_span:: symbol:: { sym, Ident , Symbol } ;
2525use rustc_span:: { Span , DUMMY_SP } ;
2626use rustc_target:: spec:: abi:: Abi ;
27+ use rustc_trait_selection:: regions:: InferCtxtRegionExt ;
2728use rustc_trait_selection:: traits:: error_reporting:: TypeErrCtxtExt ;
2829use rustc_trait_selection:: traits:: misc:: {
2930 type_allowed_to_implement_const_param_ty, ConstParamTyImplementationError ,
@@ -134,7 +135,7 @@ where
134135 infcx. implied_bounds_tys_compat ( param_env, body_def_id, & assumed_wf_types, false ) ;
135136 let outlives_env = OutlivesEnvironment :: with_bounds ( param_env, implied_bounds) ;
136137
137- let errors = infcx. resolve_regions ( & outlives_env) ;
138+ let errors = infcx. resolve_regions_normalizing_outlives_obligations ( & outlives_env) ;
138139 if errors. is_empty ( ) {
139140 return Ok ( ( ) ) ;
140141 }
@@ -175,7 +176,8 @@ where
175176 let implied_bounds =
176177 infcx_compat. implied_bounds_tys_compat ( param_env, body_def_id, & assumed_wf_types, true ) ;
177178 let outlives_env = OutlivesEnvironment :: with_bounds ( param_env, implied_bounds) ;
178- let errors_compat = infcx_compat. resolve_regions ( & outlives_env) ;
179+ let errors_compat =
180+ infcx_compat. resolve_regions_normalizing_outlives_obligations ( & outlives_env) ;
179181 if errors_compat. is_empty ( ) {
180182 Ok ( ( ) )
181183 } else {
@@ -775,7 +777,7 @@ fn test_region_obligations<'tcx>(
775777 infcx. implied_bounds_tys ( param_env, id, wf_tys) ,
776778 ) ;
777779
778- let errors = infcx. resolve_regions ( & outlives_environment) ;
780+ let errors = infcx. resolve_regions_normalizing_outlives_obligations ( & outlives_environment) ;
779781 debug ! ( ?errors, "errors" ) ;
780782
781783 // If we were able to prove that the type outlives the region without
0 commit comments