about summary refs log tree commit diff
path: root/src/librustdoc/clean/mod.rs
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-06-27 12:29:26 +0200
committerJosh Stone <jistone@redhat.com>2025-07-17 14:02:06 -0700
commitd49946852525dd19d7714b9eeebde5501b467c42 (patch)
tree695ffbbc1f71c8f64a1f06bd6825a080a338c7ea /src/librustdoc/clean/mod.rs
parent7e0eb3bc6df7199c908eb095ff63635e4c2239b0 (diff)
downloadrust-d49946852525dd19d7714b9eeebde5501b467c42.tar.gz
rust-d49946852525dd19d7714b9eeebde5501b467c42.zip
Fix rustdoc not correctly showing attributes with re-exports
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
(cherry picked from commit 58418d881a91e9f37b0c8fd07f0218850725efda)
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 d77bdf09d01..558cedb3190 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));
             }
             _ => {}