Skip to content

Commit fe5c45b

Browse files
committedMay 29, 2018
Auto merge of rust-lang#51144 - tmccombs:unix-epoch-stable, r=Mark-Simulacrum
Stabilize SystemTime::UNIX_EPOCH Fixes rust-lang#49502
2 parents 5ae5361 + 855ec8b commit fe5c45b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/libstd/time.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,14 @@ impl SystemTime {
271271
/// # Examples
272272
///
273273
/// ```no_run
274-
/// #![feature(assoc_unix_epoch)]
275274
/// use std::time::SystemTime;
276275
///
277276
/// match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
278277
/// Ok(n) => println!("1970-01-01 00:00:00 UTC was {} seconds ago!", n.as_secs()),
279278
/// Err(_) => panic!("SystemTime before UNIX EPOCH!"),
280279
/// }
281280
/// ```
282-
#[unstable(feature = "assoc_unix_epoch", issue = "49502")]
281+
#[stable(feature = "assoc_unix_epoch", since = "1.28.0")]
283282
pub const UNIX_EPOCH: SystemTime = UNIX_EPOCH;
284283

285284
/// Returns the system time corresponding to "now".

0 commit comments

Comments
 (0)