File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ pub mod assert_matches {
229229/// Unstable module containing the unstable `autodiff` macro.
230230pub mod autodiff {
231231 #[ unstable( feature = "autodiff" , issue = "124509" ) ]
232- pub use crate :: macros:: builtin:: autodiff ;
232+ pub use crate :: macros:: builtin:: { autodiff_forward , autodiff_reverse } ;
233233}
234234
235235#[ unstable( feature = "contracts" , issue = "128044" ) ]
Original file line number Diff line number Diff line change @@ -1536,6 +1536,20 @@ pub(crate) mod builtin {
15361536 /* compiler built-in */
15371537 }
15381538
1539+ #[ unstable( feature = "autodiff" , issue = "124509" ) ]
1540+ #[ allow_internal_unstable( rustc_attrs) ]
1541+ #[ rustc_builtin_macro]
1542+ pub macro autodiff_forward( $item: item) {
1543+ /* compiler built-in */
1544+ }
1545+
1546+ #[ unstable( feature = "autodiff" , issue = "124509" ) ]
1547+ #[ allow_internal_unstable( rustc_attrs) ]
1548+ #[ rustc_builtin_macro]
1549+ pub macro autodiff_reverse( $item: item) {
1550+ /* compiler built-in */
1551+ }
1552+
15391553 /// Asserts that a boolean expression is `true` at runtime.
15401554 ///
15411555 /// This will invoke the [`panic!`] macro if the provided expression cannot be
You can’t perform that action at this time.
0 commit comments