1
Fork 0

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

@ -106,7 +106,6 @@ pub fn type_allowed_to_implement_copy<'tcx>(
// Check regions assuming the self type of the impl is WF
let outlives_env = OutlivesEnvironment::with_bounds(
param_env,
Some(&infcx),
infcx.implied_bounds_tys(
param_env,
parent_cause.body_id,