Skip to content

rustdoc: Parse intra-doc links using rustc_parse #151030

@camelid

Description

@camelid

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 #150586 (comment)

Metadata

Metadata

Assignees

Labels

A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-cleanupCategory: PRs that clean code up or issues documenting cleanup.C-enhancementCategory: An issue proposing an enhancement or a PR with one.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