diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-02-23 09:25:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-23 09:25:29 +0100 |
| commit | 73e661a0a5acf98ae932cceca00212578aeeea33 (patch) | |
| tree | 1214bd97d1bc2ab3a7a5709c667c5b8f7e225fcf /src/libstd | |
| parent | 18dd2d2fbe3cacc4bea71c0a7df831a62605a367 (diff) | |
| parent | c6d24cd50435f008cc8bf1a00a656b36ca892b5d (diff) | |
| download | rust-73e661a0a5acf98ae932cceca00212578aeeea33.tar.gz rust-73e661a0a5acf98ae932cceca00212578aeeea33.zip | |
Rollup merge of #58595 - stjepang:make-duration-consts-associated, r=oli-obk
Turn duration consts into associated consts As suggested in https://github.com/rust-lang/rust/issues/57391#issuecomment-459658236, I'm moving `Duration` constants (`SECOND`, `MILLISECOND` and so on; currently behind unstable `duration_constants` feature) into the `impl Duration` block. cc @frewsxcv @SimonSapin
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/time.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libstd/time.rs b/src/libstd/time.rs index e1c2b2b1d4f..e1f5e1fcb93 100644 --- a/src/libstd/time.rs +++ b/src/libstd/time.rs @@ -23,9 +23,6 @@ use sys_common::mutex::Mutex; #[stable(feature = "time", since = "1.3.0")] pub use core::time::Duration; -#[unstable(feature = "duration_constants", issue = "57391")] -pub use core::time::{SECOND, MILLISECOND, MICROSECOND, NANOSECOND}; - /// A measurement of a monotonically nondecreasing clock. /// Opaque and useful only with `Duration`. /// |
