Stabilize SystemTime::UNIX_EPOCH
This commit is contained in:
parent
5bf68db6ec
commit
855ec8b6d5
1 changed files with 1 additions and 2 deletions
|
@ -271,7 +271,6 @@ impl SystemTime {
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// #![feature(assoc_unix_epoch)]
|
|
||||||
/// use std::time::SystemTime;
|
/// use std::time::SystemTime;
|
||||||
///
|
///
|
||||||
/// match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
|
/// match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
|
||||||
|
@ -279,7 +278,7 @@ impl SystemTime {
|
||||||
/// Err(_) => panic!("SystemTime before UNIX EPOCH!"),
|
/// 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;
|
pub const UNIX_EPOCH: SystemTime = UNIX_EPOCH;
|
||||||
|
|
||||||
/// Returns the system time corresponding to "now".
|
/// Returns the system time corresponding to "now".
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue