match_like_matches_macro ignores #[cfg()] attribute in suggestion #6289
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
Code from cargo
clippy will suggest
Note that it does not take the
#[cfg]
attributes into account, blindly applying the suggestion would alter semantics.clippy 0.0.212 (601c13c 2020-11-04)
The text was updated successfully, but these errors were encountered: