@@ -20,8 +20,7 @@ pub fn expand_deriving_clone(cx: &mut ExtCtxt,
2020 in_items : ~[ @Item ] )
2121 -> ~[ @Item ] {
2222 let trait_def = TraitDef {
23- cx : cx, span : span,
24-
23+ span : span,
2524 path : Path :: new ( ~[ "std" , "clone" , "Clone" ] ) ,
2625 additional_bounds : ~[ ] ,
2726 generics : LifetimeBounds :: empty ( ) ,
@@ -39,7 +38,7 @@ pub fn expand_deriving_clone(cx: &mut ExtCtxt,
3938 ]
4039 } ;
4140
42- trait_def. expand ( mitem, in_items)
41+ trait_def. expand ( cx , mitem, in_items)
4342}
4443
4544pub fn expand_deriving_deep_clone ( cx : & mut ExtCtxt ,
@@ -48,8 +47,7 @@ pub fn expand_deriving_deep_clone(cx: &mut ExtCtxt,
4847 in_items : ~[ @Item ] )
4948 -> ~[ @Item ] {
5049 let trait_def = TraitDef {
51- cx : cx, span : span,
52-
50+ span : span,
5351 path : Path :: new ( ~[ "std" , "clone" , "DeepClone" ] ) ,
5452 additional_bounds : ~[ ] ,
5553 generics : LifetimeBounds :: empty ( ) ,
@@ -69,7 +67,7 @@ pub fn expand_deriving_deep_clone(cx: &mut ExtCtxt,
6967 ]
7068 } ;
7169
72- trait_def. expand ( mitem, in_items)
70+ trait_def. expand ( cx , mitem, in_items)
7371}
7472
7573fn cs_clone (
0 commit comments