Open
Description
Here what are the remaining things to be done:
- Improve "jump links" UI: for now it's highlighted background but it was suggested we could try an "underline dotted": Consider styling go-to-definition links using faint underline #88120
- Add support to go to both source definition and documentation page (if available!). We could do it by adding a popup when hovering the item. (Provide doc links at item definitions on source pages #89157)
- Make all links go to source location, not documentation (currently, external types link to documentation)
Steps
To go through stabilization, we will gradually enable it in different places:
- Enable it by default on the compiler docs (Enable --generate-link-to-definition for rustc's docs #88292 and Enable "generate-link-to-definition" option on rust tools docs as well #89217)
- Enable it by default on the std docs
- Enable the feature by default (on nightly only) and remove the flag.
- Send the stabilization PR.
Implementation history
- The initial PR which added the links to definition in the source code pages: Generate links to definition in rustdoc source code pages #84176
- Add links for primitives in "jump to definition" feature: Add links for primitives in "jump to definition" feature #88033
- Add links for primitives: Add macro support in jump to definition feature #91264