Re: [PATCH] rust: condvar: fix broken intra-doc link
From: Miguel Ojeda
Date: Sun Nov 02 2025 - 17:20:52 EST
On Wed, Oct 29, 2025 at 8:34 AM Miguel Ojeda <ojeda@xxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxxxx
> Fixes: 129e97be8e28 ("rust: pin-init: fix documentation links")
> Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
Applied to `rust-fixes` -- thanks!
Cheers,
Miguel