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 11f32b7 commit ea4a36bCopy full SHA for ea4a36b
src/librustdoc/clean/mod.rs
@@ -2722,7 +2722,7 @@ fn add_without_unwanted_attributes<'hir>(
2722
if ident == sym::doc {
2723
filter_doc_attr(normal, is_inline);
2724
attrs.push((Cow::Owned(attr), import_parent));
2725
- } else if ident != sym::cfg {
+ } else if is_inline || ident != sym::cfg {
2726
// If it's not a `cfg()` attribute, we keep it.
2727
2728
}
0 commit comments