File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
compiler/rustc_borrowck/src/region_infer Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -1013,23 +1013,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
10131013 // `ClosureOutlivesRequirement`.
10141014 for ur in self . scc_values . universal_regions_outlived_by ( r_scc) {
10151015 debug ! ( "universal_region_outlived_by ur={:?}" , ur) ;
1016- // Check whether we can already prove that the "subject" outlives `ur`.
1017- // If so, we don't have to propagate this requirement to our caller.
1018- //
1019- // To continue the example from the function, if we are trying to promote
1020- // a requirement that `T: 'X`, and we know that `'X = '1 + '2` (i.e., the union
1021- // `'1` and `'2`), then in this loop `ur` will be `'1` (and `'2`). So here
1022- // we check whether `T: '1` is something we *can* prove. If so, no need
1023- // to propagate that requirement.
1024- //
1025- // This is needed because -- particularly in the case
1026- // where `ur` is a local bound -- we are sometimes in a
1027- // position to prove things that our caller cannot. See
1028- // #53570 for an example.
1029- if self . eval_verify_bound ( infcx, generic_ty, ur, & verify_bound) {
1030- continue ;
1031- }
1032-
10331016 let non_local_ub = self . universal_region_relations . non_local_upper_bounds ( ur) ;
10341017 debug ! ( ?non_local_ub) ;
10351018
You can’t perform that action at this time.
0 commit comments