Skip to content

Commit

Permalink
rustc_codegen_llvm: fix a regression where backchain feature ...
Browse files Browse the repository at this point in the history
... can not be correctly gated using #[cfg] macro
  • Loading branch information
liushuyu committed Sep 3, 2024
1 parent d6c8169 commit e98e88b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/rustc_codegen_llvm/src/llvm_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit e98e88b

Please sign in to comment.