File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
branches/try2/src/libsyntax/ext/pipes Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 11e92f37c13194ad5c1f82a980e7f7ee02345801
8
+ refs/heads/try2: 46fef3d60155d4471ce23626501986aeb2c14c9b
9
9
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10
10
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -105,6 +105,13 @@ impl ext_ctxt: ext_ctxt_ast_builder {
105
105
span: self . empty_span ( ) }
106
106
}
107
107
108
+ fn move_expr ( e : @ast:: expr ) -> @ast:: expr {
109
+ @{ id: self . next_id ( ) ,
110
+ callee_id: self . next_id ( ) ,
111
+ node: ast:: expr_unary_move ( e) ,
112
+ span: e. span }
113
+ }
114
+
108
115
fn stmt_expr ( e : @ast:: expr ) -> @ast:: stmt {
109
116
@{ node: ast:: stmt_expr ( e, self . next_id ( ) ) ,
110
117
span: self . empty_span ( ) }
@@ -126,8 +133,7 @@ impl ext_ctxt: ext_ctxt_ast_builder {
126
133
self . empty_span ( ) ) ,
127
134
None ) ,
128
135
span : self . empty_span ( ) } ,
129
- init: Some ( { op: ast:: init_move,
130
- expr: e} ) ,
136
+ init: Some ( self . move_expr ( e) ) ,
131
137
id: self . next_id ( ) } ,
132
138
span: self . empty_span ( ) } ] ) ,
133
139
span: self . empty_span ( ) } , self . next_id ( ) ) ,
You can’t perform that action at this time.
0 commit comments