On Mon, Mar 17, 2025 at 10:24 AM Tamir Duberstein <tamird@xxxxxxxxx> wrote: > > Throughout the tree, use the strict provenance APIs stabilized in Rust > 1.84.0[1]. Retain backwards-compatibility by introducing forwarding > functions at the `kernel` crate root along with polyfills for rustc < > 1.84.0. > > Use `#[allow(clippy::incompatible_msrv)]` to avoid warnings on rustc < > 1.84.0 as our MSRV is 1.78.0. > > In the `kernel` crate, enable the strict provenance lints on rustc >= > 1.84.0; do this in `lib.rs` rather than `Makefile` to avoid introducing > compiler flags that are dependent on the rustc version in use. As Benno pointed out on v4, this should probably include: Note that the enablement of the strict provenance lints does not extend to the `kernel` crate's doctests.