-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
A-visibilityArea: Visibility / privacyArea: Visibility / privacyC-bugCategory: This is a bug.Category: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.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
Consider this code in a crate's lib.rs:
mod m1 {
pub mod m2 {
pub struct Foo;
}
}
pub use m1::*;
use crate::m1::m2;
The generated documentation will show the m2
module at the crate root, though nothing will show up inside the m2
module page. The m2
module is private to outside crates, so I don't think it should be showing up at all.
Meta
rustc --version --verbose
:
rustc 1.36.0-nightly (7d5aa43 2019-05-16)
binary: rustc
commit-hash: 7d5aa43
commit-date: 2019-05-16
host: x86_64-pc-windows-msvc
release: 1.36.0-nightly
LLVM version: 8.0
Metadata
Metadata
Assignees
Labels
A-visibilityArea: Visibility / privacyArea: Visibility / privacyC-bugCategory: This is a bug.Category: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.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.