From 58418d881a91e9f37b0c8fd07f0218850725efda Mon Sep 17 00:00:00 2001 From: Jonathan Brouwer Date: Fri, 27 Jun 2025 12:29:26 +0200 Subject: Fix rustdoc not correctly showing attributes with re-exports Signed-off-by: Jonathan Brouwer --- src/librustdoc/clean/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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)); } _ => {} -- cgit 1.4.1-3-g733a5