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