Skip to content

Commit

Permalink
Re-export constants from core into std
Browse files Browse the repository at this point in the history
Stjepan Glavina committed Jan 6, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7f7a2e9 commit 72ec5aa
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libstd/lib.rs
Original file line number Diff line number Diff line change
@@ -248,6 +248,7 @@
#![feature(const_cstr_unchecked)]
#![feature(core_intrinsics)]
#![feature(dropck_eyepatch)]
#![feature(duration_constants)]
#![feature(exact_size_is_empty)]
#![feature(external_doc)]
#![feature(fixed_size_array)]
3 changes: 3 additions & 0 deletions src/libstd/time.rs
Original file line number Diff line number Diff line change
@@ -21,6 +21,9 @@ use sys_common::FromInner;
#[stable(feature = "time", since = "1.3.0")]
pub use core::time::Duration;

#[unstable(feature = "duration_constants", issue = "0")]
pub use core::time::{SECOND, MILLISECOND, MICROSECOND, NANOSECOND};

/// A measurement of a monotonically nondecreasing clock.
/// Opaque and useful only with `Duration`.
///

0 comments on commit 72ec5aa

Please sign in to comment.