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 {
229
229
/// Unstable module containing the unstable `autodiff` macro.
230
230
pub mod autodiff {
231
231
#[ unstable( feature = "autodiff" , issue = "124509" ) ]
232
- pub use crate :: macros:: builtin:: autodiff ;
232
+ pub use crate :: macros:: builtin:: { autodiff_forward , autodiff_reverse } ;
233
233
}
234
234
235
235
#[ unstable( feature = "contracts" , issue = "128044" ) ]
Original file line number Diff line number Diff line change @@ -1536,6 +1536,20 @@ pub(crate) mod builtin {
1536
1536
/* compiler built-in */
1537
1537
}
1538
1538
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
+
1539
1553
/// Asserts that a boolean expression is `true` at runtime.
1540
1554
///
1541
1555
/// This will invoke the [`panic!`] macro if the provided expression cannot be
You can’t perform that action at this time.
0 commit comments