Skip to content

Commit 392b710

Browse files
Support cfg_attr_trace
1 parent 9e92911 commit 392b710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
11011101
'main: for attr in attrs {
11021102
let Some(ident) = attr.ident() else { continue };
11031103
match ident.name {
1104-
sym::cfg if enable_auto_cfg => {
1104+
sym::cfg | sym::cfg_attr_trace if enable_auto_cfg => {
11051105
if let Some(attr) = single(attr.meta_item_list()?)
11061106
&& let Some(new_cfg) =
11071107
Cfg::parse_without(attr.meta_item()?, &cfg_info.hidden_cfg).ok().flatten()

0 commit comments

Comments
 (0)