|
1 | 1 | #![allow(non_camel_case_types)] |
2 | 2 | #![allow(non_upper_case_globals)] |
| 3 | +#![allow(unexpected_cfgs)] |
3 | 4 |
|
4 | 5 | use rustc_ast::expand::autodiff_attrs::DiffActivity; |
5 | 6 |
|
@@ -2608,10 +2609,10 @@ extern "C" { |
2608 | 2609 | ) -> *mut c_void; |
2609 | 2610 | } |
2610 | 2611 |
|
2611 | | -#[cfg(AD_FALLBACK)] |
| 2612 | +#[cfg(autodiff_fallback)] |
2612 | 2613 | pub use self::Fallback_AD::*; |
2613 | 2614 |
|
2614 | | -#[cfg(AD_FALLBACK)] |
| 2615 | +#[cfg(autodiff_fallback)] |
2615 | 2616 | pub mod Fallback_AD { |
2616 | 2617 | #![allow(unused_variables)] |
2617 | 2618 | use super::*; |
@@ -2744,9 +2745,9 @@ pub mod Shared_AD { |
2744 | 2745 | use libc::size_t; |
2745 | 2746 | use super::Context; |
2746 | 2747 |
|
2747 | | - #[cfg(AD_FALLBACK)] |
| 2748 | + #[cfg(autodiff_fallback)] |
2748 | 2749 | use super::Fallback_AD::*; |
2749 | | - #[cfg(not(AD_FALLBACK))] |
| 2750 | + #[cfg(not(autodiff_fallback))] |
2750 | 2751 | use super::Enzyme_AD::*; |
2751 | 2752 |
|
2752 | 2753 | use core::fmt; |
@@ -2930,13 +2931,13 @@ pub mod Shared_AD { |
2930 | 2931 | } |
2931 | 2932 | } |
2932 | 2933 |
|
2933 | | -#[cfg(not(AD_FALLBACK))] |
| 2934 | +#[cfg(not(autodiff_fallback))] |
2934 | 2935 | pub use self::Enzyme_AD::*; |
2935 | 2936 |
|
2936 | 2937 | // Enzyme is an optional component, so we do need to provide a fallback when it is ont getting |
2937 | 2938 | // compiled. We deny the usage of #[autodiff(..)] on a higher level, so a placeholder implementation |
2938 | 2939 | // here is completely fine. |
2939 | | -#[cfg(not(AD_FALLBACK))] |
| 2940 | +#[cfg(not(autodiff_fallback))] |
2940 | 2941 | pub mod Enzyme_AD { |
2941 | 2942 | use super::*; |
2942 | 2943 |
|
|
0 commit comments