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.
1 parent 23fe4a0 commit 0c06bceCopy full SHA for 0c06bce
src/librustdoc/clean/cfg.rs
@@ -740,11 +740,6 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
740
continue;
741
} else if !cfg_info.parent_is_doc_cfg
742
&& let hir::Attribute::Parsed(AttributeKind::CfgTrace(cfgs, _)) = attr
743
-
744
- // && let Some(ident) = attr.ident()
745
- // && matches!(ident.name, sym::cfg | sym::cfg_trace)
746
- // && let Some(attr) = single(attr.meta_item_list()?)
747
- // && let Ok(new_cfg) = Cfg::parse(&attr)
748
{
749
for new_cfg in cfgs {
750
cfg_info.current_cfg &= Cfg(new_cfg.clone());
0 commit comments