@@ -366,7 +366,7 @@ impl<'a, 'tcx> CTypesVisitor<'a, 'tcx> {
366366 }
367367}
368368
369- impl < ' a , ' tcx > Visitor for CTypesVisitor < ' a , ' tcx > {
369+ impl < ' a , ' tcx , ' v > Visitor < ' v > for CTypesVisitor < ' a , ' tcx > {
370370 fn visit_ty ( & mut self , ty : & ast:: Ty ) {
371371 match ty. node {
372372 ast:: TyPath ( _, _, id) => self . check_def ( ty. span , ty. id , id) ,
@@ -500,7 +500,7 @@ struct RawPtrDerivingVisitor<'a, 'tcx: 'a> {
500500 cx : & ' a Context < ' a , ' tcx >
501501}
502502
503- impl < ' a , ' tcx > Visitor for RawPtrDerivingVisitor < ' a , ' tcx > {
503+ impl < ' a , ' tcx , ' v > Visitor < ' v > for RawPtrDerivingVisitor < ' a , ' tcx > {
504504 fn visit_ty ( & mut self , ty : & ast:: Ty ) {
505505 static MSG : & ' static str = "use of `#[deriving]` with a raw pointer" ;
506506 match ty. node {
@@ -908,9 +908,9 @@ impl LintPass for NonSnakeCase {
908908 }
909909
910910 fn check_fn ( & mut self , cx : & Context ,
911- fk : & visit:: FnKind , _: & ast:: FnDecl ,
911+ fk : visit:: FnKind , _: & ast:: FnDecl ,
912912 _: & ast:: Block , span : Span , _: ast:: NodeId ) {
913- match * fk {
913+ match fk {
914914 visit:: FkMethod ( ident, _, m) => match method_context ( cx, m) {
915915 PlainImpl
916916 => self . check_snake_case ( cx, "method" , ident, span) ,
@@ -1218,7 +1218,7 @@ impl LintPass for UnusedMut {
12181218 }
12191219
12201220 fn check_fn ( & mut self , cx : & Context ,
1221- _: & visit:: FnKind , decl : & ast:: FnDecl ,
1221+ _: visit:: FnKind , decl : & ast:: FnDecl ,
12221222 _: & ast:: Block , _: Span , _: ast:: NodeId ) {
12231223 for a in decl. inputs . iter ( ) {
12241224 self . check_unused_mut_pat ( cx, & [ a. pat ] ) ;
@@ -1387,9 +1387,9 @@ impl LintPass for MissingDoc {
13871387 }
13881388
13891389 fn check_fn ( & mut self , cx : & Context ,
1390- fk : & visit:: FnKind , _: & ast:: FnDecl ,
1390+ fk : visit:: FnKind , _: & ast:: FnDecl ,
13911391 _: & ast:: Block , _: Span , _: ast:: NodeId ) {
1392- match * fk {
1392+ match fk {
13931393 visit:: FkMethod ( _, _, m) => {
13941394 // If the method is an impl for a trait, don't doc.
13951395 if method_context ( cx, m) == TraitImpl { return ; }
0 commit comments