lines_filter_map_ok should respect MSRV #14127
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
Iterator::map_while
requires Rust 1.57, but this lint also suggests using it for code with MSRV less than 1.57.Lint Name
lines_filter_map_ok
Reproducer
I tried this code:
I saw this happen:
However, the suggested code cases compile error on MSRV (Rust 1.56): https://godbolt.org/z/4KT7M4WTr
I expected to see this happen: no warning or another suggestion
playground
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: