remove obsolete givens from regionck

This commit is contained in:
Ali MJ Al-Nasrawy
2023-01-27 17:22:05 +03:00
parent 7c306f6dcd
commit 95bcca85ff
12 changed files with 26 additions and 144 deletions

View File

@@ -179,7 +179,7 @@ fn get_impl_substs(
}
let implied_bounds = infcx.implied_bounds_tys(param_env, impl1_def_id, assumed_wf_types);
let outlives_env = OutlivesEnvironment::with_bounds(param_env, Some(infcx), implied_bounds);
let outlives_env = OutlivesEnvironment::with_bounds(param_env, implied_bounds);
let _ =
infcx.err_ctxt().check_region_obligations_and_report_errors(impl1_def_id, &outlives_env);
let Ok(impl2_substs) = infcx.fully_resolve(impl2_substs) else {