@@ -142,7 +142,7 @@ pub(crate) fn check_target_feature_trait_unsafe(tcx: TyCtxt<'_>, id: LocalDefId,
142142/// Parse the value of the target spec `features` field or `-Ctarget-feature`, also expanding
143143/// implied features, and call the closure for each (expanded) Rust feature. If the list contains
144144/// a syntactically invalid item (not starting with `+`/`-`), the error callback is invoked.
145- fn parse_rust_feature_flag < ' a > (
145+ fn parse_rust_feature_list < ' a > (
146146 sess : & ' a Session ,
147147 features : & ' a str ,
148148 err_callback : impl Fn ( & ' a str ) ,
@@ -245,7 +245,7 @@ pub fn cfg_target_feature<'a, const N: usize>(
245245 let mut enabled_disabled_features = FxHashMap :: default ( ) ;
246246
247247 // Add enabled and remove disabled features.
248- parse_rust_feature_flag (
248+ parse_rust_feature_list (
249249 sess,
250250 & sess. opts . cg . target_feature ,
251251 /* err_callback */
@@ -378,7 +378,7 @@ pub fn target_spec_to_backend_features<'a>(
378378) {
379379 // Compute implied features
380380 let mut rust_features = vec ! [ ] ;
381- parse_rust_feature_flag (
381+ parse_rust_feature_list (
382382 sess,
383383 & sess. target . features ,
384384 /* err_callback */
@@ -409,7 +409,7 @@ pub fn flag_to_backend_features<'a>(
409409) {
410410 // Compute implied features
411411 let mut rust_features = vec ! [ ] ;
412- parse_rust_feature_flag (
412+ parse_rust_feature_list (
413413 sess,
414414 & sess. opts . cg . target_feature ,
415415 /* err_callback */
0 commit comments