Skip to content

Commit 368ac73

Browse files
committed
no longer promote non-pattern const functions
1 parent 9ff30a7 commit 368ac73

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/libcore/time.rs

-3
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ impl Duration {
172172
/// ```
173173
#[stable(feature = "duration", since = "1.3.0")]
174174
#[inline]
175-
#[rustc_promotable]
176175
#[rustc_const_stable(feature = "duration_consts", since = "1.32.0")]
177176
pub const fn from_millis(millis: u64) -> Duration {
178177
Duration {
@@ -195,7 +194,6 @@ impl Duration {
195194
/// ```
196195
#[stable(feature = "duration_from_micros", since = "1.27.0")]
197196
#[inline]
198-
#[rustc_promotable]
199197
#[rustc_const_stable(feature = "duration_consts", since = "1.32.0")]
200198
pub const fn from_micros(micros: u64) -> Duration {
201199
Duration {
@@ -218,7 +216,6 @@ impl Duration {
218216
/// ```
219217
#[stable(feature = "duration_extras", since = "1.27.0")]
220218
#[inline]
221-
#[rustc_promotable]
222219
#[rustc_const_stable(feature = "duration_consts", since = "1.32.0")]
223220
pub const fn from_nanos(nanos: u64) -> Duration {
224221
Duration {

0 commit comments

Comments
 (0)