@@ -1040,13 +1040,13 @@ for LateContextAndPass<'a, 'tcx, T> {
10401040
10411041 fn visit_variant_data ( & mut self ,
10421042 s : & ' tcx hir:: VariantData ,
1043- name : ast:: Name ,
1044- g : & ' tcx hir:: Generics ,
1045- item_id : hir:: HirId ,
1043+ _ : ast:: Name ,
1044+ _ : & ' tcx hir:: Generics ,
1045+ _ : hir:: HirId ,
10461046 _: Span ) {
1047- lint_callback ! ( self , check_struct_def, s, name , g , item_id ) ;
1047+ lint_callback ! ( self , check_struct_def, s) ;
10481048 hir_visit:: walk_struct_def ( self , s) ;
1049- lint_callback ! ( self , check_struct_def_post, s, name , g , item_id ) ;
1049+ lint_callback ! ( self , check_struct_def_post, s) ;
10501050 }
10511051
10521052 fn visit_struct_field ( & mut self , s : & ' tcx hir:: StructField ) {
@@ -1061,9 +1061,9 @@ for LateContextAndPass<'a, 'tcx, T> {
10611061 g : & ' tcx hir:: Generics ,
10621062 item_id : hir:: HirId ) {
10631063 self . with_lint_attrs ( v. id , & v. attrs , |cx| {
1064- lint_callback ! ( cx, check_variant, v, g ) ;
1064+ lint_callback ! ( cx, check_variant, v) ;
10651065 hir_visit:: walk_variant ( cx, v, g, item_id) ;
1066- lint_callback ! ( cx, check_variant_post, v, g ) ;
1066+ lint_callback ! ( cx, check_variant_post, v) ;
10671067 } )
10681068 }
10691069
@@ -1214,18 +1214,13 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T>
12141214 run_early_pass ! ( self , check_fn_post, fk, decl, span, id) ;
12151215 }
12161216
1217- fn visit_variant_data ( & mut self ,
1218- s : & ' a ast:: VariantData ,
1219- ident : ast:: Ident ,
1220- g : & ' a ast:: Generics ,
1221- item_id : ast:: NodeId ,
1222- _: Span ) {
1223- run_early_pass ! ( self , check_struct_def, s, ident, g, item_id) ;
1217+ fn visit_variant_data ( & mut self , s : & ' a ast:: VariantData ) {
1218+ run_early_pass ! ( self , check_struct_def, s) ;
12241219 if let Some ( ctor_hir_id) = s. ctor_id ( ) {
12251220 self . check_id ( ctor_hir_id) ;
12261221 }
12271222 ast_visit:: walk_struct_def ( self , s) ;
1228- run_early_pass ! ( self , check_struct_def_post, s, ident , g , item_id ) ;
1223+ run_early_pass ! ( self , check_struct_def_post, s) ;
12291224 }
12301225
12311226 fn visit_struct_field ( & mut self , s : & ' a ast:: StructField ) {
@@ -1235,11 +1230,11 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T>
12351230 } )
12361231 }
12371232
1238- fn visit_variant ( & mut self , v : & ' a ast:: Variant , g : & ' a ast :: Generics , item_id : ast :: NodeId ) {
1239- self . with_lint_attrs ( item_id , & v. attrs , |cx| {
1240- run_early_pass ! ( cx, check_variant, v, g ) ;
1241- ast_visit:: walk_variant ( cx, v, g , item_id ) ;
1242- run_early_pass ! ( cx, check_variant_post, v, g ) ;
1233+ fn visit_variant ( & mut self , v : & ' a ast:: Variant ) {
1234+ self . with_lint_attrs ( v . id , & v. attrs , |cx| {
1235+ run_early_pass ! ( cx, check_variant, v) ;
1236+ ast_visit:: walk_variant ( cx, v) ;
1237+ run_early_pass ! ( cx, check_variant_post, v) ;
12431238 } )
12441239 }
12451240
0 commit comments