diff options
| author | Ralf Jung <post@ralfj.de> | 2019-12-22 18:33:14 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-12-22 18:37:22 +0100 |
| commit | 368ac73c11662dbb860db178dc170768078b282d (patch) | |
| tree | a476fc3498c17437f1527b931d0f7fc564d79431 | |
| parent | 9ff30a7810c586819a78188c173a7b74adbb9730 (diff) | |
| download | rust-368ac73c11662dbb860db178dc170768078b282d.tar.gz rust-368ac73c11662dbb860db178dc170768078b282d.zip | |
no longer promote non-pattern const functions
| -rw-r--r-- | src/libcore/time.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libcore/time.rs b/src/libcore/time.rs index c1d405239f9..2ece2150e6b 100644 --- a/src/libcore/time.rs +++ b/src/libcore/time.rs @@ -172,7 +172,6 @@ impl Duration { /// ``` #[stable(feature = "duration", since = "1.3.0")] #[inline] - #[rustc_promotable] #[rustc_const_stable(feature = "duration_consts", since = "1.32.0")] pub const fn from_millis(millis: u64) -> Duration { Duration { @@ -195,7 +194,6 @@ impl Duration { /// ``` #[stable(feature = "duration_from_micros", since = "1.27.0")] #[inline] - #[rustc_promotable] #[rustc_const_stable(feature = "duration_consts", since = "1.32.0")] pub const fn from_micros(micros: u64) -> Duration { Duration { @@ -218,7 +216,6 @@ impl Duration { /// ``` #[stable(feature = "duration_extras", since = "1.27.0")] #[inline] - #[rustc_promotable] #[rustc_const_stable(feature = "duration_consts", since = "1.32.0")] pub const fn from_nanos(nanos: u64) -> Duration { Duration { |
