rustdoc: Parse intra-doc links using `rustc_parse`
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.