Skip to content

Commit 62c0c99

Browse files
committed
Compile test_num_f128 conditionally on reliable_f128_math configuration
1 parent 4d215e2 commit 62c0c99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/std/src/f128/tests.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#![cfg(reliable_f128)]
33

44
use crate::f128::consts;
5-
use crate::num::{FpCategory as Fp, *};
5+
#[cfg(not(reliable_f128))]
6+
use crate::num::*;
7+
use crate::num::FpCategory as Fp;
68

79
// Note these tolerances make sense around zero, but not for more extreme exponents.
810

@@ -52,6 +54,7 @@ macro_rules! assert_f128_biteq {
5254
}
5355

5456
#[test]
57+
#[cfg(reliable_f128_math)]
5558
fn test_num_f128() {
5659
test_num(10f128, 2f128);
5760
}

0 commit comments

Comments
 (0)