@@ -65,7 +65,7 @@ pub trait TypeFoldable<'tcx>: fmt::Debug + Clone {
65
65
66
66
/// True if `self` has any late-bound regions that are either
67
67
/// bound by `binder` or bound by some binder outside of `binder`.
68
- /// If `binder` is `ty::DebruijnIndex:: INNERMOST`, this indicates whether
68
+ /// If `binder` is `ty::INNERMOST`, this indicates whether
69
69
/// there are any late-bound regions that appear free.
70
70
fn has_regions_bound_at_or_above ( & self , binder : ty:: DebruijnIndex ) -> bool {
71
71
self . visit_with ( & mut HasEscapingRegionsVisitor { outer_index : binder } )
@@ -78,7 +78,7 @@ pub trait TypeFoldable<'tcx>: fmt::Debug + Clone {
78
78
}
79
79
80
80
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 )
82
82
}
83
83
84
84
fn has_type_flags ( & self , flags : TypeFlags ) -> bool {
@@ -246,7 +246,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
246
246
T : TypeFoldable < ' tcx > ,
247
247
{
248
248
value. visit_with ( & mut RegionVisitor {
249
- outer_index : ty:: DebruijnIndex :: INNERMOST ,
249
+ outer_index : ty:: INNERMOST ,
250
250
callback
251
251
} ) ;
252
252
@@ -260,7 +260,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
260
260
/// ^ ^ ^ ^
261
261
/// | | | | here, would be shifted in 1
262
262
/// | | | here, would be shifted in 2
263
- /// | | here, would be INNTERMOST shifted in by 1
263
+ /// | | here, would be INNERMOST shifted in by 1
264
264
/// | here, initially, binder would be INNERMOST
265
265
/// ```
266
266
///
@@ -333,7 +333,7 @@ impl<'a, 'gcx, 'tcx> RegionFolder<'a, 'gcx, 'tcx> {
333
333
RegionFolder {
334
334
tcx,
335
335
skipped_regions,
336
- current_index : ty:: DebruijnIndex :: INNERMOST ,
336
+ current_index : ty:: INNERMOST ,
337
337
fold_region_fn,
338
338
}
339
339
}
@@ -495,7 +495,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
495
495
let mut counter = 0 ;
496
496
Binder :: bind ( self . replace_late_bound_regions ( sig, |_| {
497
497
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) ) )
499
499
} ) . 0 )
500
500
}
501
501
}
@@ -507,7 +507,7 @@ impl<'a, 'gcx, 'tcx> RegionReplacer<'a, 'gcx, 'tcx> {
507
507
{
508
508
RegionReplacer {
509
509
tcx,
510
- current_index : ty:: DebruijnIndex :: INNERMOST ,
510
+ current_index : ty:: INNERMOST ,
511
511
fld_r,
512
512
map : BTreeMap :: default ( )
513
513
}
@@ -542,7 +542,7 @@ impl<'a, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for RegionReplacer<'a, 'gcx, 'tcx> {
542
542
// that region should always use the INNERMOST
543
543
// debruijn index. Then we adjust it to the
544
544
// correct depth.
545
- assert_eq ! ( debruijn1, ty:: DebruijnIndex :: INNERMOST ) ;
545
+ assert_eq ! ( debruijn1, ty:: INNERMOST ) ;
546
546
self . tcx . mk_region ( ty:: ReLateBound ( debruijn, br) )
547
547
} else {
548
548
region
@@ -701,7 +701,7 @@ struct LateBoundRegionsCollector {
701
701
impl LateBoundRegionsCollector {
702
702
fn new ( just_constrained : bool ) -> Self {
703
703
LateBoundRegionsCollector {
704
- current_index : ty:: DebruijnIndex :: INNERMOST ,
704
+ current_index : ty:: INNERMOST ,
705
705
regions : FxHashSet ( ) ,
706
706
just_constrained,
707
707
}
0 commit comments