@@ -1010,7 +1010,7 @@ pub(crate) fn hir_attr_lists<'a, I: IntoIterator<Item = &'a hir::Attribute>>(
10101010pub ( crate ) struct CfgInfo {
10111011 hidden_cfg : FxHashSet < Cfg > ,
10121012 current_cfg : Cfg ,
1013- doc_auto_cfg_active : bool ,
1013+ auto_cfg_active : bool ,
10141014 parent_is_doc_cfg : bool ,
10151015}
10161016
@@ -1025,7 +1025,7 @@ impl Default for CfgInfo {
10251025 . into_iter ( )
10261026 . collect ( ) ,
10271027 current_cfg : Cfg :: True ,
1028- doc_auto_cfg_active : true ,
1028+ auto_cfg_active : true ,
10291029 parent_is_doc_cfg : false ,
10301030 }
10311031 }
@@ -1142,7 +1142,7 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
11421142 match & attr. kind {
11431143 MetaItemKind :: Word => {
11441144 if let Some ( first_change) = changed_auto_active_status {
1145- if !cfg_info. doc_auto_cfg_active {
1145+ if !cfg_info. auto_cfg_active {
11461146 tcx. sess . dcx ( ) . struct_span_err (
11471147 vec ! [ first_change, attr. span] ,
11481148 "`auto_cfg` was disabled and enabled more than once on the same item" ,
@@ -1152,12 +1152,12 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
11521152 } else {
11531153 changed_auto_active_status = Some ( attr. span ) ;
11541154 }
1155- cfg_info. doc_auto_cfg_active = true ;
1155+ cfg_info. auto_cfg_active = true ;
11561156 }
11571157 MetaItemKind :: NameValue ( lit) => {
11581158 if let LitKind :: Bool ( value) = lit. kind {
11591159 if let Some ( first_change) = changed_auto_active_status {
1160- if cfg_info. doc_auto_cfg_active != value {
1160+ if cfg_info. auto_cfg_active != value {
11611161 tcx. sess . dcx ( ) . struct_span_err (
11621162 vec ! [ first_change, attr. span] ,
11631163 "`auto_cfg` was disabled and enabled more than once on the same item" ,
@@ -1167,12 +1167,12 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
11671167 } else {
11681168 changed_auto_active_status = Some ( attr. span ) ;
11691169 }
1170- cfg_info. doc_auto_cfg_active = value;
1170+ cfg_info. auto_cfg_active = value;
11711171 }
11721172 }
11731173 MetaItemKind :: List ( sub_attrs) => {
11741174 if let Some ( first_change) = changed_auto_active_status {
1175- if !cfg_info. doc_auto_cfg_active {
1175+ if !cfg_info. auto_cfg_active {
11761176 tcx. sess . dcx ( ) . struct_span_err (
11771177 vec ! [ first_change, attr. span] ,
11781178 "`auto_cfg` was disabled and enabled more than once on the same item" ,
@@ -1183,7 +1183,7 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
11831183 changed_auto_active_status = Some ( attr. span ) ;
11841184 }
11851185 // Whatever happens next, the feature is enabled again.
1186- cfg_info. doc_auto_cfg_active = true ;
1186+ cfg_info. auto_cfg_active = true ;
11871187 for sub_attr in sub_attrs. iter ( ) {
11881188 if let Some ( ident) = sub_attr. ident ( )
11891189 && ( ident. name == sym:: show || ident. name == sym:: hide)
@@ -1241,7 +1241,7 @@ pub(crate) fn extract_cfg_from_attrs<'a, I: Iterator<Item = &'a hir::Attribute>
12411241
12421242 // If `doc(auto_cfg)` feature is disabled and `doc(cfg())` wasn't used, there is nothing
12431243 // to be done here.
1244- if !cfg_info. doc_auto_cfg_active && !cfg_info. parent_is_doc_cfg {
1244+ if !cfg_info. auto_cfg_active && !cfg_info. parent_is_doc_cfg {
12451245 None
12461246 } else if cfg_info. parent_is_doc_cfg {
12471247 if cfg_info. current_cfg == Cfg :: True {
0 commit comments