Skip to content

Commit ea4a36b

Browse files
Fix handling of doc_auto_cfg feature for cfg attributes on glob reexport
1 parent 11f32b7 commit ea4a36b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2722,7 +2722,7 @@ fn add_without_unwanted_attributes<'hir>(
27222722
if ident == sym::doc {
27232723
filter_doc_attr(normal, is_inline);
27242724
attrs.push((Cow::Owned(attr), import_parent));
2725-
} else if ident != sym::cfg {
2725+
} else if is_inline || ident != sym::cfg {
27262726
// If it's not a `cfg()` attribute, we keep it.
27272727
attrs.push((Cow::Owned(attr), import_parent));
27282728
}

0 commit comments

Comments
 (0)