Skip to content

Commit 3fcddf1

Browse files
authored
Rollup merge of #119782 - RalfJung:rint, r=cuviper
rint intrinsics: caution against actually trying to check for floating-point exceptions
2 parents 4571ef9 + fa5bef8 commit 3fcddf1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/core/src/intrinsics.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1787,6 +1787,8 @@ extern "rust-intrinsic" {
17871787
/// so this rounds half-way cases to the number with an even least significant digit.
17881788
///
17891789
/// May raise an inexact floating-point exception if the argument is not an integer.
1790+
/// However, Rust assumes floating-point exceptions cannot be observed, so this is not something that
1791+
/// can actually be used from Rust code.
17901792
///
17911793
/// The stabilized version of this intrinsic is
17921794
/// [`f32::round_ties_even`](../../std/primitive.f32.html#method.round_ties_even)
@@ -1796,6 +1798,8 @@ extern "rust-intrinsic" {
17961798
/// so this rounds half-way cases to the number with an even least significant digit.
17971799
///
17981800
/// May raise an inexact floating-point exception if the argument is not an integer.
1801+
/// However, Rust assumes floating-point exceptions cannot be observed, so this is not something that
1802+
/// can actually be used from Rust code.
17991803
///
18001804
/// The stabilized version of this intrinsic is
18011805
/// [`f64::round_ties_even`](../../std/primitive.f64.html#method.round_ties_even)

0 commit comments

Comments
 (0)