rustc: Fix parsing of ret &EXPR

The parser didn't think that `&` could start an expression.
This commit is contained in:
Patrick Walton 2012-03-23 16:15:58 -07:00
parent 7592dae949
commit cba007e6c8

View File

@ -186,6 +186,7 @@ pure fn can_begin_expr(t: token) -> bool {
NOT { true } NOT { true }
BINOP(MINUS) { true } BINOP(MINUS) { true }
BINOP(STAR) { true } BINOP(STAR) { true }
BINOP(AND) { true }
MOD_SEP { true } MOD_SEP { true }
_ { false } _ { false }
} }