Skip to content

Commit 555e6cb

Browse files
ojedaintel-lab-lkp
authored andcommitted
rust: arc: fix intra-doc link in Arc<T>::init
`Arc<T>::init` refers to `Arc<T>::pin_init` via an intra-doc link using the text `pin_init`, rather than more explicitly, which makes `rustdoc` point it to the `pin_init!` macro instead. This is required for the compiler upgrade since the newer `rustdoc` would trigger the `broken_intra_doc_links` lint [1], but in this case the macro was not the intended target to begin with, and so the actual fix is to make it point to the right place, regardless of the upgrade. Thus make it more explicit. Fixes: 92c4a1e ("rust: init/sync: add `InPlaceInit` trait to pin-initialize smart pointers") Link: rust-lang/rust#106142 [1] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 32f68f6 commit 555e6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: rust/kernel/sync/arc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl<T> Arc<T> {
185185

186186
/// Use the given initializer to in-place initialize a `T`.
187187
///
188-
/// This is equivalent to [`pin_init`], since an [`Arc`] is always pinned.
188+
/// This is equivalent to [`Arc<T>::pin_init`], since an [`Arc`] is always pinned.
189189
#[inline]
190190
pub fn init<E>(init: impl Init<T, E>) -> error::Result<Self>
191191
where

0 commit comments

Comments
 (0)