@@ -16,7 +16,7 @@ use deriving::generic::ty::*;
1616use deriving:: warn_if_deprecated;
1717
1818use syntax:: ast;
19- use syntax:: ast:: { Expr , MetaItem , Mutability } ;
19+ use syntax:: ast:: { Expr , Mutability } ;
2020use syntax:: ext:: base:: { Annotatable , ExtCtxt } ;
2121use syntax:: ext:: build:: AstBuilder ;
2222use syntax:: ptr:: P ;
@@ -25,24 +25,21 @@ use syntax_pos::Span;
2525
2626pub fn expand_deriving_rustc_decodable ( cx : & mut ExtCtxt ,
2727 span : Span ,
28- mitem : & MetaItem ,
2928 item : & Annotatable ,
3029 push : & mut dyn FnMut ( Annotatable ) ) {
31- expand_deriving_decodable_imp ( cx, span, mitem , item, push, "rustc_serialize" )
30+ expand_deriving_decodable_imp ( cx, span, item, push, "rustc_serialize" )
3231}
3332
3433pub fn expand_deriving_decodable ( cx : & mut ExtCtxt ,
3534 span : Span ,
36- mitem : & MetaItem ,
3735 item : & Annotatable ,
3836 push : & mut dyn FnMut ( Annotatable ) ) {
3937 warn_if_deprecated ( cx, span, "Decodable" ) ;
40- expand_deriving_decodable_imp ( cx, span, mitem , item, push, "serialize" )
38+ expand_deriving_decodable_imp ( cx, span, item, push, "serialize" )
4139}
4240
4341fn expand_deriving_decodable_imp ( cx : & mut ExtCtxt ,
4442 span : Span ,
45- mitem : & MetaItem ,
4643 item : & Annotatable ,
4744 push : & mut dyn FnMut ( Annotatable ) ,
4845 krate : & ' static str ) {
@@ -86,7 +83,7 @@ fn expand_deriving_decodable_imp(cx: &mut ExtCtxt,
8683 associated_types : Vec :: new ( ) ,
8784 } ;
8885
89- trait_def. expand ( cx, mitem , item, push)
86+ trait_def. expand ( cx, item, push)
9087}
9188
9289fn decodable_substructure ( cx : & mut ExtCtxt ,
0 commit comments