We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11c94a1 commit 799e822Copy full SHA for 799e822
src/librustdoc/clean/mod.rs
@@ -2171,7 +2171,8 @@ impl Clean<Vec<Item>> for doctree::Import<'_> {
2171
}
2172
None => false,
2173
2174
- });
+ })
2175
+ || (self.vis.node.is_pub() && self.name == kw::Underscore);
2176
// Also check whether imports were asked to be inlined, in case we're trying to re-export a
2177
// crate in Rust 2018+
2178
let please_inline = self.attrs.lists(sym::doc).has_word(sym::inline);
src/test/rustdoc/issue-61592.rs
@@ -0,0 +1,7 @@
1
+pub mod foo {
2
+ pub struct Foo;
3
+}
4
+
5
+// @has issue_61592/index.html
6
+// @has - '//*[@href="#reexports"]' 'Re-exports'
7
+pub use foo::Foo as _;
0 commit comments