Add comments about outlives_env
This commit is contained in:
parent
ff11dfd71d
commit
45983fecff
1 changed files with 7 additions and 0 deletions
|
@ -392,6 +392,13 @@ fn negative_impl_exists<'cx, 'tcx>(
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut outlives_env = OutlivesEnvironment::new(param_env);
|
let mut outlives_env = OutlivesEnvironment::new(param_env);
|
||||||
|
// FIXME -- add "assumed to be well formed" types into the `outlives_env`
|
||||||
|
|
||||||
|
// "Save" the accumulated implied bounds into the outlives environment
|
||||||
|
// (due to the FIXME above, there aren't any, but this step is still needed).
|
||||||
|
// The "body id" is given as `CRATE_HIR_ID`, which is the same body-id used
|
||||||
|
// by the "dummy" causes elsewhere (body-id is only relevant when checking
|
||||||
|
// function bodies with closures).
|
||||||
outlives_env.save_implied_bounds(CRATE_HIR_ID);
|
outlives_env.save_implied_bounds(CRATE_HIR_ID);
|
||||||
|
|
||||||
infcx.process_registered_region_obligations(
|
infcx.process_registered_region_obligations(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue