diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-09-28 00:18:09 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-10-09 20:25:44 +0200 |
| commit | 31d275e5877d983fecb39bbaad837f6b7cf120d3 (patch) | |
| tree | 88b79ccd983dcdb7ca4a2a3c555f77af921d2e19 /src/librustdoc/html/render | |
| parent | 7c0d576c59e9429157449e617ec5607373afc642 (diff) | |
| download | rust-31d275e5877d983fecb39bbaad837f6b7cf120d3.tar.gz rust-31d275e5877d983fecb39bbaad837f6b7cf120d3.zip | |
Correctly handle "pub use" reexports
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index afd1dc59642..a74e768f980 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -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() + ); + } } _ => { |
