rust-lang / rust-lang/rust

rustdoc: Parse intra-doc links using `rustc_parse`

Open
#151,030 0 comments 0 reactions 1 assignee View on GitHub

@camelid is already working on this.

Since Jan 12, 2026.

A-intra-doc-links C-cleanup C-enhancement T-rustdoc
Dominant language
Rust
Stars
119k
Forks
16.2k
PR merge metrics
PR metrics pending

Description

This would simplify rustdoc's logic and reduce duplication with rustc. It would also make it easier to implement fully-qualified syntax.

Related: It would be good to avoid any path length–based resolution logic—e.g. we currently assume paths to enum variant fields are always at least three segments. But re-exports of variants break this assumption.

cc #t-rustdoc/meetings > 2026-01-12 @ 💬 @GuillaumeGomez
cc https://github.com/rust-lang/rust/pull/150586#discussion_r2676538083

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.