@@ -32,8 +32,6 @@ trait RegionExt {
3232 fn id ( & self ) -> Option < DefId > ;
3333
3434 fn shifted ( self , amount : u32 ) -> Region ;
35-
36- fn shifted_out_to_binder ( self , binder : ty:: DebruijnIndex ) -> Region ;
3735}
3836
3937impl RegionExt for Region {
@@ -69,15 +67,6 @@ impl RegionExt for Region {
6967 _ => self ,
7068 }
7169 }
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- }
8170}
8271
8372/// Maps the id of each lifetime reference to the lifetime decl
@@ -101,8 +90,8 @@ struct NamedRegionMap {
10190 late_bound_vars : HirIdMap < Vec < ty:: BoundVariableKind > > ,
10291}
10392
104- pub ( crate ) struct LifetimeContext < ' a , ' tcx > {
105- pub ( crate ) tcx : TyCtxt < ' tcx > ,
93+ struct LifetimeContext < ' a , ' tcx > {
94+ tcx : TyCtxt < ' tcx > ,
10695 map : & ' a mut NamedRegionMap ,
10796 scope : ScopeRef < ' a > ,
10897
@@ -234,7 +223,7 @@ type ScopeRef<'a> = &'a Scope<'a>;
234223
235224const ROOT_SCOPE : ScopeRef < ' static > = & Scope :: Root ;
236225
237- pub fn provide ( providers : & mut ty:: query:: Providers ) {
226+ pub ( crate ) fn provide ( providers : & mut ty:: query:: Providers ) {
238227 * providers = ty:: query:: Providers {
239228 resolve_lifetimes_trait_definition,
240229 resolve_lifetimes,
0 commit comments