@@ -373,15 +373,15 @@ impl Duration {
373
373
/// # Examples
374
374
///
375
375
/// ```
376
- /// #![feature(duration_constructors_lite)]
377
376
/// use std::time::Duration;
378
377
///
379
378
/// let duration = Duration::from_hours(6);
380
379
///
381
380
/// assert_eq!(6 * 60 * 60, duration.as_secs());
382
381
/// assert_eq!(0, duration.subsec_nanos());
383
382
/// ```
384
- #[ unstable( feature = "duration_constructors_lite" , issue = "140881" ) ]
383
+ #[ stable( feature = "duration_constructors_lite" , since = "CURRENT_RUSTC_VERSION" ) ]
384
+ #[ rustc_const_stable( feature = "duration_constructors_lite" , since = "CURRENT_RUSTC_VERSION" ) ]
385
385
#[ must_use]
386
386
#[ inline]
387
387
pub const fn from_hours ( hours : u64 ) -> Duration {
@@ -401,15 +401,15 @@ impl Duration {
401
401
/// # Examples
402
402
///
403
403
/// ```
404
- /// #![feature(duration_constructors_lite)]
405
404
/// use std::time::Duration;
406
405
///
407
406
/// let duration = Duration::from_mins(10);
408
407
///
409
408
/// assert_eq!(10 * 60, duration.as_secs());
410
409
/// assert_eq!(0, duration.subsec_nanos());
411
410
/// ```
412
- #[ unstable( feature = "duration_constructors_lite" , issue = "140881" ) ]
411
+ #[ stable( feature = "duration_constructors_lite" , since = "CURRENT_RUSTC_VERSION" ) ]
412
+ #[ rustc_const_stable( feature = "duration_constructors_lite" , since = "CURRENT_RUSTC_VERSION" ) ]
413
413
#[ must_use]
414
414
#[ inline]
415
415
pub const fn from_mins ( mins : u64 ) -> Duration {
0 commit comments