]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #84120 - workingjubilee:stabilize-duration-max, r=m-ou-se
authorMara Bos <m-ou.se@m-ou.se>
Mon, 26 Apr 2021 19:06:46 +0000 (21:06 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 19:06:46 +0000 (21:06 +0200)
commitfb1502d5704fca76e63416663f64c6f89a52942b
treeeebdd3588c30ae6e7aa9b3f7566547a34a666ee0
parent154858c4308d771e29ad90057bf199867c271d09
parent8278380047c05539daf404adc17018de4570ddde
Rollup merge of #84120 - workingjubilee:stabilize-duration-max, r=m-ou-se

Stabilize Duration::MAX

Following the suggested direction from https://github.com/rust-lang/rust/issues/76416#issuecomment-817278338, this PR proposes that `Duration::MAX` should have been part of the `duration_saturating_ops` feature flag all along, having been

0. heavily referenced by that feature flag
1. an odd duck next to most of `duration_constants`, as I expressed in https://github.com/rust-lang/rust/issues/57391#issuecomment-717681193
2. introduced in #76114 which added `duration_saturating_ops`

and accordingly should be folded into `duration_saturating_ops` and therefore stabilized.

r? `@m-ou-se`
library/core/src/time.rs