Skip to content

Commit b52c2a7

Browse files
committed
fix autodiff build
1 parent ebc82ae commit b52c2a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_builtin_macros/src/autodiff.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! configs (autodiff enabled or disabled), so we have to add cfg's to each import.
44
//! FIXME(ZuseZ4): Remove this once we have a smarter linter.
55
6-
#[cfg(llvm_enzyme)]
6+
//#[cfg(llvm_enzyme)]
77
mod llvm_enzyme {
88
use std::str::FromStr;
99
use std::string::String;
@@ -242,6 +242,7 @@ mod llvm_enzyme {
242242
defaultness: ast::Defaultness::Final,
243243
sig: d_sig,
244244
generics: Generics::default(),
245+
contract: None,
245246
body: Some(d_body),
246247
});
247248
let mut rustc_ad_attr =

0 commit comments

Comments
 (0)