@@ -78,7 +78,7 @@ pub trait TypeFoldable<'tcx>: fmt::Debug + Clone {
7878 }
7979
8080 fn has_escaping_regions ( & self ) -> bool {
81- self . has_regions_bound_at_or_above ( ty:: DebruijnIndex :: INNERMOST )
81+ self . has_regions_bound_at_or_above ( ty:: INNERMOST )
8282 }
8383
8484 fn has_type_flags ( & self , flags : TypeFlags ) -> bool {
@@ -246,7 +246,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
246246 T : TypeFoldable < ' tcx > ,
247247 {
248248 value. visit_with ( & mut RegionVisitor {
249- outer_index : ty:: DebruijnIndex :: INNERMOST ,
249+ outer_index : ty:: INNERMOST ,
250250 callback
251251 } ) ;
252252
@@ -260,7 +260,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
260260 /// ^ ^ ^ ^
261261 /// | | | | here, would be shifted in 1
262262 /// | | | here, would be shifted in 2
263- /// | | here, would be INNTERMOST shifted in by 1
263+ /// | | here, would be INNERMOST shifted in by 1
264264 /// | here, initially, binder would be INNERMOST
265265 /// ```
266266 ///
@@ -333,7 +333,7 @@ impl<'a, 'gcx, 'tcx> RegionFolder<'a, 'gcx, 'tcx> {
333333 RegionFolder {
334334 tcx,
335335 skipped_regions,
336- current_index : ty:: DebruijnIndex :: INNERMOST ,
336+ current_index : ty:: INNERMOST ,
337337 fold_region_fn,
338338 }
339339 }
@@ -495,7 +495,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
495495 let mut counter = 0 ;
496496 Binder :: bind ( self . replace_late_bound_regions ( sig, |_| {
497497 counter += 1 ;
498- self . mk_region ( ty:: ReLateBound ( ty:: DebruijnIndex :: INNERMOST , ty:: BrAnon ( counter) ) )
498+ self . mk_region ( ty:: ReLateBound ( ty:: INNERMOST , ty:: BrAnon ( counter) ) )
499499 } ) . 0 )
500500 }
501501}
@@ -507,7 +507,7 @@ impl<'a, 'gcx, 'tcx> RegionReplacer<'a, 'gcx, 'tcx> {
507507 {
508508 RegionReplacer {
509509 tcx,
510- current_index : ty:: DebruijnIndex :: INNERMOST ,
510+ current_index : ty:: INNERMOST ,
511511 fld_r,
512512 map : BTreeMap :: default ( )
513513 }
@@ -542,7 +542,7 @@ impl<'a, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for RegionReplacer<'a, 'gcx, 'tcx> {
542542 // that region should always use the INNERMOST
543543 // debruijn index. Then we adjust it to the
544544 // correct depth.
545- assert_eq ! ( debruijn1, ty:: DebruijnIndex :: INNERMOST ) ;
545+ assert_eq ! ( debruijn1, ty:: INNERMOST ) ;
546546 self . tcx . mk_region ( ty:: ReLateBound ( debruijn, br) )
547547 } else {
548548 region
@@ -701,7 +701,7 @@ struct LateBoundRegionsCollector {
701701impl LateBoundRegionsCollector {
702702 fn new ( just_constrained : bool ) -> Self {
703703 LateBoundRegionsCollector {
704- current_index : ty:: DebruijnIndex :: INNERMOST ,
704+ current_index : ty:: INNERMOST ,
705705 regions : FxHashSet ( ) ,
706706 just_constrained,
707707 }
0 commit comments