diff options
| author | bors <bors@rust-lang.org> | 2014-02-14 12:21:51 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-14 12:21:51 -0800 |
| commit | 3f717bbe96014c04c4c439ed0b0975ca36a73e53 (patch) | |
| tree | 8efaf70dc83bb23098e7d0e47a65cdeb963bba8a /src/libsyntax/parse/parser.rs | |
| parent | 994747022a45b5c2b03f38dddbe8b43bf09679f3 (diff) | |
| parent | 2f8dbf210215039f39a80424d9c43f96ff79dad4 (diff) | |
| download | rust-3f717bbe96014c04c4c439ed0b0975ca36a73e53.tar.gz rust-3f717bbe96014c04c4c439ed0b0975ca36a73e53.zip | |
auto merge of #12267 : alexcrichton/rust/rollup, r=alexcrichton
The last commit has the closed PRs
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 674d41e9dbe..a02971ae8ea 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -13,7 +13,6 @@ use abi; use abi::AbiSet; use ast::{Sigil, BorrowedSigil, ManagedSigil, OwnedSigil}; -use ast::{CallSugar, NoSugar}; use ast::{BareFnTy, ClosureTy}; use ast::{RegionTyParamBound, TraitTyParamBound}; use ast::{Provided, Public, Purity}; @@ -1690,13 +1689,12 @@ impl Parser { ExprBinary(ast::DUMMY_NODE_ID, binop, lhs, rhs) } - pub fn mk_call(&mut self, f: @Expr, args: ~[@Expr], sugar: CallSugar) -> ast::Expr_ { - ExprCall(f, args, sugar) + pub fn mk_call(&mut self, f: @Expr, args: ~[@Expr]) -> ast::Expr_ { + ExprCall(f, args) } - fn mk_method_call(&mut self, ident: Ident, tps: ~[P<Ty>], args: ~[@Expr], - sugar: CallSugar) -> ast::Expr_ { - ExprMethodCall(ast::DUMMY_NODE_ID, ident, tps, args, sugar) + fn mk_method_call(&mut self, ident: Ident, tps: ~[P<Ty>], args: ~[@Expr]) -> ast::Expr_ { + ExprMethodCall(ast::DUMMY_NODE_ID, ident, tps, args) } pub fn mk_index(&mut self, expr: @Expr, idx: @Expr) -> ast::Expr_ { @@ -1997,7 +1995,7 @@ impl Parser { hi = self.last_span.hi; es.unshift(e); - let nd = self.mk_method_call(i, tys, es, NoSugar); + let nd = self.mk_method_call(i, tys, es); e = self.mk_expr(lo, hi, nd); } _ => { @@ -2022,7 +2020,7 @@ impl Parser { ); hi = self.last_span.hi; - let nd = self.mk_call(e, es, NoSugar); + let nd = self.mk_call(e, es); e = self.mk_expr(lo, hi, nd); } |
