Skip to content

Commit 312f3cc

Browse files
GuillaumeGomezRustyYato
authored andcommitted
Fix handling of doc_auto_cfg feature for cfg attributes on glob reexport
1 parent abd85bd commit 312f3cc

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
@@ -2736,7 +2736,7 @@ fn add_without_unwanted_attributes<'hir>(
27362736
if ident == sym::doc {
27372737
filter_doc_attr(normal, is_inline);
27382738
attrs.push((Cow::Owned(attr), import_parent));
2739-
} else if ident != sym::cfg {
2739+
} else if is_inline || ident != sym::cfg {
27402740
// If it's not a `cfg()` attribute, we keep it.
27412741
attrs.push((Cow::Owned(attr), import_parent));
27422742
}

0 commit comments

Comments
 (0)