Fix handling of doc_auto_cfg
feature for cfg
attributes on glob reexport
This commit is contained in:
parent
11f32b73e0
commit
ea4a36b474
@ -2722,7 +2722,7 @@ fn add_without_unwanted_attributes<'hir>(
|
||||
if ident == sym::doc {
|
||||
filter_doc_attr(normal, is_inline);
|
||||
attrs.push((Cow::Owned(attr), import_parent));
|
||||
} else if ident != sym::cfg {
|
||||
} else if is_inline || ident != sym::cfg {
|
||||
// If it's not a `cfg()` attribute, we keep it.
|
||||
attrs.push((Cow::Owned(attr), import_parent));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user