Skip to content

Commit 6ccfba3

Browse files
committed
Add missing case to parse_ty, un-XFAIL cast.rs.
1 parent 68af077 commit 6ccfba3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ TEST_XFAILS_SELF := $(filter-out \
526526
bool-not.rs \
527527
box.rs \
528528
box-in-tup.rs \
529+
cast.rs \
529530
char.rs \
530531
complex.rs \
531532
dead-code-one-arm-if.rs \

src/comp/front/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ impure fn parse_ty(parser p) -> @ast.ty {
140140
auto hi = lo;
141141
let ast.ty_ t;
142142
alt (p.peek()) {
143+
case (token.BOOL) { p.bump(); t = ast.ty_bool; }
143144
case (token.INT) { p.bump(); t = ast.ty_int; }
144145
case (token.UINT) { p.bump(); t = ast.ty_int; }
145146
case (token.STR) { p.bump(); t = ast.ty_str; }

0 commit comments

Comments
 (0)