rustdoc: pub use
re-exports of private re-exports of public items show the private path
#94336
Labels
A-local-reexports
Area: Documentation that has been locally re-exported (i.e., non-cross-crate)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: The
Bar
item should be documented as a re-export ofbar::Bar
Instead, this happened: It shows up as a re-export of
qux::Bar
(though the link takes me tobar::Bar
):This is very odd, it shouldn't be exposing a private module path like that, it should instead show it as
pub use bar::Bar
.Meta
rustdoc --version --verbose
:The text was updated successfully, but these errors were encountered: