Skip to content

Commit c737788

Browse files
committed
Fix parser issue due to bad rebase.
1 parent 12b63d5 commit c737788

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,16 +1108,16 @@ impl<'a> Parser<'a> {
11081108
p.expect(&token::Semi);
11091109
(ident, TypeTraitItem(bounds, default))
11101110
} else if p.eat_keyword(keywords::Const) {
1111-
let ident = self.parse_ident();
1112-
self.expect(&token::Colon);
1113-
let ty = self.parse_ty_sum();
1114-
let default = if self.check(&token::Eq) {
1115-
self.bump();
1116-
let expr = self.parse_expr();
1117-
self.commit_expr_expecting(&expr, token::Semi);
1111+
let ident = p.parse_ident();
1112+
p.expect(&token::Colon);
1113+
let ty = p.parse_ty_sum();
1114+
let default = if p.check(&token::Eq) {
1115+
p.bump();
1116+
let expr = p.parse_expr();
1117+
p.commit_expr_expecting(&expr, token::Semi);
11181118
Some(expr)
11191119
} else {
1120-
self.expect(&token::Semi);
1120+
p.expect(&token::Semi);
11211121
None
11221122
};
11231123
(ident, ConstTraitItem(ty, default))

0 commit comments

Comments
 (0)