incompatible_msrv false positive: enabled unstable feature #14425
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
In Rust-for-Linux we want to use provenance but our clippy MSRV is configured as 1.78.0, where e.g.
pointer::addr
exists but is unstable. We#![feature(strict_provenance)]
unconditionally (even when building with rustc where it is stable).incompatible_msrv
fires on this usage when compiling with a compiler where the method is stable but not otherwise. It seems like we want the lint to take enabled features into account.Lint Name
incompatible_msrv
Reproducer
src/lib.rs:
.clippy.toml:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: