@@ -124,14 +124,13 @@ impl Duration {
124124 /// # Examples
125125 ///
126126 /// ```
127- /// #![feature(duration_zero)]
128127 /// use std::time::Duration;
129128 ///
130129 /// let duration = Duration::ZERO;
131130 /// assert!(duration.is_zero());
132131 /// assert_eq!(duration.as_nanos(), 0);
133132 /// ```
134- #[ unstable ( feature = "duration_zero" , issue = "73544 " ) ]
133+ #[ stable ( feature = "duration_zero" , since = "1.53.0 " ) ]
135134 pub const ZERO : Duration = Duration :: from_nanos ( 0 ) ;
136135
137136 /// The maximum duration.
@@ -269,7 +268,6 @@ impl Duration {
269268 /// # Examples
270269 ///
271270 /// ```
272- /// #![feature(duration_zero)]
273271 /// use std::time::Duration;
274272 ///
275273 /// assert!(Duration::ZERO.is_zero());
@@ -281,7 +279,8 @@ impl Duration {
281279 /// assert!(!Duration::from_nanos(1).is_zero());
282280 /// assert!(!Duration::from_secs(1).is_zero());
283281 /// ```
284- #[ unstable( feature = "duration_zero" , issue = "73544" ) ]
282+ #[ stable( feature = "duration_zero" , since = "1.53.0" ) ]
283+ #[ rustc_const_stable( feature = "duration_zero" , since = "1.53.0" ) ]
285284 #[ inline]
286285 pub const fn is_zero ( & self ) -> bool {
287286 self . secs == 0 && self . nanos == 0
@@ -536,7 +535,6 @@ impl Duration {
536535 /// # Examples
537536 ///
538537 /// ```
539- /// #![feature(duration_zero)]
540538 /// use std::time::Duration;
541539 ///
542540 /// assert_eq!(Duration::new(0, 1).saturating_sub(Duration::new(0, 0)), Duration::new(0, 1));
0 commit comments