diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2025-11-19 19:51:25 +0100 |
|---|---|---|
| committer | Alice Ryhl <aliceryhl@google.com> | 2025-11-20 10:13:35 +0000 |
| commit | 57dc2ea0b7bdb828c5d966d9135c28fe854933a4 (patch) | |
| tree | cd75a35ab23f2565218b660476d038961c72498f /tools/lib/python/kdoc/kdoc_item.py | |
| parent | f0ded972d37150f9f889de75c9eecc5cb0730013 (diff) | |
rust: slice: fix broken intra-doc links
In older versions of Rust, the compiler doesn't know about the newer
`as_flattened*` methods, thus `rustdoc` complains about the intra-doc
links, e.g.
error: unresolved link to `slice::as_flattened`
--> rust/kernel/slice.rs:19:23
|
19 | /// [`as_flattened`]: slice::as_flattened
| ^^^^^^^^^^^^^^^^^^^ the primitive type `slice` has no associated item named `as_flattened`
|
= note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]`
Thus fix them by using an URL instead.
Fixes: 88622323dde3 ("rust: enable slice_flatten feature and provide it through an extension trait")
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20251119185125.1411151-1-ojeda@kernel.org
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_item.py')
0 files changed, 0 insertions, 0 deletions
