about summary refs log tree commit diff
path: root/src/librustdoc/clean/mod.rs
diff options
context:
space:
mode:
authorJana Dönszelmann <jonathan@donsz.nl>2025-07-03 13:29:37 +0200
committerGitHub <noreply@github.com>2025-07-03 13:29:37 +0200
commit622722aadaa2dba9aa9caed65006cd97ea3f9f35 (patch)
tree99f92ba28b44c0b3cdc9ec80d2cd0d47f485c54e /src/librustdoc/clean/mod.rs
parent0aaac883de0b16b6ec60b48038913e05eff5cc2f (diff)
parent58418d881a91e9f37b0c8fd07f0218850725efda (diff)
downloadrust-622722aadaa2dba9aa9caed65006cd97ea3f9f35.tar.gz
rust-622722aadaa2dba9aa9caed65006cd97ea3f9f35.zip
Rollup merge of #143083 - JonathanBrouwer:rustdoc-fix, r=jdonszelmann
Fix rustdoc not correctly showing attributes on re-exports

Fixes attributes not being shown correctly in rustdoc on re-exports

Does this need to be backported to beta?

r? ``@jdonszelmann``
Diffstat (limited to 'src/librustdoc/clean/mod.rs')
-rw-r--r--src/librustdoc/clean/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 744da14748d..93d0e76b56f 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -2746,7 +2746,8 @@ fn add_without_unwanted_attributes<'hir>(
                     attrs.push((Cow::Owned(attr), import_parent));
                 }
             }
-            hir::Attribute::Parsed(..) if is_inline => {
+            // FIXME: make sure to exclude `#[cfg_trace]` here when it is ported to the new parsers
+            hir::Attribute::Parsed(..) => {
                 attrs.push((Cow::Owned(attr), import_parent));
             }
             _ => {}