We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a3048d commit 6ec4c71Copy full SHA for 6ec4c71
src/librustdoc/html/format.rs
@@ -1097,6 +1097,9 @@ impl clean::Visibility {
1097
clean::Inherited => Ok(()),
1098
1099
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.
1103
let parent_module = find_nearest_parent_module(tcx, item_did);
1104
1105
if vis_did.index == CRATE_DEF_INDEX {
0 commit comments