diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-07 05:50:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-07 05:50:11 +0000 |
commit | 41f4526558b3ce77bfc7a4ac743e39d17b91f2a4 (patch) | |
tree | cf3238b3a0ba7664b03012381ad2d3c43709b918 /debian/patches/u-disable-fp-precision-test-on-i386.patch | |
parent | Merging upstream version 1.75.0+dfsg1. (diff) | |
download | rustc-41f4526558b3ce77bfc7a4ac743e39d17b91f2a4.tar.xz rustc-41f4526558b3ce77bfc7a4ac743e39d17b91f2a4.zip |
Merging debian version 1.75.0+dfsg1-3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/u-disable-fp-precision-test-on-i386.patch')
-rw-r--r-- | debian/patches/u-disable-fp-precision-test-on-i386.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/debian/patches/u-disable-fp-precision-test-on-i386.patch b/debian/patches/u-disable-fp-precision-test-on-i386.patch deleted file mode 100644 index d4845c9d0..000000000 --- a/debian/patches/u-disable-fp-precision-test-on-i386.patch +++ /dev/null @@ -1,26 +0,0 @@ -From: liushuyu <liushuyu011@gmail.com> -Date: Tue, 25 Jul 2023 09:48:12 +0800 -Subject: [PATCH] core library: Disable fpmath tests for i386 ... - -This patch disables the floating-point epsilon test for i386 since -x87 registers are too imprecise and can't produce the expected -results. - -Forwarded: https://github.com/rust-lang/rust/pull/114042 ---- - library/core/src/num/f32.rs | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: rust/library/core/src/num/f32.rs -=================================================================== ---- rust.orig/library/core/src/num/f32.rs -+++ rust/library/core/src/num/f32.rs -@@ -800,7 +800,7 @@ impl f32 { - /// let angle = std::f32::consts::PI; - /// - /// let abs_difference = (angle.to_degrees() - 180.0).abs(); -- /// -+ /// # #[cfg(not(target_arch = "x86"))] - /// assert!(abs_difference <= f32::EPSILON); - /// ``` - #[must_use = "this returns the result of the operation, \ |