1
Fork 0

Correctly handle "pub use" reexports

This commit is contained in:
Guillaume Gomez 2020-09-28 00:18:09 +02:00
parent 7c0d576c59
commit 31d275e587
6 changed files with 32 additions and 13 deletions

View file

@ -2074,12 +2074,14 @@ fn item_module(w: &mut Buffer, cx: &Context, item: &clean::Item, items: &[clean:
}
clean::ImportItem(ref import) => {
write!(
w,
"<tr><td><code>{}{}</code></td></tr>",
myitem.visibility.print_with_space(),
import.print()
);
if import.should_be_displayed() {
write!(
w,
"<tr><td><code>{}{}</code></td></tr>",
myitem.visibility.print_with_space(),
import.print()
);
}
}
_ => {