Skip to content
Permalink
Browse files

no longer promote non-pattern const functions

  • Loading branch information
RalfJung committed Dec 22, 2019
1 parent 9ff30a7 commit 368ac73c11662dbb860db178dc170768078b282d
Showing with 0 additions and 3 deletions.
  1. +0 −3 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 {

0 comments on commit 368ac73

Please sign in to comment.
You can’t perform that action at this time.