needless_bool provides incorrect suggestions with if-else-if-else chains #4334
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-suggestion
Lint: Improving, adding or fixing lint suggestions
Part of #3630
Given the following code:
we currently provide a broken suggestion:
Applying the suggestion results in a syntax error:
The suggestion should be
{ !returns_bool() }
- as it was before this PR: rust-lang/rust#61074The text was updated successfully, but these errors were encountered: