-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Rustdoc link with module@ does not link to the module #62830
Copy link
Copy link
Closed
Labels
A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Starting with an ambiguous lib.rs:
rustdoc correctly reports the ambiguity and suggests the possible resolutions:
In this case I want to link to the module so let's update lib.rs:
cargo docaccepts this without warnings but the generated html file contains:I would expect [module@x] to link to the module x, not the function x.
Mentioning tracking issue: #43466