Auto merge of #51144 - tmccombs:unix-epoch-stable, r=Mark-Simulacrum
Stabilize SystemTime::UNIX_EPOCH Fixes #49502
This commit is contained in:
commit
fe5c45bb53
@ -271,7 +271,6 @@ impl SystemTime {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// #![feature(assoc_unix_epoch)]
|
||||
/// use std::time::SystemTime;
|
||||
///
|
||||
/// match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
|
||||
@ -279,7 +278,7 @@ impl SystemTime {
|
||||
/// Err(_) => panic!("SystemTime before UNIX EPOCH!"),
|
||||
/// }
|
||||
/// ```
|
||||
#[unstable(feature = "assoc_unix_epoch", issue = "49502")]
|
||||
#[stable(feature = "assoc_unix_epoch", since = "1.28.0")]
|
||||
pub const UNIX_EPOCH: SystemTime = UNIX_EPOCH;
|
||||
|
||||
/// Returns the system time corresponding to "now".
|
||||
|
Loading…
Reference in New Issue
Block a user