Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9eb77db

Browse files
committedMay 3, 2024
Stabilize div_duration
1 parent a31e686 commit 9eb77db

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
 

‎core/src/time.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1062,14 +1062,13 @@ impl Duration {
10621062
///
10631063
/// # Examples
10641064
/// ```
1065-
/// #![feature(div_duration)]
10661065
/// use std::time::Duration;
10671066
///
10681067
/// let dur1 = Duration::new(2, 700_000_000);
10691068
/// let dur2 = Duration::new(5, 400_000_000);
10701069
/// assert_eq!(dur1.div_duration_f64(dur2), 0.5);
10711070
/// ```
1072-
#[unstable(feature = "div_duration", issue = "63139")]
1071+
#[stable(feature = "div_duration", since = "1.80.0")]
10731072
#[must_use = "this returns the result of the operation, \
10741073
without modifying the original"]
10751074
#[inline]
@@ -1082,14 +1081,13 @@ impl Duration {
10821081
///
10831082
/// # Examples
10841083
/// ```
1085-
/// #![feature(div_duration)]
10861084
/// use std::time::Duration;
10871085
///
10881086
/// let dur1 = Duration::new(2, 700_000_000);
10891087
/// let dur2 = Duration::new(5, 400_000_000);
10901088
/// assert_eq!(dur1.div_duration_f32(dur2), 0.5);
10911089
/// ```
1092-
#[unstable(feature = "div_duration", issue = "63139")]
1090+
#[stable(feature = "div_duration", since = "1.80.0")]
10931091
#[must_use = "this returns the result of the operation, \
10941092
without modifying the original"]
10951093
#[inline]

‎core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#![feature(core_private_bignum)]
3030
#![feature(core_private_diy_float)]
3131
#![feature(dec2flt)]
32-
#![feature(div_duration)]
3332
#![feature(duration_abs_diff)]
3433
#![feature(duration_consts_float)]
3534
#![feature(duration_constants)]

0 commit comments

Comments
 (0)
Failed to load comments.