outside of borrowck, do not provide an implicit_region_bound
see comment added to the field in `VerifyBoundCx`.
This commit is contained in:
parent
9cf699d2ff
commit
4dbf9ba0ab
10 changed files with 18 additions and 33 deletions
|
@ -366,7 +366,6 @@ impl<'a, 'tcx> RegionCtxt<'a, 'tcx> {
|
|||
fn resolve_regions_and_report_errors(&self) {
|
||||
self.infcx.process_registered_region_obligations(
|
||||
self.outlives_environment.region_bound_pairs_map(),
|
||||
Some(self.tcx.lifetimes.re_root_empty),
|
||||
self.param_env,
|
||||
);
|
||||
|
||||
|
|
|
@ -596,13 +596,7 @@ fn ty_known_to_outlive<'tcx>(
|
|||
) -> bool {
|
||||
resolve_regions_with_wf_tys(tcx, id, param_env, &wf_tys, |infcx, region_bound_pairs| {
|
||||
let origin = infer::RelateParamBound(DUMMY_SP, ty, None);
|
||||
let outlives = &mut TypeOutlives::new(
|
||||
infcx,
|
||||
tcx,
|
||||
region_bound_pairs,
|
||||
Some(infcx.tcx.lifetimes.re_root_empty),
|
||||
param_env,
|
||||
);
|
||||
let outlives = &mut TypeOutlives::new(infcx, tcx, region_bound_pairs, None, param_env);
|
||||
outlives.type_must_outlive(origin, ty, region);
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue