Skip to content

Commit

Permalink
Hide implicit target features from diagnostics when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
calebzulawski authored and GuillaumeGomez committed Aug 12, 2024
1 parent e80199c commit 51130e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
let function_features = codegen_fn_attrs
.target_features
.iter()
.map(|features| features.as_str())
.map(|features| features.name.as_str())
.collect::<Vec<&str>>();

if let Some(features) = check_tied_features(
Expand Down

0 comments on commit 51130e1

Please sign in to comment.