1
Fork 0

Revert "Auto merge of #107376 - aliemjay:remove-givens, r=lcnr"

This reverts commit e84e5ff04a, reversing
changes made to 1716932743.
This commit is contained in:
Rémy Rakic 2023-03-15 15:09:29 +00:00
parent 992d154f3a
commit 5ad1083e5b
14 changed files with 152 additions and 87 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, implied_bounds);
let outlives_env = OutlivesEnvironment::with_bounds(param_env, Some(infcx), 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 {