@@ -24,6 +24,7 @@ use rustc_session::parse::feature_err;
24
24
use rustc_span:: symbol:: { sym, Ident , Symbol } ;
25
25
use rustc_span:: { Span , DUMMY_SP } ;
26
26
use rustc_target:: spec:: abi:: Abi ;
27
+ use rustc_trait_selection:: regions:: InferCtxtRegionExt ;
27
28
use rustc_trait_selection:: traits:: error_reporting:: TypeErrCtxtExt ;
28
29
use rustc_trait_selection:: traits:: misc:: {
29
30
type_allowed_to_implement_const_param_ty, ConstParamTyImplementationError ,
@@ -134,7 +135,7 @@ where
134
135
infcx. implied_bounds_tys_compat ( param_env, body_def_id, & assumed_wf_types, false ) ;
135
136
let outlives_env = OutlivesEnvironment :: with_bounds ( param_env, implied_bounds) ;
136
137
137
- let errors = infcx. resolve_regions ( & outlives_env) ;
138
+ let errors = infcx. resolve_regions_normalizing_outlives_obligations ( & outlives_env) ;
138
139
if errors. is_empty ( ) {
139
140
return Ok ( ( ) ) ;
140
141
}
@@ -175,7 +176,8 @@ where
175
176
let implied_bounds =
176
177
infcx_compat. implied_bounds_tys_compat ( param_env, body_def_id, & assumed_wf_types, true ) ;
177
178
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) ;
179
181
if errors_compat. is_empty ( ) {
180
182
Ok ( ( ) )
181
183
} else {
@@ -775,7 +777,7 @@ fn test_region_obligations<'tcx>(
775
777
infcx. implied_bounds_tys ( param_env, id, wf_tys) ,
776
778
) ;
777
779
778
- let errors = infcx. resolve_regions ( & outlives_environment) ;
780
+ let errors = infcx. resolve_regions_normalizing_outlives_obligations ( & outlives_environment) ;
779
781
debug ! ( ?errors, "errors" ) ;
780
782
781
783
// If we were able to prove that the type outlives the region without
0 commit comments