Skip to content

Commit c9b0895

Browse files
committed
---
yaml --- r: 36077 b: refs/heads/try2 c: 46fef3d h: refs/heads/master i: 36075: fb940a0 v: v3
1 parent db2a43f commit c9b0895

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 11e92f37c13194ad5c1f82a980e7f7ee02345801
8+
refs/heads/try2: 46fef3d60155d4471ce23626501986aeb2c14c9b
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/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)