@@ -20,6 +20,8 @@ pub fn expand_deriving_clone(cx: @ExtCtxt,
2020 in_items: ~[ @item] )
2121 -> ~[ @item] {
2222 let trait_def = TraitDef {
23+ cx : cx , span : span ,
24+
2325 path: Path :: new ( ~[ "std" , "clone" , "Clone" ] ) ,
2426 additional_bounds : ~[ ] ,
2527 generics : LifetimeBounds :: empty ( ) ,
@@ -37,7 +39,7 @@ pub fn expand_deriving_clone(cx: @ExtCtxt,
3739 ]
3840 } ;
3941
40- trait_def. expand( cx , span , mitem, in_items)
42+ trait_def. expand( mitem, in_items)
4143}
4244
4345pub fn expand_deriving_deep_clone( cx : @ExtCtxt ,
@@ -46,6 +48,8 @@ pub fn expand_deriving_deep_clone(cx: @ExtCtxt,
4648 in_items: ~[ @item] )
4749 -> ~[ @item] {
4850 let trait_def = TraitDef {
51+ cx : cx , span : span ,
52+
4953 path: Path :: new ( ~[ "std" , "clone" , "DeepClone" ] ) ,
5054 additional_bounds : ~[ ] ,
5155 generics : LifetimeBounds :: empty ( ) ,
@@ -65,7 +69,7 @@ pub fn expand_deriving_deep_clone(cx: @ExtCtxt,
6569 ]
6670 } ;
6771
68- trait_def. expand( cx , span , mitem, in_items)
72+ trait_def. expand( mitem, in_items)
6973}
7074
7175fn cs_clone(
0 commit comments