diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-07-23 18:49:34 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-07-23 18:58:56 -0700 |
| commit | 0d581bdafee71cec2b4455d7d9c8d14611a1ecc8 (patch) | |
| tree | 41158218090e656402ff73cc97264c879a979a31 /src/libsyntax/parse | |
| parent | 78fa02106eefe7526a47808caaee0dbe1857ef2e (diff) | |
| download | rust-0d581bdafee71cec2b4455d7d9c8d14611a1ecc8.tar.gz rust-0d581bdafee71cec2b4455d7d9c8d14611a1ecc8.zip | |
syntax: Expect the closing brace after struct literals
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 95511479d84..656e064d694 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -934,6 +934,7 @@ class parser { } hi = pth.span.hi; + self.expect(token::RBRACE); ex = expr_struct(pth, fields); ret self.mk_pexpr(lo, hi, ex); } |
