manual_pattern_char_comparison should respect MSRV #12936
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
Summary
Pattern<'_>
for[char; N]
needs Rust 1.58, but this lint also suggests using it for code with MSRV less than 1.58.Mentioning @AurelienFT, who implemented this lint in #12849.
Lint Name
manual_pattern_char_comparison
Reproducer
I tried this code:
I saw this happen:
However, the suggested code cases compile error on MSRV (Rust 1.57): https://godbolt.org/z/fdzGY6vbc
I expected to see this happen: no warning
playground
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: