Closed
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