rust/tests
bors 9e0852705e Auto merge of #8066 - rust-lang:needless_bool_parenthesize, r=camsteffen
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
2021-12-06 15:15:26 +00:00
..
cargo
ui Auto merge of #8066 - rust-lang:needless_bool_parenthesize, r=camsteffen 2021-12-06 15:15:26 +00:00
ui_test
ui-cargo
ui-internal New internal lint to make clippy::version attribute mandatory 2021-11-11 13:03:30 +01:00
ui-toml Also pluralize disallowed_method(s) lint 2021-11-18 17:37:06 +01:00
clippy.toml
compile-test.rs Auto merge of #7957 - surechen:fix_for_7854, r=giraffate 2021-11-15 00:50:28 +00:00
dogfood.rs
fmt.rs Don't check for a nightly toolchain in fmt test 2021-11-19 19:43:31 -05:00
integration.rs
lint_message_convention.rs
missing-test-files.rs
versioncheck.rs