@@ -221,7 +221,6 @@ impl Instant {
221
221
/// # Examples
222
222
///
223
223
/// ```no_run
224
- /// #![feature(checked_duration_since)]
225
224
/// use std::time::{Duration, Instant};
226
225
/// use std::thread::sleep;
227
226
///
@@ -231,7 +230,7 @@ impl Instant {
231
230
/// println!("{:?}", new_now.checked_duration_since(now));
232
231
/// println!("{:?}", now.checked_duration_since(new_now)); // None
233
232
/// ```
234
- #[ unstable ( feature = "checked_duration_since" , issue = "58402 " ) ]
233
+ #[ stable ( feature = "checked_duration_since" , since = "1.39.0 " ) ]
235
234
pub fn checked_duration_since ( & self , earlier : Instant ) -> Option < Duration > {
236
235
self . 0 . checked_sub_instant ( & earlier. 0 )
237
236
}
@@ -242,7 +241,6 @@ impl Instant {
242
241
/// # Examples
243
242
///
244
243
/// ```no_run
245
- /// #![feature(checked_duration_since)]
246
244
/// use std::time::{Duration, Instant};
247
245
/// use std::thread::sleep;
248
246
///
@@ -252,7 +250,7 @@ impl Instant {
252
250
/// println!("{:?}", new_now.saturating_duration_since(now));
253
251
/// println!("{:?}", now.saturating_duration_since(new_now)); // 0ns
254
252
/// ```
255
- #[ unstable ( feature = "checked_duration_since" , issue = "58402 " ) ]
253
+ #[ stable ( feature = "checked_duration_since" , since = "1.39.0 " ) ]
256
254
pub fn saturating_duration_since ( & self , earlier : Instant ) -> Duration {
257
255
self . checked_duration_since ( earlier) . unwrap_or ( Duration :: new ( 0 , 0 ) )
258
256
}
0 commit comments