Conversation
This lets the parser parse expressions like `box (1i + 2)` as `box() (1i + 2)`.
Expressions are parsed greedily in `if`, `while`, and `for` expressions, so that
`if box(foo) {} {}` is parsed as `if (box(foo) {}) {}`. This is the same
behaviour as before this change.
Closes rust-lang#15386.
|
This seems like a bad idea. It's just going to be confusing. The rule implemented here is if At the very least, |
|
Closing due to inactivity, I also think that changes to the grammar such as this may require an RFC to gain feedback and such. |
Bump dependencies and use in-tree `rustc_pattern_analysis` One last `pattern_analysis` API change. I don't have any more planned! So we can now use the in-tree version when available.
This lets the parser parse expressions like
box (1i + 2)asbox() (1i + 2). Expressions are parsed greedily inif,while, andforexpressions, so thatif box(foo) {} {}is parsed asif (box(foo) {}) {}. This is the same behaviour as before this change.Closes #15386.