diff options
| author | Manuel Drehwald <git@manuel.drehwald.info> | 2024-10-11 19:13:31 +0200 |
|---|---|---|
| committer | Manuel Drehwald <git@manuel.drehwald.info> | 2024-10-11 19:13:31 +0200 |
| commit | 624c071b997f3bab0ef086af24f59ebc95f37c59 (patch) | |
| tree | 44091cd44e62db9aa4d0f0b6053de7b84769a5cb /library/std/src | |
| parent | 52fd9983996d9fcfb719749838336be66dee68f9 (diff) | |
| download | rust-624c071b997f3bab0ef086af24f59ebc95f37c59.tar.gz rust-624c071b997f3bab0ef086af24f59ebc95f37c59.zip | |
Single commit implementing the enzyme/autodiff frontend
Co-authored-by: Lorenz Schmidt <bytesnake@mailbox.org>
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/lib.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 65a9aa66c7c..35ed761759b 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -267,6 +267,7 @@ #![allow(unused_features)] // // Features: +#![cfg_attr(not(bootstrap), feature(autodiff))] #![cfg_attr(test, feature(internal_output_capture, print_internals, update_panic_count, rt))] #![cfg_attr( all(target_vendor = "fortanix", target_env = "sgx"), @@ -627,7 +628,13 @@ pub mod simd { #[doc(inline)] pub use crate::std_float::StdFloat; } - +#[cfg(not(bootstrap))] +#[unstable(feature = "autodiff", issue = "124509")] +/// This module provides support for automatic differentiation. +pub mod autodiff { + /// This macro handles automatic differentiation. + pub use core::autodiff::autodiff; +} #[stable(feature = "futures_api", since = "1.36.0")] pub mod task { //! Types and Traits for working with asynchronous tasks. |
