You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library/core/src/slice/mod.rs has this on binary_search_by_key:
// Lint rustdoc::broken_intra_doc_links is allowed as `slice::sort_by_key` is// in crate `alloc`, and as such doesn't exists yet when building `core`: #74481.// This breaks links when slice is displayed in core, but changing it to use relative links// would break when the item is re-exported. So allow the core links to be broken for now.#[allow(rustdoc::broken_intra_doc_links)]
That fixes the issue for the documentation generated in that file. However, adding another type in a different file with a Deref to a slice (e.g. a Deref to [u8]) will result in broken intra-doc links for that file as well, and the allow won't be taken into account for those.
Using allow(rustdoc::broken_intra_doc_links) on a method should apply to any copies of that method propagated due to Deref/DerefMut.
The text was updated successfully, but these errors were encountered:
joshtriplett
added
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Jan 4, 2025
jieyouxu
removed
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Jan 5, 2025
library/core/src/slice/mod.rs
has this onbinary_search_by_key
:That fixes the issue for the documentation generated in that file. However, adding another type in a different file with a
Deref
to a slice (e.g. aDeref
to[u8]
) will result in broken intra-doc links for that file as well, and theallow
won't be taken into account for those.Using
allow(rustdoc::broken_intra_doc_links)
on a method should apply to any copies of that method propagated due toDeref
/DerefMut
.The text was updated successfully, but these errors were encountered: