about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorliushuyu <liushuyu011@gmail.com>2024-09-03 12:42:57 -0600
committerliushuyu <liushuyu011@gmail.com>2024-09-03 12:42:57 -0600
commite98e88bfdf810d74540fcc0a464608683a7eacc7 (patch)
tree920dd39755b067dee3a1a6702b08c4d0ae298a31 /compiler/rustc_codegen_llvm/src
parentd6c8169c186ab16a3404cd0d0866674018e8a19e (diff)
downloadrust-e98e88bfdf810d74540fcc0a464608683a7eacc7.tar.gz
rust-e98e88bfdf810d74540fcc0a464608683a7eacc7.zip
rustc_codegen_llvm: fix a regression where backchain feature ...
... can not be correctly gated using #[cfg] macro
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm_util.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs
index 618602ed70f..d55220ba5c3 100644
--- a/compiler/rustc_codegen_llvm/src/llvm_util.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -353,9 +353,7 @@ pub fn target_features(sess: &Session, allow_unstable: bool) -> Vec<Symbol> {
                 None
             }
         })
-        .filter(|feature| {
-            RUSTC_SPECIAL_FEATURES.contains(feature) || features.contains(&Symbol::intern(feature))
-        })
+        .filter(|feature| features.contains(&Symbol::intern(feature)))
         .map(|feature| Symbol::intern(feature))
         .collect()
 }