Hide implicit target features from diagnostics when possible

This commit is contained in:
Caleb Zulawski 2024-08-04 23:51:59 -04:00 committed by Guillaume Gomez
parent e80199cc79
commit 51130e10f1

View File

@ -75,7 +75,7 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
let function_features = codegen_fn_attrs let function_features = codegen_fn_attrs
.target_features .target_features
.iter() .iter()
.map(|features| features.as_str()) .map(|features| features.name.as_str())
.collect::<Vec<&str>>(); .collect::<Vec<&str>>();
if let Some(features) = check_tied_features( if let Some(features) = check_tied_features(