-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-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
pub mod a {
mod b {
pub struct B;
}
pub use b::B;
pub struct A;
}
pub use a::{A, B};
When running cargo doc
with the above code, the docs list the following items:
Docs
Crate foo
Re-exports
pub use a::A;
Modules
a
Structs
B
Module foo::a
Structs
A
B
I would expect a::B
to be listed as a reexport, not a struct. The way it is now, it looks like foo::B
and foo::a::B
are different types, which is not the case.
If a::b
is made pub
, everything looks as it's supposed to.
@rustbot label +T-rustdoc
Metadata
Metadata
Assignees
Labels
C-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.