Reexports from other crate are listen in docs even when hidden by other types #70390
Labels
A-cross-crate-reexports
Area: Documentation that has been re-exported from a different crate
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Given a two crate set up:
Crate
a
:Crate
b
:Documentation for crate
b
lists twoFoo
types, with thea::Foo
one being inaccessible because it is actually hidden byb::Foo
:If you change
a
to a module instead of a separate crate, then onlyb::Foo
type is listed in docs.rustc --version --verbose
:Real world example of this:
diesel::r2d2
lists a structError
which is defined by diesel, and an enumError
which is glob-reexported fromr2d2
.The text was updated successfully, but these errors were encountered: