Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: bump Clippy's MSRV and clean `incompatible_msrv` allows

Following the Rust compiler bump, we can now update Clippy's MSRV we
set in the configuration, which will improve the diagnostics it generates.

Thus do so and clean a few of the `allow`s that are not needed anymore.

Reviewed-by: Tamir Duberstein <tamird@kernel.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260405235309.418950-7-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

+2 -9
+1 -1
.clippy.toml
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - msrv = "1.78.0" 3 + msrv = "1.85.0" 4 4 5 5 check-private-items = true 6 6
+1 -5
drivers/gpu/nova-core/gsp/cmdq.rs
··· 281 281 let (slice_1, slice_2) = { 282 282 let (slice_1, slice_2) = self.driver_write_area(); 283 283 284 - #[allow(clippy::incompatible_msrv)] 285 284 (slice_1.as_flattened_mut(), slice_2.as_flattened_mut()) 286 285 }; 287 286 ··· 571 572 Delta::from_millis(1), 572 573 timeout, 573 574 ) 574 - .map(|(slice_1, slice_2)| { 575 - #[allow(clippy::incompatible_msrv)] 576 - (slice_1.as_flattened(), slice_2.as_flattened()) 577 - })?; 575 + .map(|(slice_1, slice_2)| (slice_1.as_flattened(), slice_2.as_flattened()))?; 578 576 579 577 // Extract the `GspMsgElement`. 580 578 let (header, slice_1) = GspMsgElement::from_bytes_prefix(slice_1).ok_or(EIO)?;
-1
rust/kernel/ptr.rs
··· 81 81 /// This is equivalent to [`align_of`], but with the return value provided as an [`Alignment`]. 82 82 #[inline(always)] 83 83 pub const fn of<T>() -> Self { 84 - #![allow(clippy::incompatible_msrv)] 85 84 // This cannot panic since alignments are always powers of two. 86 85 // 87 86 // We unfortunately cannot use `new` as it would require the `generic_const_exprs` feature.
-2
rust/kernel/transmute.rs
··· 49 49 let slice_ptr = bytes.as_ptr().cast::<Self>(); 50 50 let size = size_of::<Self>(); 51 51 52 - #[allow(clippy::incompatible_msrv)] 53 52 if bytes.len() == size && slice_ptr.is_aligned() { 54 53 // SAFETY: Size and alignment were just checked. 55 54 unsafe { Some(&*slice_ptr) } ··· 91 92 let slice_ptr = bytes.as_mut_ptr().cast::<Self>(); 92 93 let size = size_of::<Self>(); 93 94 94 - #[allow(clippy::incompatible_msrv)] 95 95 if bytes.len() == size && slice_ptr.is_aligned() { 96 96 // SAFETY: Size and alignment were just checked. 97 97 unsafe { Some(&mut *slice_ptr) }