Skip to content

Commit 6ec4c71

Browse files
camelidMark-Simulacrum
authored andcommitted
Add FIXME for visibility of a module
1 parent 0a3048d commit 6ec4c71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustdoc/html/format.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,9 @@ impl clean::Visibility {
10971097
clean::Inherited => Ok(()),
10981098

10991099
clean::Visibility::Restricted(vis_did) => {
1100+
// FIXME(camelid): This may not work correctly if `item_did` is a module.
1101+
// However, rustdoc currently never displays a module's
1102+
// visibility, so it shouldn't matter.
11001103
let parent_module = find_nearest_parent_module(tcx, item_did);
11011104

11021105
if vis_did.index == CRATE_DEF_INDEX {

0 commit comments

Comments
 (0)