We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3973bab commit 7d26cecCopy full SHA for 7d26cec
src/cast.rs
@@ -752,8 +752,8 @@ impl<T: NumCast> NumCast for Wrapping<T> {
752
///
753
/// # Safety
754
755
-/// Currently, some uses of the `as` operator are not entirely safe.
756
-/// In particular, it is undefined behavior if:
+/// **In Rust versions before 1.45.0**, some uses of the `as` operator were not entirely safe.
+/// In particular, it was undefined behavior if:
757
758
/// - A truncated floating point value cannot fit in the target integer
759
/// type ([#10184](https://github.com/rust-lang/rust/issues/10184));
0 commit comments