Skip to content

Commit af8b6b6

Browse files
committed
add compat note about instant changes
1 parent 9c0de7b commit af8b6b6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

RELEASES.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Libraries
2727
---------
2828
- [Guarantee call order for `sort_by_cached_key`][89621]
2929
- [Improve `Duration::try_from_secs_f32`/`f64` accuracy by directly processing exponent and mantissa][90247]
30-
- [Make `Instant::{duration_since, elapsed, sub}` saturating and remove workarounds][89926]
30+
- [Make `Instant::{duration_since, elapsed, sub}` saturating][89926]
31+
- [Remove non-monotonic clocks workarounds in `Instant::now`][89926]
3132
- [Change PhantomData type for `BuildHasherDefault` (and more)][92630]
3233

3334
Stabilized APIs
@@ -75,6 +76,14 @@ Misc
7576
Compatibility Notes
7677
-------------------
7778
- [Remove compiler-rt linking hack on Android][83822]
79+
- [Mitigations for platforms with non-monotonic clocks have been removed from
80+
`Instant::now`][89926]. On platforms that don't provide monotonic clocks, an
81+
instant is not guaranteed to be greater than an earlier instant anymore.
82+
- [`Instant::{duration_since, elapsed, sub}` do not panic anymore on underflow,
83+
saturating to `0` instead][89926]. In the real world the panic happened mostly
84+
on platforms with buggy monotonic clock implementations rather than catching
85+
programming errors like reversing the start and end times. Such programming
86+
errors will now results in `0` rather than a panic.
7887
- In a future release we're planning to increase the baseline requirements for
7988
the Linux kernel to version 3.2, and for glibc to version 2.17. We'd love
8089
your feedback in [PR #95026][95026].

0 commit comments

Comments
 (0)