diff options
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/asm.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/build.rs | 9 | ||||
| -rw-r--r-- | src/libsyntax/ext/concat_idents.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/ext/log_syntax.rs | 1 |
4 files changed, 3 insertions, 10 deletions
diff --git a/src/libsyntax/ext/asm.rs b/src/libsyntax/ext/asm.rs index 874c10fae5f..7f8f2be6f6e 100644 --- a/src/libsyntax/ext/asm.rs +++ b/src/libsyntax/ext/asm.rs @@ -82,7 +82,6 @@ pub fn expand_asm(cx: @ExtCtxt, sp: span, tts: &[ast::token_tree]) let out = @ast::expr { id: cx.next_id(), - callee_id: cx.next_id(), span: out.span, node: ast::expr_addr_of(ast::m_mutbl, out) }; @@ -179,7 +178,6 @@ pub fn expand_asm(cx: @ExtCtxt, sp: span, tts: &[ast::token_tree]) MRExpr(@ast::expr { id: cx.next_id(), - callee_id: cx.next_id(), node: ast::expr_inline_asm(ast::inline_asm { asm: @asm, clobbers: @cons, diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 85bebebf0f6..c2fa888995a 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -414,7 +414,6 @@ impl AstBuilder for @ExtCtxt { fn expr(&self, span: span, node: ast::expr_) -> @ast::expr { @ast::expr { id: self.next_id(), - callee_id: self.next_id(), node: node, span: span, } @@ -433,8 +432,7 @@ impl AstBuilder for @ExtCtxt { fn expr_binary(&self, sp: span, op: ast::binop, lhs: @ast::expr, rhs: @ast::expr) -> @ast::expr { - self.next_id(); // see ast_util::op_expr_callee_id - self.expr(sp, ast::expr_binary(op, lhs, rhs)) + self.expr(sp, ast::expr_binary(self.next_id(), op, lhs, rhs)) } fn expr_deref(&self, sp: span, e: @ast::expr) -> @ast::expr { @@ -442,8 +440,7 @@ impl AstBuilder for @ExtCtxt { } fn expr_unary(&self, sp: span, op: ast::unop, e: @ast::expr) -> @ast::expr { - self.next_id(); // see ast_util::op_expr_callee_id - self.expr(sp, ast::expr_unary(op, e)) + self.expr(sp, ast::expr_unary(self.next_id(), op, e)) } fn expr_copy(&self, sp: span, e: @ast::expr) -> @ast::expr { @@ -480,7 +477,7 @@ impl AstBuilder for @ExtCtxt { ident: ast::ident, args: ~[@ast::expr]) -> @ast::expr { self.expr(span, - ast::expr_method_call(expr, ident, ~[], args, ast::NoSugar)) + ast::expr_method_call(self.next_id(), expr, ident, ~[], args, ast::NoSugar)) } fn expr_blk(&self, b: ast::blk) -> @ast::expr { self.expr(b.span, ast::expr_block(b)) diff --git a/src/libsyntax/ext/concat_idents.rs b/src/libsyntax/ext/concat_idents.rs index 788f047773a..358f4041dd0 100644 --- a/src/libsyntax/ext/concat_idents.rs +++ b/src/libsyntax/ext/concat_idents.rs @@ -37,7 +37,6 @@ pub fn expand_syntax_ext(cx: @ExtCtxt, sp: span, tts: &[ast::token_tree]) let e = @ast::expr { id: cx.next_id(), - callee_id: cx.next_id(), node: ast::expr_path( @ast::Path { span: sp, diff --git a/src/libsyntax/ext/log_syntax.rs b/src/libsyntax/ext/log_syntax.rs index 95cf4a18ab4..598537c97e8 100644 --- a/src/libsyntax/ext/log_syntax.rs +++ b/src/libsyntax/ext/log_syntax.rs @@ -33,7 +33,6 @@ pub fn expand_syntax_ext(cx: @ExtCtxt, //trivial expression MRExpr(@ast::expr { id: cx.next_id(), - callee_id: cx.next_id(), node: ast::expr_lit(@codemap::spanned { node: ast::lit_nil, span: sp |
