diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-26 18:59:19 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-31 12:41:20 +0100 |
| commit | cfae43d6380279fb8b6995f9bf29deb490dc2ff4 (patch) | |
| tree | c6125beb14ba113904557170786bc8b424294ae3 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 2bf27e09beb4cd1c5f01369e7086e36b3de04f5c (diff) | |
| download | rust-cfae43d6380279fb8b6995f9bf29deb490dc2ff4.tar.gz rust-cfae43d6380279fb8b6995f9bf29deb490dc2ff4.zip | |
clean up target feature system; most of the toggleability is now handled by the ABI target feature check
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index 0486ae84b82..d4b2260123b 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -728,7 +728,7 @@ pub(crate) fn global_llvm_features( sess.dcx().emit_warn(unknown_feature); } Some((_, stability, _)) => { - if let Err(reason) = stability.toggle_allowed(&sess.target, enable) { + if let Err(reason) = stability.toggle_allowed() { sess.dcx().emit_warn(ForbiddenCTargetFeature { feature, enabled: if enable { "enabled" } else { "disabled" }, |
