Skip to content

Commit 8da2621

Browse files
committed
print ghosts
1 parent cb580ff commit 8da2621

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustdoc/html/render/print_item.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,11 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
517517
}
518518
_ => "",
519519
};
520+
let hidden_emoji = if myitem.is_doc_hidden() {
521+
"<span title=\"Hidden item\">&nbsp;👻</span> "
522+
} else {
523+
""
524+
};
520525

521526
w.write_str(ITEM_TABLE_ROW_OPEN);
522527
let docs =
@@ -531,6 +536,7 @@ fn item_module(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Item, items:
531536
"<div class=\"item-name\">\
532537
<a class=\"{class}\" href=\"{href}\" title=\"{title}\">{name}</a>\
533538
{visibility_emoji}\
539+
{hidden_emoji}\
534540
{unsafety_flag}\
535541
{stab_tags}\
536542
</div>\

0 commit comments

Comments
 (0)