-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)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.
Description
Rustdoc should give an error if the base res is ambiguous, but it doesn't:
$ cat primitive-ambiguous.rs
//! [usize::MAX]
mod usize {
const MAX: usize = 1;
}
$ rustdoc primitive-ambiguous.rs
$
This was originally discovered through the special case
//! [usize::MAX]
#[doc(primitive = "usize")]
mod usize {}
which I think should continue working, rustdoc shouldn't give an ambiguity error if the module has doc(primitive)
on it.
Originally posted by @jyn514 in #83849 (comment)
Meta
HEAD is 2616ab1
Metadata
Metadata
Assignees
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)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.