Skip to content

Add intra-doc field@ disambiguator#83546

Closed
camelid wants to merge 2 commits intorust-lang:masterfrom
camelid:field-disambiguator
Closed

Add intra-doc field@ disambiguator#83546
camelid wants to merge 2 commits intorust-lang:masterfrom
camelid:field-disambiguator

Conversation

@camelid
Copy link
Copy Markdown
Member

@camelid camelid commented Mar 27, 2021

This change required some refactoring because fields (1) don't get their
own Res (instead they seem to use the Res of their parent node) and
(2) DefKind::Field::ns() returns None, so rustdoc has to
special-case fields. For some reason, we treat fields as if they're in
the value namespace - I'm not sure why that is.

Fixes #80283.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an intra-doc link disambiguator for fields

6 participants