File tree 1 file changed +2
-4
lines changed
compiler/rustc_feature/src
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,7 @@ macro_rules! declare_features {
116
116
sym:: $feature => status_to_enum!( $status) == FeatureStatus :: Incomplete ,
117
117
) *
118
118
// accepted and removed features aren't in this file but are never incomplete
119
- _ if self . declared_lang_features. iter( ) . any( |f| f. 0 == feature) => false ,
120
- _ if self . declared_lib_features. iter( ) . any( |f| f. 0 == feature) => false ,
119
+ _ if self . declared_features. contains( & feature) => false ,
121
120
_ => panic!( "`{}` was not listed in `declare_features`" , feature) ,
122
121
}
123
122
}
@@ -132,8 +131,7 @@ macro_rules! declare_features {
132
131
) *
133
132
// accepted and removed features aren't in this file but are never internal
134
133
// (a removed feature might have been internal, but it doesn't matter anymore)
135
- _ if self . declared_lang_features. iter( ) . any( |f| f. 0 == feature) => false ,
136
- _ if self . declared_lib_features. iter( ) . any( |f| f. 0 == feature) => false ,
134
+ _ if self . declared_features. contains( & feature) => false ,
137
135
_ => panic!( "`{}` was not listed in `declare_features`" , feature) ,
138
136
}
139
137
}
You can’t perform that action at this time.
0 commit comments