@@ -620,13 +620,14 @@ impl Duration { |
|
|
620 |
620 |
/// Basic usage: |
621 |
621 |
/// |
622 |
622 |
/// ``` |
623 |
|
- /// #![feature(duration_abs_diff)] |
624 |
623 |
/// use std::time::Duration; |
625 |
624 |
/// |
626 |
625 |
/// assert_eq!(Duration::new(100, 0).abs_diff(Duration::new(80, 0)), Duration::new(20, 0)); |
627 |
626 |
/// assert_eq!(Duration::new(100, 400_000_000).abs_diff(Duration::new(110, 0)), Duration::new(9, 600_000_000)); |
628 |
627 |
/// ``` |
629 |
|
- #[unstable(feature = "duration_abs_diff", issue = "117618")] |
|
628 |
+ #[stable(feature = "duration_abs_diff", since = "CURRENT_RUSTC_VERSION")] |
|
629 |
+#[rustc_const_stable(feature = "duration_abs_diff", since = "CURRENT_RUSTC_VERSION")] |
|
630 |
+#[rustc_allow_const_fn_unstable(const_option)] |
630 |
631 |
#[must_use = "this returns the result of the operation, \ |
631 |
632 |
without modifying the original"] |
632 |
633 |
#[inline] |