@@ -20,6 +20,8 @@ pub fn expand_deriving_clone(cx: @ExtCtxt,
20
20
in_items: ~[ @item] )
21
21
-> ~[ @item] {
22
22
let trait_def = TraitDef {
23
+ cx : cx , span : span ,
24
+
23
25
path: Path :: new ( ~[ "std" , "clone" , "Clone" ] ) ,
24
26
additional_bounds : ~[ ] ,
25
27
generics : LifetimeBounds :: empty ( ) ,
@@ -37,7 +39,7 @@ pub fn expand_deriving_clone(cx: @ExtCtxt,
37
39
]
38
40
} ;
39
41
40
- trait_def. expand( cx , span , mitem, in_items)
42
+ trait_def. expand( mitem, in_items)
41
43
}
42
44
43
45
pub fn expand_deriving_deep_clone( cx : @ExtCtxt ,
@@ -46,6 +48,8 @@ pub fn expand_deriving_deep_clone(cx: @ExtCtxt,
46
48
in_items: ~[ @item] )
47
49
-> ~[ @item] {
48
50
let trait_def = TraitDef {
51
+ cx : cx , span : span ,
52
+
49
53
path: Path :: new ( ~[ "std" , "clone" , "DeepClone" ] ) ,
50
54
additional_bounds : ~[ ] ,
51
55
generics : LifetimeBounds :: empty ( ) ,
@@ -65,7 +69,7 @@ pub fn expand_deriving_deep_clone(cx: @ExtCtxt,
65
69
]
66
70
} ;
67
71
68
- trait_def. expand( cx , span , mitem, in_items)
72
+ trait_def. expand( mitem, in_items)
69
73
}
70
74
71
75
fn cs_clone(
0 commit comments