Re: [PATCH v2 3/3] rust: ptr: allow clippy::incompatible_msrv for slice_ptr_len
From: Gary Guo
Date: Sat Apr 04 2026 - 18:09:54 EST
On Sat Apr 4, 2026 at 10:46 PM BST, Miguel Ojeda wrote:
> On Sat, Apr 4, 2026 at 11:28 PM John Hubbard <jhubbard@xxxxxxxxxx> wrote:
>>
>> Clippy reports four warnings when building with CLIPPY=1:
>>
>> warning: current MSRV (Minimum Supported Rust Version) is `1.78.0` but this item is stable since `1.79.0`
>> --> rust/kernel/ptr/projection.rs:79:26
>> |
>> 79 | if self >= slice.len() {
>> | ^^^^^
>
> This will also go away with the bump:
>
> https://lore.kernel.org/rust-for-linux/20260401114540.30108-3-ojeda@xxxxxxxxxx/
>
> Cheers,
> Miguel
I feel like this lint is hurting us rather than helping. Perhaps it's worth
disabling it globally.
Best,
Gary