Correctly handle "pub use" reexports
This commit is contained in:
parent
7c0d576c59
commit
31d275e587
6 changed files with 32 additions and 13 deletions
|
@ -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()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue