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 e61dd43 commit c26ae66Copy full SHA for c26ae66
src/librustdoc/clean/mod.rs
@@ -2746,7 +2746,7 @@ fn add_without_unwanted_attributes<'hir>(
2746
attrs.push((Cow::Owned(attr), import_parent));
2747
}
2748
2749
- hir::Attribute::Parsed(..) if is_inline => {
+ hir::Attribute::Parsed(..) => {
2750
2751
2752
_ => {}
tests/rustdoc/attributes-re-export.rs
@@ -0,0 +1,12 @@
1
+//@ edition:2021
2
+#![crate_name = "re_export"]
3
+
4
+//@ has 're_export/fn.thingy2.html' '//pre[@class="rust item-decl"]' '#[no_mangle]'
5
+pub use thingymod::thingy as thingy2;
6
7
+mod thingymod {
8
+ #[no_mangle]
9
+ pub fn thingy() {
10
11
+ }
12
+}
0 commit comments