@@ -32,8 +32,6 @@ trait RegionExt {
32
32
fn id ( & self ) -> Option < DefId > ;
33
33
34
34
fn shifted ( self , amount : u32 ) -> Region ;
35
-
36
- fn shifted_out_to_binder ( self , binder : ty:: DebruijnIndex ) -> Region ;
37
35
}
38
36
39
37
impl RegionExt for Region {
@@ -69,15 +67,6 @@ impl RegionExt for Region {
69
67
_ => self ,
70
68
}
71
69
}
72
-
73
- fn shifted_out_to_binder ( self , binder : ty:: DebruijnIndex ) -> Region {
74
- match self {
75
- Region :: LateBound ( debruijn, index, id) => {
76
- Region :: LateBound ( debruijn. shifted_out_to_binder ( binder) , index, id)
77
- }
78
- _ => self ,
79
- }
80
- }
81
70
}
82
71
83
72
/// Maps the id of each lifetime reference to the lifetime decl
@@ -101,8 +90,8 @@ struct NamedRegionMap {
101
90
late_bound_vars : HirIdMap < Vec < ty:: BoundVariableKind > > ,
102
91
}
103
92
104
- pub ( crate ) struct LifetimeContext < ' a , ' tcx > {
105
- pub ( crate ) tcx : TyCtxt < ' tcx > ,
93
+ struct LifetimeContext < ' a , ' tcx > {
94
+ tcx : TyCtxt < ' tcx > ,
106
95
map : & ' a mut NamedRegionMap ,
107
96
scope : ScopeRef < ' a > ,
108
97
@@ -234,7 +223,7 @@ type ScopeRef<'a> = &'a Scope<'a>;
234
223
235
224
const ROOT_SCOPE : ScopeRef < ' static > = & Scope :: Root ;
236
225
237
- pub fn provide ( providers : & mut ty:: query:: Providers ) {
226
+ pub ( crate ) fn provide ( providers : & mut ty:: query:: Providers ) {
238
227
* providers = ty:: query:: Providers {
239
228
resolve_lifetimes_trait_definition,
240
229
resolve_lifetimes,
0 commit comments