@@ -28,7 +28,7 @@ use rustc_span::symbol::{kw, sym};
2828use rustc_span:: Symbol ;
2929use std:: iter;
3030
31- use crate :: renumber:: { BoundRegionInfo , RegionCtxt } ;
31+ use crate :: renumber:: RegionCtxt ;
3232use crate :: BorrowckInferCtxt ;
3333
3434#[ derive( Debug ) ]
@@ -446,9 +446,7 @@ impl<'cx, 'tcx> UniversalRegionsBuilder<'cx, 'tcx> {
446446 if !indices. indices . contains_key ( & r) {
447447 let region_vid = {
448448 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) )
452450 } ;
453451
454452 debug ! ( ?region_vid) ;
@@ -480,9 +478,7 @@ impl<'cx, 'tcx> UniversalRegionsBuilder<'cx, 'tcx> {
480478 if !indices. indices . contains_key ( & r) {
481479 let region_vid = {
482480 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) )
486482 } ;
487483
488484 debug ! ( ?region_vid) ;
@@ -796,7 +792,7 @@ impl<'cx, 'tcx> InferCtxtExt<'tcx> for BorrowckInferCtxt<'cx, 'tcx> {
796792 _ => sym:: anon,
797793 } ;
798794
799- self . next_nll_region_var ( origin, || RegionCtxt :: Bound ( BoundRegionInfo :: Name ( name) ) )
795+ self . next_nll_region_var ( origin, || RegionCtxt :: Bound ( name) )
800796 } ;
801797
802798 indices. insert_late_bound_region ( liberated_region, region_vid. as_var ( ) ) ;
@@ -826,9 +822,7 @@ impl<'cx, 'tcx> InferCtxtExt<'tcx> for BorrowckInferCtxt<'cx, 'tcx> {
826822 if !indices. indices . contains_key ( & r) {
827823 let region_vid = {
828824 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) )
832826 } ;
833827
834828 debug ! ( ?region_vid) ;
@@ -848,9 +842,7 @@ impl<'cx, 'tcx> InferCtxtExt<'tcx> for BorrowckInferCtxt<'cx, 'tcx> {
848842 if !indices. indices . contains_key ( & r) {
849843 let region_vid = {
850844 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) )
854846 } ;
855847
856848 indices. insert_late_bound_region ( r, region_vid. as_var ( ) ) ;
0 commit comments