File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ Compatibility Notes
103
103
- [`mem::{zeroed, uninitialised, MaybeUninit}` will now panic when used with types
104
104
that do not allow zero initialization such as `NonZeroU8`.][66059] This was
105
105
previously a warning.
106
+ - [In 1.45.0 (the next release) converting a `f64` to `u32` using the `as`
107
+ operator has been defined as a saturating operation.][71269] This was previously
108
+ undefined behaviour, you can use the `{f64, f32}::to_int_unchecked` methods to
109
+ continue using the current behaviour which may desirable in rare performance
110
+ sensitive situations.
106
111
107
112
Internal Only
108
113
-------------
@@ -127,6 +132,7 @@ related tools.
127
132
[70048]: https://github.com/rust-lang/rust/pull/70048/
128
133
[70081]: https://github.com/rust-lang/rust/pull/70081/
129
134
[70156]: https://github.com/rust-lang/rust/pull/70156/
135
+ [71269]: https://github.com/rust-lang/rust/pull/71269/
130
136
[69838]: https://github.com/rust-lang/rust/pull/69838/
131
137
[69929]: https://github.com/rust-lang/rust/pull/69929/
132
138
[69661]: https://github.com/rust-lang/rust/pull/69661/
You can’t perform that action at this time.
0 commit comments