@@ -992,7 +992,7 @@ pub(crate) fn hir_attr_lists<'a, I: IntoIterator<Item = &'a hir::Attribute>>(
992992pub ( crate ) struct CfgInfo {
993993 hidden_cfg : FxHashSet < Cfg > ,
994994 current_cfg : Cfg ,
995- doc_auto_cfg_active : bool ,
995+ auto_cfg_active : bool ,
996996 parent_is_doc_cfg : bool ,
997997}
998998
@@ -1007,7 +1007,7 @@ impl Default for CfgInfo {
10071007 . into_iter ( )
10081008 . collect ( ) ,
10091009 current_cfg : Cfg :: True ,
1010- doc_auto_cfg_active : true ,
1010+ auto_cfg_active : true ,
10111011 parent_is_doc_cfg : false ,
10121012 }
10131013 }
@@ -1131,7 +1131,7 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
11311131 match & attr. kind {
11321132 MetaItemKind :: Word => {
11331133 if let Some ( first_change) = changed_auto_active_status {
1134- if !cfg_info. doc_auto_cfg_active {
1134+ if !cfg_info. auto_cfg_active {
11351135 tcx. sess . dcx ( ) . struct_span_err (
11361136 vec ! [ first_change, attr. span] ,
11371137 "`auto_cfg` was disabled and enabled more than once on the same item" ,
@@ -1141,12 +1141,12 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
11411141 } else {
11421142 changed_auto_active_status = Some ( attr. span ) ;
11431143 }
1144- cfg_info. doc_auto_cfg_active = true ;
1144+ cfg_info. auto_cfg_active = true ;
11451145 }
11461146 MetaItemKind :: NameValue ( lit) => {
11471147 if let LitKind :: Bool ( value) = lit. kind {
11481148 if let Some ( first_change) = changed_auto_active_status {
1149- if cfg_info. doc_auto_cfg_active != value {
1149+ if cfg_info. auto_cfg_active != value {
11501150 tcx. sess . dcx ( ) . struct_span_err (
11511151 vec ! [ first_change, attr. span] ,
11521152 "`auto_cfg` was disabled and enabled more than once on the same item" ,
@@ -1156,12 +1156,12 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
11561156 } else {
11571157 changed_auto_active_status = Some ( attr. span ) ;
11581158 }
1159- cfg_info. doc_auto_cfg_active = value;
1159+ cfg_info. auto_cfg_active = value;
11601160 }
11611161 }
11621162 MetaItemKind :: List ( sub_attrs) => {
11631163 if let Some ( first_change) = changed_auto_active_status {
1164- if !cfg_info. doc_auto_cfg_active {
1164+ if !cfg_info. auto_cfg_active {
11651165 tcx. sess . dcx ( ) . struct_span_err (
11661166 vec ! [ first_change, attr. span] ,
11671167 "`auto_cfg` was disabled and enabled more than once on the same item" ,
@@ -1172,7 +1172,7 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
11721172 changed_auto_active_status = Some ( attr. span ) ;
11731173 }
11741174 // Whatever happens next, the feature is enabled again.
1175- cfg_info. doc_auto_cfg_active = true ;
1175+ cfg_info. auto_cfg_active = true ;
11761176 for sub_attr in sub_attrs. iter ( ) {
11771177 if let Some ( ident) = sub_attr. ident ( )
11781178 && ( ident. name == sym:: show || ident. name == sym:: hide)
@@ -1231,7 +1231,7 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
12311231
12321232 // If `doc(auto_cfg)` feature is disabled and `doc(cfg())` wasn't used, there is nothing
12331233 // to be done here.
1234- if !cfg_info. doc_auto_cfg_active && !cfg_info. parent_is_doc_cfg {
1234+ if !cfg_info. auto_cfg_active && !cfg_info. parent_is_doc_cfg {
12351235 None
12361236 } else if cfg_info. parent_is_doc_cfg {
12371237 if cfg_info. current_cfg == Cfg :: True {
0 commit comments