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.

Merge tag 'drm-rust-next-2025-11-21' of https://gitlab.freedesktop.org/drm/rust/kernel into drm-next

Core Changes:

- Fix warning in documentation builds on older rustc versions.

Signed-off-by: Dave Airlie <airlied@redhat.com>

From: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/aSA5pshsJ7TeJIbu@google.com

+4 -4
+4 -4
rust/kernel/slice.rs
··· 16 16 /// 17 17 /// This trait can be removed once the MSRV passes 1.80. 18 18 /// 19 - /// [`as_flattened`]: slice::as_flattened 20 - /// [`as_flattened_mut`]: slice::as_flattened_mut 19 + /// [`as_flattened`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_flattened 20 + /// [`as_flattened_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_flattened_mut 21 21 #[cfg(not(CONFIG_RUSTC_HAS_SLICE_AS_FLATTENED))] 22 22 pub trait AsFlattened<T> { 23 23 /// Takes a `&[[T; N]]` and flattens it to a `&[T]`. 24 24 /// 25 25 /// This is an portable layer on top of [`as_flattened`]; see its documentation for details. 26 26 /// 27 - /// [`as_flattened`]: slice::as_flattened 27 + /// [`as_flattened`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_flattened 28 28 fn as_flattened(&self) -> &[T]; 29 29 30 30 /// Takes a `&mut [[T; N]]` and flattens it to a `&mut [T]`. 31 31 /// 32 32 /// This is an portable layer on top of [`as_flattened_mut`]; see its documentation for details. 33 33 /// 34 - /// [`as_flattened_mut`]: slice::as_flattened_mut 34 + /// [`as_flattened_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_flattened_mut 35 35 fn as_flattened_mut(&mut self) -> &mut [T]; 36 36 } 37 37