Skip to content

Commit

Permalink
de-promote Duration::from_secs
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed May 2, 2020
1 parent dae90c1 commit 58ae4a9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libcore/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 58ae4a9

Please sign in to comment.