about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/attributes.rs
diff options
context:
space:
mode:
authorCaleb Zulawski <caleb.zulawski@gmail.com>2024-08-04 23:51:59 -0400
committerCaleb Zulawski <caleb.zulawski@gmail.com>2024-08-07 00:43:52 -0400
commit83276f568032f14b1af7e5cd9f7d928734af8d09 (patch)
treef137dd36c2b2121ecf72e267ec6fc2d7ba87cf73 /compiler/rustc_codegen_gcc/src/attributes.rs
parent6b96a60611c5edaa107b109b5a50e58a64a33fc2 (diff)
downloadrust-83276f568032f14b1af7e5cd9f7d928734af8d09.tar.gz
rust-83276f568032f14b1af7e5cd9f7d928734af8d09.zip
Hide implicit target features from diagnostics when possible
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/attributes.rs')
-rw-r--r--compiler/rustc_codegen_gcc/src/attributes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/attributes.rs b/compiler/rustc_codegen_gcc/src/attributes.rs
index e521551304e..5fdf2680aac 100644
--- a/compiler/rustc_codegen_gcc/src/attributes.rs
+++ b/compiler/rustc_codegen_gcc/src/attributes.rs
@@ -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(