Skip to content

rustdoc: Tracking issue for generating links to definitions on source code pages #89095

Open

Description

@GuillaumeGomez

This is a tracking issue for generating links to definitions on source code pages.
The feature can be enabled by passing --generate-link-to-definition -Zunstable-options to a nightly rustdoc.

Note

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.

A tracking issue is however not meant for large scale discussion, questions, or bug reports.
Instead, open a dedicated issue for the specific matter or post in the #t-rustdoc Zulip channel.

Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

Outstanding work

Steps

To go through stabilization, we will gradually enable it in different places:

Implementation history

FIXME: Likely missing some PRs.

Activity

  1. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    A-rustdoc-uiArea: Rustdoc UI (generated HTML)
    on Sep 19, 2021
  2. jyn514 commented on Sep 24, 2021

    @jyn514
    Member

    Enable the feature by default (on nightly only) and reverse the flag (so that it disables instead of enabling).

    I think we should not do this, this is exactly how we got in trouble with intra-doc links (see #63305). Instead we should just enable it by default at the same time we remove the flag and stabilize the feature.

  3. GuillaumeGomez commented on Sep 24, 2021

    @GuillaumeGomez
    MemberAuthor

    This is a very good point. I had in mind that maybe people would want to disable it but I guess we can always add it later on if the needs appear.

  4. added a commit that references this issue on Sep 24, 2021
  5. added a commit that references this issue on Sep 24, 2021
  6. added a commit that references this issue on Jan 14, 2025
  7. added a commit that references this issue on Jan 14, 2025
  8. added a commit that references this issue on Jan 14, 2025
  9. changed the title [-]Tracking Issue for "jump to definition"[/-] [+]rustdoc: Tracking issue for generating links to definitions on source pages[/+] on Oct 10, 2025
  10. changed the title [-]rustdoc: Tracking issue for generating links to definitions on source pages[/-] [+]rustdoc: Tracking issue for generating links to definitions on source code pages[/+] on Oct 28, 2025
  11. added
    B-unstableBlocker: Implemented in the nightly compiler and unstable.
    on Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

A-link-to-definitionrustdoc --generate-link-to-definition nightly-only featureA-rustdoc-uiArea: Rustdoc UI (generated HTML)B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-impl-incompleteStatus: The implementation is incomplete.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions