mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-01-09 11:48:44 +00: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. |
||
---|---|---|
.. | ||
fixable.fixed | ||
fixable.rs | ||
fixable.stderr | ||
simple.rs | ||
simple.stderr |