@@ -98,7 +98,7 @@ impl<'ast> DefCollector<'ast> {
9898        self . parent_def  = parent; 
9999    } 
100100
101-     fn  visit_ast_const_integer ( & mut  self ,  expr :  & ' ast   Expr )  { 
101+     fn  visit_ast_const_integer ( & mut  self ,  expr :  & Expr )  { 
102102        // Find the node which will be used after lowering. 
103103        if  let  ExprKind :: Paren ( ref  inner)  = expr. node  { 
104104            return  self . visit_ast_const_integer ( inner) ; 
@@ -124,8 +124,8 @@ impl<'ast> DefCollector<'ast> {
124124    } 
125125} 
126126
127- impl < ' ast >  visit:: Visitor < ' ast >  for  DefCollector < ' ast >  { 
128-     fn  visit_item ( & mut  self ,  i :  & ' ast   Item )  { 
127+ impl < ' ast >  visit:: Visitor  for  DefCollector < ' ast >  { 
128+     fn  visit_item ( & mut  self ,  i :  & Item )  { 
129129        debug ! ( "visit_item: {:?}" ,  i) ; 
130130
131131        // Pick the def data. This need not be unique, but the more 
@@ -183,23 +183,23 @@ impl<'ast> visit::Visitor<'ast> for DefCollector<'ast> {
183183        } ) ; 
184184    } 
185185
186-     fn  visit_foreign_item ( & mut  self ,  foreign_item :  & ' ast   ForeignItem )  { 
186+     fn  visit_foreign_item ( & mut  self ,  foreign_item :  & ForeignItem )  { 
187187        let  def = self . create_def ( foreign_item. id ,  DefPathData :: ValueNs ( foreign_item. ident . name ) ) ; 
188188
189189        self . with_parent ( def,  |this| { 
190190            visit:: walk_foreign_item ( this,  foreign_item) ; 
191191        } ) ; 
192192    } 
193193
194-     fn  visit_generics ( & mut  self ,  generics :  & ' ast   Generics )  { 
194+     fn  visit_generics ( & mut  self ,  generics :  & Generics )  { 
195195        for  ty_param in  generics. ty_params . iter ( )  { 
196196            self . create_def ( ty_param. id ,  DefPathData :: TypeParam ( ty_param. ident . name ) ) ; 
197197        } 
198198
199199        visit:: walk_generics ( self ,  generics) ; 
200200    } 
201201
202-     fn  visit_trait_item ( & mut  self ,  ti :  & ' ast   TraitItem )  { 
202+     fn  visit_trait_item ( & mut  self ,  ti :  & TraitItem )  { 
203203        let  def_data = match  ti. node  { 
204204            TraitItemKind :: Method ( ..)  | TraitItemKind :: Const ( ..)  =>
205205                DefPathData :: ValueNs ( ti. ident . name ) , 
@@ -216,7 +216,7 @@ impl<'ast> visit::Visitor<'ast> for DefCollector<'ast> {
216216        } ) ; 
217217    } 
218218
219-     fn  visit_impl_item ( & mut  self ,  ii :  & ' ast   ImplItem )  { 
219+     fn  visit_impl_item ( & mut  self ,  ii :  & ImplItem )  { 
220220        let  def_data = match  ii. node  { 
221221            ImplItemKind :: Method ( ..)  | ImplItemKind :: Const ( ..)  =>
222222                DefPathData :: ValueNs ( ii. ident . name ) , 
@@ -234,7 +234,7 @@ impl<'ast> visit::Visitor<'ast> for DefCollector<'ast> {
234234        } ) ; 
235235    } 
236236
237-     fn  visit_pat ( & mut  self ,  pat :  & ' ast   Pat )  { 
237+     fn  visit_pat ( & mut  self ,  pat :  & Pat )  { 
238238        let  parent_def = self . parent_def ; 
239239
240240        if  let  PatKind :: Ident ( _,  id,  _)  = pat. node  { 
@@ -246,7 +246,7 @@ impl<'ast> visit::Visitor<'ast> for DefCollector<'ast> {
246246        self . parent_def  = parent_def; 
247247    } 
248248
249-     fn  visit_expr ( & mut  self ,  expr :  & ' ast   Expr )  { 
249+     fn  visit_expr ( & mut  self ,  expr :  & Expr )  { 
250250        let  parent_def = self . parent_def ; 
251251
252252        if  let  ExprKind :: Repeat ( _,  ref  count)  = expr. node  { 
@@ -262,18 +262,18 @@ impl<'ast> visit::Visitor<'ast> for DefCollector<'ast> {
262262        self . parent_def  = parent_def; 
263263    } 
264264
265-     fn  visit_ty ( & mut  self ,  ty :  & ' ast   Ty )  { 
265+     fn  visit_ty ( & mut  self ,  ty :  & Ty )  { 
266266        if  let  TyKind :: FixedLengthVec ( _,  ref  length)  = ty. node  { 
267267            self . visit_ast_const_integer ( length) ; 
268268        } 
269269        visit:: walk_ty ( self ,  ty) ; 
270270    } 
271271
272-     fn  visit_lifetime_def ( & mut  self ,  def :  & ' ast   LifetimeDef )  { 
272+     fn  visit_lifetime_def ( & mut  self ,  def :  & LifetimeDef )  { 
273273        self . create_def ( def. lifetime . id ,  DefPathData :: LifetimeDef ( def. lifetime . name ) ) ; 
274274    } 
275275
276-     fn  visit_macro_def ( & mut  self ,  macro_def :  & ' ast   MacroDef )  { 
276+     fn  visit_macro_def ( & mut  self ,  macro_def :  & MacroDef )  { 
277277        self . create_def ( macro_def. id ,  DefPathData :: MacroDef ( macro_def. ident . name ) ) ; 
278278    } 
279279} 
0 commit comments