about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-09-20 13:06:53 +0000
committerGitHub <noreply@github.com>2025-09-20 13:06:53 +0000
commitad7640452783d3fe10fffaace9389b09f7cdea7b (patch)
tree2168626af4efa7646b210b6549460876727258b9 /compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs
parent0dac2f06fa6f7edc166edf12831902f909ba7207 (diff)
parent5c2320380d4e412348fede00c70bfb9ae4e85d86 (diff)
downloadrust-ad7640452783d3fe10fffaace9389b09f7cdea7b.tar.gz
rust-ad7640452783d3fe10fffaace9389b09f7cdea7b.zip
Merge pull request #4598 from rust-lang/rustup-2025-09-20
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs
index 56d756e52cc..695435eb6da 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs
@@ -59,10 +59,10 @@ pub(crate) enum LLVMRustVerifierFailureAction {
     LLVMReturnStatusAction = 2,
 }
 
-#[cfg(llvm_enzyme)]
+#[cfg(feature = "llvm_enzyme")]
 pub(crate) use self::Enzyme_AD::*;
 
-#[cfg(llvm_enzyme)]
+#[cfg(feature = "llvm_enzyme")]
 pub(crate) mod Enzyme_AD {
     use std::ffi::{CString, c_char};
 
@@ -134,10 +134,10 @@ pub(crate) mod Enzyme_AD {
     }
 }
 
-#[cfg(not(llvm_enzyme))]
+#[cfg(not(feature = "llvm_enzyme"))]
 pub(crate) use self::Fallback_AD::*;
 
-#[cfg(not(llvm_enzyme))]
+#[cfg(not(feature = "llvm_enzyme"))]
 pub(crate) mod Fallback_AD {
     #![allow(unused_variables)]