Skip to content

Commit ff883e8

Browse files
committed
---
yaml --- r: 33465 b: refs/heads/snap-stage3 c: 46fef3d h: refs/heads/master i: 33463: 7476e56 v: v3
1 parent a1f542f commit ff883e8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 11e92f37c13194ad5c1f82a980e7f7ee02345801
4+
refs/heads/snap-stage3: 46fef3d60155d4471ce23626501986aeb2c14c9b
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libsyntax/ext/pipes/ast_builder.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ impl ext_ctxt: ext_ctxt_ast_builder {
105105
span: self.empty_span()}
106106
}
107107

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+
108115
fn stmt_expr(e: @ast::expr) -> @ast::stmt {
109116
@{node: ast::stmt_expr(e, self.next_id()),
110117
span: self.empty_span()}
@@ -126,8 +133,7 @@ impl ext_ctxt: ext_ctxt_ast_builder {
126133
self.empty_span()),
127134
None),
128135
span: self.empty_span()},
129-
init: Some({op: ast::init_move,
130-
expr: e}),
136+
init: Some(self.move_expr(e)),
131137
id: self.next_id()},
132138
span: self.empty_span()}]),
133139
span: self.empty_span()}, self.next_id()),

0 commit comments

Comments
 (0)