Some lints, such as borrow_as_ptr have conditional behavior based on MSRV:
|
let (suggestion, span) = if msrv.meets(cx, msrvs::RAW_REF_OP) { |
In Rust-for-Linux, this is not sufficient because we enable a number of unstable features when we are reasonably confident their behavior won't change before stabilization, or because we know they have been stabilized without API change in a version that exceeds our configured MSRV.
It would be extremely helpful if these MSRV checks could be taught to also respect #[feature] attributes that enable unstable features ahead of the MSRV having been met. This is especially tricky when API has actually changed between the configured MSRV and the feature's actual stabilization.
Some lints, such as
borrow_as_ptrhave conditional behavior based on MSRV:rust-clippy/clippy_lints/src/casts/borrow_as_ptr.rs
Line 31 in fe4dd5b
In Rust-for-Linux, this is not sufficient because we enable a number of unstable features when we are reasonably confident their behavior won't change before stabilization, or because we know they have been stabilized without API change in a version that exceeds our configured MSRV.
It would be extremely helpful if these MSRV checks could be taught to also respect
#[feature]attributes that enable unstable features ahead of the MSRV having been met. This is especially tricky when API has actually changed between the configured MSRV and the feature's actual stabilization.