File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/librustc_mir/borrow_check/nll/region_infer Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -698,7 +698,10 @@ impl<'tcx> RegionInferenceContext<'tcx> {
698
698
// `ClosureOutlivesRequirement`.
699
699
let r_scc = self . constraint_sccs . scc ( * lower_bound) ;
700
700
for ur in self . scc_values . universal_regions_outlived_by ( r_scc) {
701
+ debug ! ( "try_promote_type_test: ur={:?}" , ur) ;
702
+
701
703
let non_local_ub = self . universal_region_relations . non_local_upper_bound ( ur) ;
704
+ debug ! ( "try_promote_type_test: non_local_ub={:?}" , non_local_ub) ;
702
705
703
706
assert ! ( self . universal_regions. is_universal_region( non_local_ub) ) ;
704
707
assert ! (
@@ -707,11 +710,13 @@ impl<'tcx> RegionInferenceContext<'tcx> {
707
710
. is_local_free_region( non_local_ub)
708
711
) ;
709
712
710
- propagated_outlives_requirements . push ( ClosureOutlivesRequirement {
713
+ let requirement = ClosureOutlivesRequirement {
711
714
subject,
712
715
outlived_free_region : non_local_ub,
713
716
blame_span : locations. span ( mir) ,
714
- } ) ;
717
+ } ;
718
+ debug ! ( "try_promote_type_test: pushing {:#?}" , requirement) ;
719
+ propagated_outlives_requirements. push ( requirement) ;
715
720
}
716
721
true
717
722
}
You can’t perform that action at this time.
0 commit comments