remove obsolete givens
from regionck
This commit is contained in:
parent
8859fde21f
commit
b197f1ac2e
12 changed files with 26 additions and 144 deletions
|
@ -396,7 +396,6 @@ fn resolve_negative_obligation<'tcx>(
|
|||
let wf_tys = ocx.assumed_wf_types(param_env, DUMMY_SP, body_def_id);
|
||||
let outlives_env = OutlivesEnvironment::with_bounds(
|
||||
param_env,
|
||||
Some(&infcx),
|
||||
infcx.implied_bounds_tys(param_env, body_def_id, wf_tys),
|
||||
);
|
||||
|
||||
|
|
|
@ -111,7 +111,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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue