@@ -109,7 +109,7 @@ impl<'scope, 'enclosing> LookupIterator<'scope, 'enclosing> for FlatScope<'enclo
109109 }
110110}
111111
112- impl < ' scope , ' enclosing > Iterator for FlatIterator < ' scope , ' enclosing > {
112+ impl < ' scope > Iterator for FlatIterator < ' scope , ' _ > {
113113 type Item = & ' scope Bindings ;
114114
115115 fn next ( & mut self ) -> Option < Self :: Item > {
@@ -125,7 +125,7 @@ impl<'scope, 'enclosing> Iterator for FlatIterator<'scope, 'enclosing> {
125125 }
126126}
127127
128- impl < ' enclosing > FlatScope < ' enclosing > {
128+ impl FlatScope < ' _ > {
129129 fn lookup ( & self , name : & Symbol , starting_scope : Scope ) -> Option < & OriginIdx > {
130130 self . lookup_iterator ( starting_scope)
131131 . find_map ( |bindings| bindings. get ( name) )
@@ -163,7 +163,7 @@ struct NameResolveCtx<'enclosing> {
163163}
164164
165165impl < ' enclosing > NameResolveCtx < ' enclosing > {
166- fn new ( enclosing_scope : EnclosingScope < ' enclosing > ) -> NameResolveCtx {
166+ fn new ( enclosing_scope : EnclosingScope < ' enclosing > ) -> NameResolveCtx < ' enclosing > {
167167 let empty_scope_map: HashMap < Scope , Bindings > = enclosing_scope
168168 . 0
169169 . values ( )
@@ -314,7 +314,7 @@ impl NameResolutionError {
314314 }
315315}
316316
317- impl < ' enclosing > NameResolveCtx < ' enclosing > {
317+ impl NameResolveCtx < ' _ > {
318318 fn scope ( fir : & Fir < FlattenData > ) -> HashMap < OriginIdx , Scope > {
319319 let root = fir. nodes . last_key_value ( ) . unwrap ( ) ;
320320
@@ -346,9 +346,7 @@ impl<'enclosing> NameResolveCtx<'enclosing> {
346346 }
347347}
348348
349- impl < ' ast , ' enclosing > Pass < FlattenData < ' ast > , FlattenData < ' ast > , Error >
350- for NameResolveCtx < ' enclosing >
351- {
349+ impl < ' ast > Pass < FlattenData < ' ast > , FlattenData < ' ast > , Error > for NameResolveCtx < ' _ > {
352350 fn pre_condition ( _fir : & Fir < FlattenData > ) { }
353351
354352 fn post_condition ( _fir : & Fir < FlattenData > ) { }
0 commit comments