mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
9e0852705e
Parenthesize blocks in `needless_bool` suggestion 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. We identify such expressions and add parentheses. Note that we don't make a difference between normal and unsafe blocks because the parsing problems are the same for both. This fixes #8052. --- changelog: none |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |