Skip to content

Commit bc7e02c

Browse files
committed
---
yaml --- r: 6634 b: refs/heads/master c: 0e74121 h: refs/heads/master v: v3
1 parent 7296c06 commit bc7e02c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 9a269a3aa8fe8140ad3f2fc2cfdfd68d6b40ec86
2+
refs/heads/master: 0e74121ddb1cf366a474a2d156903edb9e8d9be0

trunk/src/comp/syntax/parse/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ fn parse_ty(p: parser, colons_before_params: bool) -> @ast::ty {
517517
let elems =
518518
parse_seq(token::LBRACE, token::RBRACE, seq_sep_opt(token::COMMA),
519519
parse_ty_field, p);
520+
if vec::len(elems.node) == 0u { unexpected(p, token::RBRACE); }
520521
let hi = elems.span.hi;
521522
t = ast::ty_rec(elems.node);
522523
if p.peek() == token::COLON {

0 commit comments

Comments
 (0)