Skip to content

Commit ff4d2ef

Browse files
committed
rust: devres: fix private intra-doc link
The future move of pin-init to `syn` uncovers the following private intra-doc link: error: public documentation for `Devres` links to private item `Self::inner` --> rust/kernel/devres.rs:106:7 | 106 | /// [`Self::inner`] is guaranteed to be initialized and is always accessed read-only. | ^^^^^^^^^^^ this item is private | = note: this link will resolve properly if you pass `--document-private-items` = note: `-D rustdoc::private-intra-doc-links` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(rustdoc::private_intra_doc_links)]` Currently, when rendered, the link points to "nowhere" (an inexistent anchor for a "method"). Thus fix it. Cc: stable@vger.kernel.org Fixes: f5d3ef2 ("rust: devres: get rid of Devres' inner Arc") Acked-by: Danilo Krummrich <dakr@kernel.org> Link: https://patch.msgid.link/20251029071406.324511-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 6146a0f commit ff4d2ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/devres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ struct Inner<T: Send> {
103103
///
104104
/// # Invariants
105105
///
106-
/// [`Self::inner`] is guaranteed to be initialized and is always accessed read-only.
106+
/// `Self::inner` is guaranteed to be initialized and is always accessed read-only.
107107
#[pin_data(PinnedDrop)]
108108
pub struct Devres<T: Send> {
109109
dev: ARef<Device>,

0 commit comments

Comments
 (0)