de-promote Duration::from_secs

This commit is contained in:
Ralf Jung 2020-05-02 12:13:27 +02:00
parent dae90c1959
commit 58ae4a9a53

View file

@ -152,7 +152,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_secs(secs: u64) -> Duration {
Duration { secs, nanos: 0 }