From 17234dbb3db8f4715fc0c96c0e5c5444a5980eb9 Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Sun, 11 Apr 2021 21:37:46 -0700 Subject: [PATCH] Pretend Duration::MAX was part of duration_saturating_ops --- library/core/src/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/time.rs b/library/core/src/time.rs index 2219353b055a..7db03367fd53 100644 --- a/library/core/src/time.rs +++ b/library/core/src/time.rs @@ -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