Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9eb77db

Browse files
committed
Stabilizediv_duration
1 parenta31e686 commit9eb77db

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

‎core/src/time.rs‎

Lines changed: 2 additions & 4 deletions
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‎

Lines changed: 0 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp