We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
doc_auto_cfg
cfg
1 parent abd85bd commit 312f3ccCopy full SHA for 312f3cc
src/librustdoc/clean/mod.rs
@@ -2736,7 +2736,7 @@ fn add_without_unwanted_attributes<'hir>(
2736
if ident == sym::doc {
2737
filter_doc_attr(normal, is_inline);
2738
attrs.push((Cow::Owned(attr), import_parent));
2739
- } else if ident != sym::cfg {
+ } else if is_inline || ident != sym::cfg {
2740
// If it's not a `cfg()` attribute, we keep it.
2741
2742
}
0 commit comments