diff options
| author | bors <bors@rust-lang.org> | 2014-06-17 02:51:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-06-17 02:51:53 +0000 |
| commit | 09967665eaa5ca3d259f0f59ef26c8d236bf47a7 (patch) | |
| tree | ae450abfecbe1fdec6f583cf7cf743c35663a4c7 /src/libsyntax/parse/parser.rs | |
| parent | cc30abbcad282634fb99089eb9297e7cc4f26729 (diff) | |
| parent | b9adb6c717627ab6dcc9298b79a8d44cfe2fc616 (diff) | |
| download | rust-09967665eaa5ca3d259f0f59ef26c8d236bf47a7.tar.gz rust-09967665eaa5ca3d259f0f59ef26c8d236bf47a7.zip | |
auto merge of #14955 : alexcrichton/rust/rollup, r=alexcrichton
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 8b50a6270bc..bbe0680ef14 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1796,7 +1796,7 @@ impl<'a> Parser<'a> { ExprIndex(expr, idx) } - pub fn mk_field(&mut self, expr: Gc<Expr>, ident: Ident, + pub fn mk_field(&mut self, expr: Gc<Expr>, ident: ast::SpannedIdent, tys: Vec<P<Ty>>) -> ast::Expr_ { ExprField(expr, ident, tys) } @@ -2090,7 +2090,8 @@ impl<'a> Parser<'a> { e = self.mk_expr(lo, hi, nd); } _ => { - let field = self.mk_field(e, i, tys); + let id = spanned(dot, hi, i); + let field = self.mk_field(e, id, tys); e = self.mk_expr(lo, hi, field) } } |
