Pretend Duration::MAX was part of duration_saturating_ops

This commit is contained in:
Jubilee Young 2021-04-11 21:37:46 -07:00
parent 5e73bd1040
commit 17234dbb3d

View File

@ -146,7 +146,7 @@ impl Duration {
///
/// assert_eq!(Duration::MAX, Duration::new(u64::MAX, 1_000_000_000 - 1));
/// ```
#[unstable(feature = "duration_constants", issue = "57391")]
#[stable(feature = "duration_saturating_ops", since = "1.53.0")]
pub const MAX: Duration = Duration::new(u64::MAX, NANOS_PER_SEC - 1);
/// Creates a new `Duration` from the specified number of whole seconds and