Closed
Description
The link will be broken if the item is re-exported into a different module, see #76497 for an example. Rustdoc should recommend prefixing the link with either Self
or self
, depending on whether it's on a type or module.
There is a caveat here that this only works if you're documenting an item, not arbitrary #
links - otherwise self
and Self
don't make sense. In particular rustdoc can't tell a #
link from a normal link, so this would have to go after the intra-doc pass in https://github.com/rust-lang/rust/blob/master/src/librustdoc/html/markdown.rs somewhere.