diff options
| author | lcnr <rust@lcnr.de> | 2022-06-27 15:48:54 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-06-27 15:48:54 +0200 |
| commit | 4dbf9ba0aba366a08e0be5427fbd7ad900b0db7c (patch) | |
| tree | ecfda9ece089fcaebbe470ccf385260671ac5189 /compiler/rustc_trait_selection/src | |
| parent | 9cf699d2ff4ff23a6d6862a35727f4d5d3567dae (diff) | |
| download | rust-4dbf9ba0aba366a08e0be5427fbd7ad900b0db7c.tar.gz rust-4dbf9ba0aba366a08e0be5427fbd7ad900b0db7c.zip | |
outside of borrowck, do not provide an implicit_region_bound
see comment added to the field in `VerifyBoundCx`.
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/auto_trait.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/coherence.rs | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/auto_trait.rs b/compiler/rustc_trait_selection/src/traits/auto_trait.rs index a63790b594d..90ff07cba02 100644 --- a/compiler/rustc_trait_selection/src/traits/auto_trait.rs +++ b/compiler/rustc_trait_selection/src/traits/auto_trait.rs @@ -220,7 +220,7 @@ impl<'tcx> AutoTraitFinder<'tcx> { .map(|&(id, _)| (id, vec![])) .collect(); - infcx.process_registered_region_obligations(&body_id_map, None, full_env); + infcx.process_registered_region_obligations(&body_id_map, full_env); let region_data = infcx .inner diff --git a/compiler/rustc_trait_selection/src/traits/coherence.rs b/compiler/rustc_trait_selection/src/traits/coherence.rs index b37db4b9e18..2b26b916d32 100644 --- a/compiler/rustc_trait_selection/src/traits/coherence.rs +++ b/compiler/rustc_trait_selection/src/traits/coherence.rs @@ -407,11 +407,7 @@ fn resolve_negative_obligation<'cx, 'tcx>( // function bodies with closures). outlives_env.save_implied_bounds(CRATE_HIR_ID); - infcx.process_registered_region_obligations( - outlives_env.region_bound_pairs_map(), - Some(tcx.lifetimes.re_root_empty), - param_env, - ); + infcx.process_registered_region_obligations(outlives_env.region_bound_pairs_map(), param_env); let errors = infcx.resolve_regions(region_context, &outlives_env); |
