about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/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_llvm/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_llvm/src/attributes.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/attributes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs
index ad38814a68b..876f05c6277 100644
--- a/compiler/rustc_codegen_llvm/src/attributes.rs
+++ b/compiler/rustc_codegen_llvm/src/attributes.rs
@@ -496,7 +496,7 @@ pub fn from_fn_attrs<'ll, 'tcx>(
     to_add.extend(tune_cpu_attr(cx));
 
     let function_features =
-        codegen_fn_attrs.target_features.iter().map(|f| f.as_str()).collect::<Vec<&str>>();
+        codegen_fn_attrs.target_features.iter().map(|f| f.name.as_str()).collect::<Vec<&str>>();
 
     if let Some(f) = llvm_util::check_tied_features(
         cx.tcx.sess,