diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-02-01 11:45:35 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-02-01 11:45:35 +0100 |
| commit | ea4a36b47492aa28bce16e23b9940d3e5704c39d (patch) | |
| tree | b26c976beb0b12d1c9569cd5b81a457aeed6b89e | |
| parent | 11f32b73e0dc9287e305b5b9980d24aecdc8c17f (diff) | |
| download | rust-ea4a36b47492aa28bce16e23b9940d3e5704c39d.tar.gz rust-ea4a36b47492aa28bce16e23b9940d3e5704c39d.zip | |
Fix handling of `doc_auto_cfg` feature for `cfg` attributes on glob reexport
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index bd1d68e7074..fd1c11c774d 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -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)); } |
