diff options
| author | bors <bors@rust-lang.org> | 2017-07-09 21:40:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-07-09 21:40:16 +0000 |
| commit | d84693b93dae3958e3504f817face0184c5c3fdd (patch) | |
| tree | 5f92468ec862671e782ecc7d5f3f23012826bf9d /src/libsyntax/ext | |
| parent | 8b1271fcdd5b5958c76c43084e544d075d7d5dfd (diff) | |
| parent | 9ac79e4934476ba520151c24f1954cfc5895ce10 (diff) | |
| download | rust-d84693b93dae3958e3504f817face0184c5c3fdd.tar.gz rust-d84693b93dae3958e3504f817face0184c5c3fdd.zip | |
Auto merge of #43115 - petrochenkov:methlife2, r=eddyb
Store all generic arguments for method calls in AST/HIR The first part of https://github.com/rust-lang/rust/pull/42492. Landed separately to start the process of merging libsyntax changes breaking rustfmt, which is not easy these days.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 03e5ea529e2..2555bf6dea7 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -673,9 +673,8 @@ impl<'a> AstBuilder for ExtCtxt<'a> { expr: P<ast::Expr>, ident: ast::Ident, mut args: Vec<P<ast::Expr>> ) -> P<ast::Expr> { - let id = Spanned { node: ident, span: span }; args.insert(0, expr); - self.expr(span, ast::ExprKind::MethodCall(id, Vec::new(), args)) + self.expr(span, ast::ExprKind::MethodCall(ast::PathSegment::from_ident(ident, span), args)) } fn expr_block(&self, b: P<ast::Block>) -> P<ast::Expr> { self.expr(b.span, ast::ExprKind::Block(b)) |
