mirror of
https://github.com/rust-lang/rust.git
synced 2026-02-15 08:04:21 +00:00
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.