@@ -1529,17 +1529,6 @@ pub(crate) mod builtin {
1529
1529
/// - `INPUT_ACTIVITIES`: Specifies one valid activity for each input parameter.
1530
1530
/// - `OUTPUT_ACTIVITY`: Must not be set if the function implicitly returns nothing
1531
1531
/// (or explicitly returns `-> ()`). Otherwise, it must be set to one of the allowed activities.
1532
- ///
1533
- /// # Example
1534
- ///
1535
- /// ```rust
1536
- /// use std::autodiff::autodiff_forward;
1537
- ///
1538
- /// #[autodiff_forward(df, Dual, Dual, Dual)]
1539
- /// fn f(x: f64, y: f64) -> f64 {
1540
- /// x * y
1541
- /// }
1542
- /// ```
1543
1532
#[ unstable( feature = "autodiff" , issue = "124509" ) ]
1544
1533
#[ allow_internal_unstable( rustc_attrs) ]
1545
1534
#[ rustc_builtin_macro]
@@ -1559,17 +1548,6 @@ pub(crate) mod builtin {
1559
1548
/// - `INPUT_ACTIVITIES`: Specifies one valid activity for each input parameter.
1560
1549
/// - `OUTPUT_ACTIVITY`: Must not be set if the function implicitly returns nothing
1561
1550
/// (or explicitly returns `-> ()`). Otherwise, it must be set to one of the allowed activities.
1562
- ///
1563
- /// # Example
1564
- ///
1565
- /// ```rust
1566
- /// use std::autodiff::autodiff_reverse;
1567
- ///
1568
- /// #[autodiff_reverse(df, Active, Active, Active)]
1569
- /// fn f(x: f64, y: f64) -> f64 {
1570
- /// x * y
1571
- /// }
1572
- /// ```
1573
1551
#[ unstable( feature = "autodiff" , issue = "124509" ) ]
1574
1552
#[ allow_internal_unstable( rustc_attrs) ]
1575
1553
#[ rustc_builtin_macro]
0 commit comments