@@ -28,7 +28,7 @@ use rustc_span::symbol::{kw, sym};
28
28
use rustc_span:: Symbol ;
29
29
use std:: iter;
30
30
31
- use crate :: renumber:: { BoundRegionInfo , RegionCtxt } ;
31
+ use crate :: renumber:: RegionCtxt ;
32
32
use crate :: BorrowckInferCtxt ;
33
33
34
34
#[ derive( Debug ) ]
@@ -446,9 +446,7 @@ impl<'cx, 'tcx> UniversalRegionsBuilder<'cx, 'tcx> {
446
446
if !indices. indices . contains_key ( & r) {
447
447
let region_vid = {
448
448
let name = r. get_name_or_anon ( ) ;
449
- self . infcx . next_nll_region_var ( FR , || {
450
- RegionCtxt :: LateBound ( BoundRegionInfo :: Name ( name) )
451
- } )
449
+ self . infcx . next_nll_region_var ( FR , || RegionCtxt :: LateBound ( name) )
452
450
} ;
453
451
454
452
debug ! ( ?region_vid) ;
@@ -480,9 +478,7 @@ impl<'cx, 'tcx> UniversalRegionsBuilder<'cx, 'tcx> {
480
478
if !indices. indices . contains_key ( & r) {
481
479
let region_vid = {
482
480
let name = r. get_name_or_anon ( ) ;
483
- self . infcx . next_nll_region_var ( FR , || {
484
- RegionCtxt :: LateBound ( BoundRegionInfo :: Name ( name) )
485
- } )
481
+ self . infcx . next_nll_region_var ( FR , || RegionCtxt :: LateBound ( name) )
486
482
} ;
487
483
488
484
debug ! ( ?region_vid) ;
@@ -796,7 +792,7 @@ impl<'cx, 'tcx> InferCtxtExt<'tcx> for BorrowckInferCtxt<'cx, 'tcx> {
796
792
_ => sym:: anon,
797
793
} ;
798
794
799
- self . next_nll_region_var ( origin, || RegionCtxt :: Bound ( BoundRegionInfo :: Name ( name) ) )
795
+ self . next_nll_region_var ( origin, || RegionCtxt :: Bound ( name) )
800
796
} ;
801
797
802
798
indices. insert_late_bound_region ( liberated_region, region_vid. as_var ( ) ) ;
@@ -826,9 +822,7 @@ impl<'cx, 'tcx> InferCtxtExt<'tcx> for BorrowckInferCtxt<'cx, 'tcx> {
826
822
if !indices. indices . contains_key ( & r) {
827
823
let region_vid = {
828
824
let name = r. get_name_or_anon ( ) ;
829
- self . next_nll_region_var ( FR , || {
830
- RegionCtxt :: LateBound ( BoundRegionInfo :: Name ( name) )
831
- } )
825
+ self . next_nll_region_var ( FR , || RegionCtxt :: LateBound ( name) )
832
826
} ;
833
827
834
828
debug ! ( ?region_vid) ;
@@ -848,9 +842,7 @@ impl<'cx, 'tcx> InferCtxtExt<'tcx> for BorrowckInferCtxt<'cx, 'tcx> {
848
842
if !indices. indices . contains_key ( & r) {
849
843
let region_vid = {
850
844
let name = r. get_name_or_anon ( ) ;
851
- self . next_nll_region_var ( FR , || {
852
- RegionCtxt :: LateBound ( BoundRegionInfo :: Name ( name) )
853
- } )
845
+ self . next_nll_region_var ( FR , || RegionCtxt :: LateBound ( name) )
854
846
} ;
855
847
856
848
indices. insert_late_bound_region ( r, region_vid. as_var ( ) ) ;
0 commit comments