map_clone doesn't respect MSRV for copied #8276
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-false-positive
Issue: The lint was triggered on code it shouldn't have
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
.copied()
method was added in 1.36 but ifmsrv
is set to less (e.g. 1.29) in clippy.toml themap_clone
lint fires anywayLint Name
map_clone
Reproducer
I tried this code:
clippy.toml:
I saw this happen:
I expected to see this happen:
No lint fires
Version
Additional Labels
@rustbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: