Closed
Description
Consider the following code
pub fn foo() {
pub mod inaccessible {}
}
inaccessible
is local to foo
and inaccessible, and should not be documented. Instead, rustdoc currently documents the module at the same level as foo
.
Meta
rustc --version --verbose
:
rustc 1.69.0 (84c898d65 2023-04-16)
binary: rustc
commit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc
commit-date: 2023-04-16
host: x86_64-apple-darwin
release: 1.69.0
LLVM version: 15.0.7