@@ -366,7 +366,7 @@ impl<'a, 'tcx> CTypesVisitor<'a, 'tcx> {
366
366
}
367
367
}
368
368
369
- impl < ' a , ' tcx > Visitor for CTypesVisitor < ' a , ' tcx > {
369
+ impl < ' a , ' tcx , ' v > Visitor < ' v > for CTypesVisitor < ' a , ' tcx > {
370
370
fn visit_ty ( & mut self , ty : & ast:: Ty ) {
371
371
match ty. node {
372
372
ast:: TyPath ( _, _, id) => self . check_def ( ty. span , ty. id , id) ,
@@ -500,7 +500,7 @@ struct RawPtrDerivingVisitor<'a, 'tcx: 'a> {
500
500
cx : & ' a Context < ' a , ' tcx >
501
501
}
502
502
503
- impl < ' a , ' tcx > Visitor for RawPtrDerivingVisitor < ' a , ' tcx > {
503
+ impl < ' a , ' tcx , ' v > Visitor < ' v > for RawPtrDerivingVisitor < ' a , ' tcx > {
504
504
fn visit_ty ( & mut self , ty : & ast:: Ty ) {
505
505
static MSG : & ' static str = "use of `#[deriving]` with a raw pointer" ;
506
506
match ty. node {
@@ -908,9 +908,9 @@ impl LintPass for NonSnakeCase {
908
908
}
909
909
910
910
fn check_fn ( & mut self , cx : & Context ,
911
- fk : & visit:: FnKind , _: & ast:: FnDecl ,
911
+ fk : visit:: FnKind , _: & ast:: FnDecl ,
912
912
_: & ast:: Block , span : Span , _: ast:: NodeId ) {
913
- match * fk {
913
+ match fk {
914
914
visit:: FkMethod ( ident, _, m) => match method_context ( cx, m) {
915
915
PlainImpl
916
916
=> self . check_snake_case ( cx, "method" , ident, span) ,
@@ -1218,7 +1218,7 @@ impl LintPass for UnusedMut {
1218
1218
}
1219
1219
1220
1220
fn check_fn ( & mut self , cx : & Context ,
1221
- _: & visit:: FnKind , decl : & ast:: FnDecl ,
1221
+ _: visit:: FnKind , decl : & ast:: FnDecl ,
1222
1222
_: & ast:: Block , _: Span , _: ast:: NodeId ) {
1223
1223
for a in decl. inputs . iter ( ) {
1224
1224
self . check_unused_mut_pat ( cx, & [ a. pat ] ) ;
@@ -1387,9 +1387,9 @@ impl LintPass for MissingDoc {
1387
1387
}
1388
1388
1389
1389
fn check_fn ( & mut self , cx : & Context ,
1390
- fk : & visit:: FnKind , _: & ast:: FnDecl ,
1390
+ fk : visit:: FnKind , _: & ast:: FnDecl ,
1391
1391
_: & ast:: Block , _: Span , _: ast:: NodeId ) {
1392
- match * fk {
1392
+ match fk {
1393
1393
visit:: FkMethod ( _, _, m) => {
1394
1394
// If the method is an impl for a trait, don't doc.
1395
1395
if method_context ( cx, m) == TraitImpl { return ; }
0 commit comments