Rustdoc links are broken when glob reexporting items from a doc(hidden)
module in another crate.
#127445
Labels
A-cross-crate-reexports
Area: Documentation that has been re-exported from a different crate
A-intra-doc-links
Area: Intra-doc links, the ability to link to items in docs by name
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Rustdoc silently (no warnings) generates broken links when the item being linked to is glob-reexported from a module with the
#[doc(hidden)]
attribute that is from a different crate. This happens regardless of which crate the link is written in.To reproduce, run
cargo doc
on two cratesfoo
andbar
with the following contents:The links to
FooOne
andFooThree
are broken as if they were unknown names, even though rustdoc emits no warnings about them like it usually does for broken links, and the documentation is otherwise functional.Meta
rustc --version --verbose
:Also reproduces on nightly.
@rustbot label +T-rustdoc
The text was updated successfully, but these errors were encountered: