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 25face9 commit ef8dffbCopy full SHA for ef8dffb
src/librustdoc/clean/mod.rs
@@ -2746,7 +2746,8 @@ fn add_without_unwanted_attributes<'hir>(
2746
attrs.push((Cow::Owned(attr), import_parent));
2747
}
2748
2749
- hir::Attribute::Parsed(..) if is_inline => {
+ // FIXME: make sure to exclude `#[cfg_trace]` here when it is ported to the new parsers
2750
+ hir::Attribute::Parsed(..) => {
2751
2752
2753
_ => {}
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