mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
4a39707795
Because the `if .. {}` statement already puts the condition in
expression scope, contained blocks would be parsed as complete
statements, so any `&` binary expression whose left operand ended in a
block would lead to a non-compiling suggestion.
This adds a visitor to identify such expressions and add parentheses.
This fixes #8052.