rustdoc: cannot resolve links to associated items on more complex primitive types #92536
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-intra-doc-links
Area: Intra-doc links, the ability to link to items in docs by name
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
As a continuation of #90703
#92443 fixes this for "simple" primitives such as:
char, str, bool, never, usize, u{8, 16, 32, 64, 128}, isize, i{8, 16, 32, 64, 128} and f32, f64. However, for types that wrap around other types, such as Tuple, Array, Slice, RawPtr, etc. I was not able to make it work at first try. See the discussion here: #92443 (comment)
Basically we want these comments to have links to the respective primitive type's implementation, e.g.:
/// [`<&[u32]>::fmt()`] [`<(u32, u32)>::eq()`]
Should link to
Note that for the tuple, we ideally want to link to the implementation for the specified size of the tuple.
Not sure if we also need to know whether the type inside the tuple actually has the necessary traits, e.g. in the case of
[(a, b)::fmt()]
,a
andb
should also haveDebug
. This is pretty complex and we might be able to get away without it.The text was updated successfully, but these errors were encountered: