@@ -95,27 +95,27 @@ fn expand_deriving(cx: ext_ctxt,
95
95
span,
96
96
struct_def,
97
97
item. ident ,
98
- move ty_params) ) ;
98
+ ty_params) ) ;
99
99
}
100
100
item_enum( ref enum_definition, copy ty_params) => {
101
101
result. push ( expand_deriving_enum_def ( cx,
102
102
span,
103
103
enum_definition,
104
104
item. ident ,
105
- move ty_params) ) ;
105
+ ty_params) ) ;
106
106
}
107
107
_ => ( )
108
108
}
109
109
}
110
- dvec:: unwrap ( move result)
110
+ dvec:: unwrap ( result)
111
111
}
112
112
113
113
fn create_impl_item( cx: ext_ctxt, span: span, +item: item_) -> @item {
114
114
@ast:: item {
115
115
ident : clownshoes_extensions,
116
116
attrs : ~[ ] ,
117
117
id : cx. next_id ( ) ,
118
- node : move item,
118
+ node : item,
119
119
vis : public,
120
120
span : span,
121
121
}
@@ -161,7 +161,7 @@ fn create_eq_method(cx: ext_ctxt,
161
161
} ;
162
162
163
163
// Create the function declaration.
164
- let fn_decl = build:: mk_fn_decl ( ~[ move arg ] , output_type) ;
164
+ let fn_decl = build:: mk_fn_decl ( ~[ arg ] , output_type) ;
165
165
166
166
// Create the body block.
167
167
let body_block = build:: mk_simple_block ( cx, span, body) ;
@@ -174,8 +174,8 @@ fn create_eq_method(cx: ext_ctxt,
174
174
tps : ~[ ] ,
175
175
self_ty : self_ty,
176
176
purity : pure_fn,
177
- decl : move fn_decl,
178
- body : move body_block,
177
+ decl : fn_decl,
178
+ body : body_block,
179
179
id : cx. next_id ( ) ,
180
180
span : span,
181
181
self_id : cx. next_id ( ) ,
@@ -194,14 +194,14 @@ fn create_self_type_with_params(cx: ext_ctxt,
194
194
let self_ty_param = build:: mk_simple_ty_path ( cx,
195
195
span,
196
196
ty_param. ident ) ;
197
- self_ty_params. push ( move self_ty_param) ;
197
+ self_ty_params. push ( self_ty_param) ;
198
198
}
199
- let self_ty_params = dvec:: unwrap ( move self_ty_params) ;
199
+ let self_ty_params = dvec:: unwrap ( self_ty_params) ;
200
200
201
201
// Create the type of `self`.
202
202
let self_type = build:: mk_raw_path_ ( span,
203
203
~[ type_ident ] ,
204
- move self_ty_params) ;
204
+ self_ty_params) ;
205
205
let self_type = ty_path ( self_type, cx. next_id ( ) ) ;
206
206
@ast:: Ty { id : cx. next_id ( ) , node : self_type, span : span }
207
207
}
@@ -221,9 +221,9 @@ fn create_derived_impl(cx: ext_ctxt,
221
221
trait_path. map ( |x| * x) ) ;
222
222
let bounds = @~[ TraitTyParamBound ( bound) ] ;
223
223
let impl_ty_param = build:: mk_ty_param ( cx, ty_param. ident , bounds) ;
224
- impl_ty_params. push ( move impl_ty_param) ;
224
+ impl_ty_params. push ( impl_ty_param) ;
225
225
}
226
- let impl_ty_params = dvec:: unwrap ( move impl_ty_params) ;
226
+ let impl_ty_params = dvec:: unwrap ( impl_ty_params) ;
227
227
228
228
// Create the reference to the trait.
229
229
let trait_path = ast:: path {
@@ -233,12 +233,12 @@ fn create_derived_impl(cx: ext_ctxt,
233
233
rp : None ,
234
234
types : ~[ ]
235
235
} ;
236
- let trait_path = @move trait_path;
236
+ let trait_path = @trait_path;
237
237
let trait_ref = ast:: trait_ref {
238
238
path : trait_path,
239
239
ref_id : cx. next_id ( )
240
240
} ;
241
- let trait_ref = @move trait_ref;
241
+ let trait_ref = @trait_ref;
242
242
243
243
// Create the type of `self`.
244
244
let self_type = create_self_type_with_params ( cx,
@@ -247,11 +247,11 @@ fn create_derived_impl(cx: ext_ctxt,
247
247
ty_params) ;
248
248
249
249
// Create the impl item.
250
- let impl_item = item_impl ( move impl_ty_params,
250
+ let impl_item = item_impl ( impl_ty_params,
251
251
Some ( trait_ref) ,
252
252
self_type,
253
253
methods. map ( |x| * x) ) ;
254
- return create_impl_item ( cx, span, move impl_item) ;
254
+ return create_impl_item ( cx, span, impl_item) ;
255
255
}
256
256
257
257
fn create_derived_eq_impl ( cx : ext_ctxt ,
@@ -310,11 +310,11 @@ fn create_iter_bytes_method(cx: ext_ctxt,
310
310
let output_type = @ast:: Ty { id : cx. next_id ( ) , node : ty_nil, span : span } ;
311
311
312
312
// Create the function declaration.
313
- let inputs = ~[ move lsb0_arg, move f_arg ] ;
314
- let fn_decl = build:: mk_fn_decl ( move inputs, output_type) ;
313
+ let inputs = ~[ lsb0_arg, f_arg ] ;
314
+ let fn_decl = build:: mk_fn_decl ( inputs, output_type) ;
315
315
316
316
// Create the body block.
317
- let body_block = build:: mk_block_ ( cx, span, move statements) ;
317
+ let body_block = build:: mk_block_ ( cx, span, statements) ;
318
318
319
319
// Create the method.
320
320
let self_ty = spanned { node : sty_region ( m_imm) , span : span } ;
@@ -325,8 +325,8 @@ fn create_iter_bytes_method(cx: ext_ctxt,
325
325
tps : ~[ ] ,
326
326
self_ty : self_ty,
327
327
purity : pure_fn,
328
- decl : move fn_decl,
329
- body : move body_block,
328
+ decl : fn_decl,
329
+ body : body_block,
330
330
id : cx. next_id ( ) ,
331
331
span : span,
332
332
self_id : cx. next_id ( ) ,
@@ -348,10 +348,10 @@ fn create_subpatterns(cx: ext_ctxt,
348
348
// Create the subpattern.
349
349
let subpath = build:: mk_raw_path ( span, ~[ ident ] ) ;
350
350
let subpat = pat_ident ( bind_by_ref ( m_imm) , subpath, None ) ;
351
- let subpat = build:: mk_pat ( cx, span, move subpat) ;
351
+ let subpat = build:: mk_pat ( cx, span, subpat) ;
352
352
subpats. push ( subpat) ;
353
353
}
354
- return dvec:: unwrap ( move subpats) ;
354
+ return dvec:: unwrap ( subpats) ;
355
355
}
356
356
357
357
fn create_enum_variant_pattern ( cx : ext_ctxt ,
@@ -373,7 +373,7 @@ fn create_enum_variant_pattern(cx: ext_ctxt,
373
373
prefix,
374
374
variant_args. len ( ) ) ;
375
375
376
- return build:: mk_pat_enum ( cx, span, matching_path, move subpats) ;
376
+ return build:: mk_pat_enum ( cx, span, matching_path, subpats) ;
377
377
}
378
378
struct_variant_kind( struct_def) => {
379
379
let matching_path = build:: mk_raw_path ( span, ~[ variant_ident ] ) ;
@@ -508,7 +508,7 @@ fn expand_deriving_eq_struct_def(cx: ext_ctxt,
508
508
return create_derived_eq_impl ( cx,
509
509
span,
510
510
type_ident,
511
- move ty_params,
511
+ ty_params,
512
512
eq_method,
513
513
ne_method) ;
514
514
}
@@ -541,7 +541,7 @@ fn expand_deriving_eq_enum_def(cx: ext_ctxt,
541
541
return create_derived_eq_impl ( cx,
542
542
span,
543
543
type_ident,
544
- move ty_params,
544
+ ty_params,
545
545
eq_method,
546
546
ne_method) ;
547
547
}
@@ -561,7 +561,7 @@ fn expand_deriving_iter_bytes_struct_def(cx: ext_ctxt,
561
561
return create_derived_iter_bytes_impl ( cx,
562
562
span,
563
563
type_ident,
564
- move ty_params,
564
+ ty_params,
565
565
method) ;
566
566
}
567
567
@@ -580,7 +580,7 @@ fn expand_deriving_iter_bytes_enum_def(cx: ext_ctxt,
580
580
return create_derived_iter_bytes_impl ( cx,
581
581
span,
582
582
type_ident,
583
- move ty_params,
583
+ ty_params,
584
584
method) ;
585
585
}
586
586
@@ -671,8 +671,8 @@ fn expand_deriving_iter_bytes_struct_method(cx: ext_ctxt,
671
671
}
672
672
673
673
// Create the method itself.
674
- let statements = dvec:: unwrap ( move statements) ;
675
- return create_iter_bytes_method ( cx, span, move statements) ;
674
+ let statements = dvec:: unwrap ( statements) ;
675
+ return create_iter_bytes_method ( cx, span, statements) ;
676
676
}
677
677
678
678
fn expand_deriving_eq_enum_method ( cx : ext_ctxt ,
@@ -738,9 +738,9 @@ fn expand_deriving_eq_enum_method(cx: ext_ctxt,
738
738
let matching_arm = ast:: arm {
739
739
pats : ~[ matching_pat ] ,
740
740
guard : None ,
741
- body : move matching_body_block
741
+ body : matching_body_block
742
742
} ;
743
- other_arms. push ( move matching_arm) ;
743
+ other_arms. push ( matching_arm) ;
744
744
745
745
// Maybe generate a non-matching case. If there is only one
746
746
// variant then there will always be a match.
@@ -777,11 +777,11 @@ fn expand_deriving_eq_enum_method(cx: ext_ctxt,
777
777
// Create the self pattern body.
778
778
let other_expr = build:: mk_path ( cx, span, ~[ other_ident ] ) ;
779
779
let other_expr = build:: mk_unary ( cx, span, deref, other_expr) ;
780
- let other_arms = dvec:: unwrap ( move other_arms) ;
781
- let other_match_expr = expr_match ( other_expr, move other_arms) ;
780
+ let other_arms = dvec:: unwrap ( other_arms) ;
781
+ let other_match_expr = expr_match ( other_expr, other_arms) ;
782
782
let other_match_expr = build:: mk_expr ( cx,
783
783
span,
784
- move other_match_expr) ;
784
+ other_match_expr) ;
785
785
let other_match_body_block = build:: mk_simple_block ( cx,
786
786
span,
787
787
other_match_expr) ;
@@ -792,15 +792,15 @@ fn expand_deriving_eq_enum_method(cx: ext_ctxt,
792
792
guard : None ,
793
793
body : other_match_body_block,
794
794
} ;
795
- self_arms. push ( move self_arm) ;
795
+ self_arms. push ( self_arm) ;
796
796
}
797
797
798
798
// Create the method body.
799
799
let self_expr = build:: mk_path ( cx, span, ~[ self_ident ] ) ;
800
800
let self_expr = build:: mk_unary ( cx, span, deref, self_expr) ;
801
- let self_arms = dvec:: unwrap ( move self_arms) ;
802
- let self_match_expr = expr_match ( self_expr, move self_arms) ;
803
- let self_match_expr = build:: mk_expr ( cx, span, move self_match_expr) ;
801
+ let self_arms = dvec:: unwrap ( self_arms) ;
802
+ let self_match_expr = expr_match ( self_expr, self_arms) ;
803
+ let self_match_expr = build:: mk_expr ( cx, span, self_match_expr) ;
804
804
805
805
// Create the method.
806
806
return create_eq_method ( cx,
@@ -848,8 +848,8 @@ fn expand_deriving_iter_bytes_enum_method(cx: ext_ctxt,
848
848
}
849
849
850
850
// Create the pattern body.
851
- let stmts = dvec:: unwrap ( move stmts) ;
852
- let match_body_block = build:: mk_block_ ( cx, span, move stmts) ;
851
+ let stmts = dvec:: unwrap ( stmts) ;
852
+ let match_body_block = build:: mk_block_ ( cx, span, stmts) ;
853
853
854
854
// Create the arm.
855
855
ast:: arm {
0 commit comments