Skip to content

Commit cba007e

Browse files
committed
rustc: Fix parsing of ret &EXPR
The parser didn't think that `&` could start an expression.
1 parent 7592dae commit cba007e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rustc/syntax/parse/token.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ pure fn can_begin_expr(t: token) -> bool {
186186
NOT { true }
187187
BINOP(MINUS) { true }
188188
BINOP(STAR) { true }
189+
BINOP(AND) { true }
189190
MOD_SEP { true }
190191
_ { false }
191192
}

0 commit comments

Comments
 (0)