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 @@ -1018,23 +1018,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
10181018 // `ClosureOutlivesRequirement`.
10191019 for ur in self . scc_values . universal_regions_outlived_by ( r_scc) {
10201020 debug ! ( "universal_region_outlived_by ur={:?}" , ur) ;
1021- // Check whether we can already prove that the "subject" outlives `ur`.
1022- // If so, we don't have to propagate this requirement to our caller.
1023- //
1024- // To continue the example from the function, if we are trying to promote
1025- // a requirement that `T: 'X`, and we know that `'X = '1 + '2` (i.e., the union
1026- // `'1` and `'2`), then in this loop `ur` will be `'1` (and `'2`). So here
1027- // we check whether `T: '1` is something we *can* prove. If so, no need
1028- // to propagate that requirement.
1029- //
1030- // This is needed because -- particularly in the case
1031- // where `ur` is a local bound -- we are sometimes in a
1032- // position to prove things that our caller cannot. See
1033- // #53570 for an example.
1034- if self . eval_verify_bound ( infcx, generic_ty, ur, & type_test. verify_bound ) {
1035- continue ;
1036- }
1037-
10381021 let non_local_ub = self . universal_region_relations . non_local_upper_bounds ( ur) ;
10391022 debug ! ( "try_promote_type_test: non_local_ub={:?}" , non_local_ub) ;
10401023
You can’t perform that action at this time.
0 commit comments