Skip to content

Commit 09b1704

Browse files
committed
rust: condvar: fix broken intra-doc link
The future move of pin-init to `syn` uncovers the following broken intra-doc link: error: unresolved link to `crate::pin_init` --> rust/kernel/sync/condvar.rs:39:40 | 39 | /// instances is with the [`pin_init`](crate::pin_init!) and [`new_condvar`] macros. | ^^^^^^^^^^^^^^^^ no item named `pin_init` in module `kernel` | = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]` Currently, when rendered, the link points to a literal `crate::pin_init!` URL. Thus fix it. Cc: stable@vger.kernel.org Fixes: 129e97b ("rust: pin-init: fix documentation links") Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20251029073344.349341-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent ff4d2ef commit 09b1704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/sync/condvar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub use new_condvar;
3636
/// spuriously.
3737
///
3838
/// Instances of [`CondVar`] need a lock class and to be pinned. The recommended way to create such
39-
/// instances is with the [`pin_init`](crate::pin_init!) and [`new_condvar`] macros.
39+
/// instances is with the [`pin_init`](pin_init::pin_init!) and [`new_condvar`] macros.
4040
///
4141
/// # Examples
4242
///

0 commit comments

Comments
 (0)