@@ -619,14 +619,15 @@ impl<'cx, 'gcx, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'cx, 'gcx, 'tcx> {
619
619
value, all_outlive_scope,
620
620
) ;
621
621
let ( value, _map) = self . tcx . replace_late_bound_regions ( value, |br| {
622
+ debug ! ( "replace_bound_regions_with_nll_infer_vars: br={:?}" , br) ;
622
623
let liberated_region = self . tcx . mk_region ( ty:: ReFree ( ty:: FreeRegion {
623
624
scope : all_outlive_scope,
624
625
bound_region : br,
625
626
} ) ) ;
626
627
let region_vid = self . next_nll_region_var ( origin) ;
627
628
indices. insert_late_bound_region ( liberated_region, region_vid. to_region_vid ( ) ) ;
628
629
debug ! (
629
- "liberated_region={:?} => {:?}" ,
630
+ "replace_bound_regions_with_nll_infer_vars: liberated_region={:?} => {:?}" ,
630
631
liberated_region, region_vid
631
632
) ;
632
633
region_vid
@@ -648,12 +649,18 @@ impl<'cx, 'gcx, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'cx, 'gcx, 'tcx> {
648
649
mir_def_id : DefId ,
649
650
indices : & mut UniversalRegionIndices < ' tcx > ,
650
651
) {
652
+ debug ! (
653
+ "replace_late_bound_regions_with_nll_infer_vars(mir_def_id={:?})" ,
654
+ mir_def_id
655
+ ) ;
651
656
let closure_base_def_id = self . tcx . closure_base_def_id ( mir_def_id) ;
652
657
for_each_late_bound_region_defined_on ( self . tcx , closure_base_def_id, |r| {
658
+ debug ! ( "replace_late_bound_regions_with_nll_infer_vars: r={:?}" , r) ;
653
659
if !indices. indices . contains_key ( & r) {
654
660
let region_vid = self . next_nll_region_var ( FR ) ;
655
661
indices. insert_late_bound_region ( r, region_vid. to_region_vid ( ) ) ;
656
- } } ) ;
662
+ }
663
+ } ) ;
657
664
}
658
665
}
659
666
0 commit comments