about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-02-23 09:25:29 +0100
committerGitHub <noreply@github.com>2019-02-23 09:25:29 +0100
commit73e661a0a5acf98ae932cceca00212578aeeea33 (patch)
tree1214bd97d1bc2ab3a7a5709c667c5b8f7e225fcf /src/libstd
parent18dd2d2fbe3cacc4bea71c0a7df831a62605a367 (diff)
parentc6d24cd50435f008cc8bf1a00a656b36ca892b5d (diff)
downloadrust-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.rs3
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`.
 ///