@@ -245,15 +245,15 @@ impl Instant {
245
245
/// Returns `Some(t)` where `t` is the time `self + duration` if `t` can be represented as
246
246
/// `Instant` (which means it's inside the bounds of the underlying data structure), `None`
247
247
/// otherwise.
248
- #[ unstable ( feature = "time_checked_add" , issue = "55940 " ) ]
248
+ #[ stable ( feature = "time_checked_add" , since = "1.34.0 " ) ]
249
249
pub fn checked_add ( & self , duration : Duration ) -> Option < Instant > {
250
250
self . 0 . checked_add_duration ( & duration) . map ( |t| Instant ( t) )
251
251
}
252
252
253
253
/// Returns `Some(t)` where `t` is the time `self - duration` if `t` can be represented as
254
254
/// `Instant` (which means it's inside the bounds of the underlying data structure), `None`
255
255
/// otherwise.
256
- #[ unstable ( feature = "time_checked_add" , issue = "55940 " ) ]
256
+ #[ stable ( feature = "time_checked_add" , since = "1.34.0 " ) ]
257
257
pub fn checked_sub ( & self , duration : Duration ) -> Option < Instant > {
258
258
self . 0 . checked_sub_duration ( & duration) . map ( |t| Instant ( t) )
259
259
}
@@ -418,15 +418,15 @@ impl SystemTime {
418
418
/// Returns `Some(t)` where `t` is the time `self + duration` if `t` can be represented as
419
419
/// `SystemTime` (which means it's inside the bounds of the underlying data structure), `None`
420
420
/// otherwise.
421
- #[ unstable ( feature = "time_checked_add" , issue = "55940 " ) ]
421
+ #[ stable ( feature = "time_checked_add" , since = "1.34.0 " ) ]
422
422
pub fn checked_add ( & self , duration : Duration ) -> Option < SystemTime > {
423
423
self . 0 . checked_add_duration ( & duration) . map ( |t| SystemTime ( t) )
424
424
}
425
425
426
426
/// Returns `Some(t)` where `t` is the time `self - duration` if `t` can be represented as
427
427
/// `SystemTime` (which means it's inside the bounds of the underlying data structure), `None`
428
428
/// otherwise.
429
- #[ unstable ( feature = "time_checked_add" , issue = "55940 " ) ]
429
+ #[ stable ( feature = "time_checked_add" , since = "1.34.0 " ) ]
430
430
pub fn checked_sub ( & self , duration : Duration ) -> Option < SystemTime > {
431
431
self . 0 . checked_sub_duration ( & duration) . map ( |t| SystemTime ( t) )
432
432
}
0 commit comments