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

@@ -111,6 +111,7 @@ 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,