collapsible_if false positive #6593
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
A
#[cfg(unix)]
attribute can make an if statement non-collapsible, but its presence is ignored by clippy.cargo clippy --fix
drops the attribute altogether.Lint name
collapsible-if
Example
Meta
The text was updated successfully, but these errors were encountered: