Skip to content

Commit 17234db

Browse files
Pretend Duration::MAX was part of duration_saturating_ops
1 parent 5e73bd1 commit 17234db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl Duration {
146146
///
147147
/// assert_eq!(Duration::MAX, Duration::new(u64::MAX, 1_000_000_000 - 1));
148148
/// ```
149-
#[unstable(feature = "duration_constants", issue = "57391")]
149+
#[stable(feature = "duration_saturating_ops", since = "1.53.0")]
150150
pub const MAX: Duration = Duration::new(u64::MAX, NANOS_PER_SEC - 1);
151151

152152
/// Creates a new `Duration` from the specified number of whole seconds and

0 commit comments

Comments
 (0)