diff options
| author | Dave Airlie <airlied@redhat.com> | 2025-11-28 06:49:40 +1000 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2025-11-28 06:49:44 +1000 |
| commit | 1a22e175b311900691e27c8ebae9ebb3387b98bf (patch) | |
| tree | 4d3ef27073705c9cec6bb374602eead10ee4317b /rust/kernel | |
| parent | 578d6aab14899ef782e1605b31707219ee710048 (diff) | |
| parent | 57dc2ea0b7bdb828c5d966d9135c28fe854933a4 (diff) | |
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
Diffstat (limited to 'rust/kernel')
| -rw-r--r-- | rust/kernel/slice.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/kernel/slice.rs b/rust/kernel/slice.rs index 6ca91a4fd1f2..ca2cde135061 100644 --- a/rust/kernel/slice.rs +++ b/rust/kernel/slice.rs @@ -16,22 +16,22 @@ /// /// This trait can be removed once the MSRV passes 1.80. /// -/// [`as_flattened`]: slice::as_flattened -/// [`as_flattened_mut`]: slice::as_flattened_mut +/// [`as_flattened`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_flattened +/// [`as_flattened_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_flattened_mut #[cfg(not(CONFIG_RUSTC_HAS_SLICE_AS_FLATTENED))] pub trait AsFlattened<T> { /// Takes a `&[[T; N]]` and flattens it to a `&[T]`. /// /// This is an portable layer on top of [`as_flattened`]; see its documentation for details. /// - /// [`as_flattened`]: slice::as_flattened + /// [`as_flattened`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_flattened fn as_flattened(&self) -> &[T]; /// Takes a `&mut [[T; N]]` and flattens it to a `&mut [T]`. /// /// This is an portable layer on top of [`as_flattened_mut`]; see its documentation for details. /// - /// [`as_flattened_mut`]: slice::as_flattened_mut + /// [`as_flattened_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_flattened_mut fn as_flattened_mut(&mut self) -> &mut [T]; } |
