diff options
| author | bors <bors@rust-lang.org> | 2023-10-05 13:35:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-05 13:35:18 +0000 |
| commit | cf9fd95b1c278da6069546f305925e6250b19842 (patch) | |
| tree | 6742a579e67eba29564670cbf8a252bbf7a3790d /library/core/src/num | |
| parent | 90f3a6f920df62c02c52b6a2c0e9e43aa029a778 (diff) | |
| parent | 40a52cf55cccd497f4e3d04c6b46aecb7f75f467 (diff) | |
| download | rust-cf9fd95b1c278da6069546f305925e6250b19842.tar.gz rust-cf9fd95b1c278da6069546f305925e6250b19842.zip | |
Auto merge of #114042 - liushuyu:ubuntu/i586-fpmath, r=workingjubilee
core library: Disable fpmath tests for i586 ... This patch disables the floating-point epsilon test for i586 since x87 registers are too imprecise and can't produce the expected results.
Diffstat (limited to 'library/core/src/num')
| -rw-r--r-- | library/core/src/num/f32.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/f32.rs b/library/core/src/num/f32.rs index 23101f369ca..f60626b00dc 100644 --- a/library/core/src/num/f32.rs +++ b/library/core/src/num/f32.rs @@ -858,7 +858,7 @@ impl f32 { /// let angle = std::f32::consts::PI; /// /// let abs_difference = (angle.to_degrees() - 180.0).abs(); - /// + /// # #[cfg(any(not(target_arch = "x86"), target_feature = "sse2"))] /// assert!(abs_difference <= f32::EPSILON); /// ``` #[must_use = "this returns the result of the operation, \ |
