Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /