Skip to content

Commit 76469a5

Browse files
committed
resolve type mismatches
1 parent 10e9234 commit 76469a5

File tree

1 file changed

+12
-12
lines changed
  • library/coretests/tests/floats

1 file changed

+12
-12
lines changed

library/coretests/tests/floats/mod.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ float_test! {
15571557
name: exp,
15581558
attrs: {
15591559
const: #[cfg(false)],
1560-
f16: #[cfg(all(not(miri), target_has_reliable_f16_math, not(bootstrap_cg_clif)))],
1560+
f16: #[cfg(all(not(miri), target_has_reliable_f16_math))],
15611561
f128: #[cfg(all(not(miri), target_has_reliable_f128_math))],
15621562
},
15631563
test<Float> {
@@ -1578,7 +1578,7 @@ float_test! {
15781578
name: exp2,
15791579
attrs: {
15801580
const: #[cfg(false)],
1581-
f16: #[cfg(all(not(miri), target_has_reliable_f16_math, not(bootstrap_cg_clif)))],
1581+
f16: #[cfg(all(not(miri), target_has_reliable_f16_math))],
15821582
f128: #[cfg(all(not(miri), target_has_reliable_f128_math))],
15831583
},
15841584
test<Float> {
@@ -1598,7 +1598,7 @@ float_test! {
15981598
name: ln,
15991599
attrs: {
16001600
const: #[cfg(false)],
1601-
f16: #[cfg(all(not(miri), target_has_reliable_f16_math, not(bootstrap_cg_clif)))],
1601+
f16: #[cfg(all(not(miri), target_has_reliable_f16_math))],
16021602
f128: #[cfg(all(not(miri), target_has_reliable_f128_math))],
16031603
},
16041604
test<Float> {
@@ -1620,7 +1620,7 @@ float_test! {
16201620
name: log_generic,
16211621
attrs: {
16221622
const: #[cfg(false)],
1623-
f16: #[cfg(all(not(miri), target_has_reliable_f16_math, not(bootstrap_cg_clif)))],
1623+
f16: #[cfg(all(not(miri), target_has_reliable_f16_math))],
16241624
f128: #[cfg(all(not(miri), target_has_reliable_f128_math))],
16251625
},
16261626
test<Float> {
@@ -1645,7 +1645,7 @@ float_test! {
16451645
name: log2,
16461646
attrs: {
16471647
const: #[cfg(false)],
1648-
f16: #[cfg(all(not(miri), target_has_reliable_f16_math, not(bootstrap_cg_clif)))],
1648+
f16: #[cfg(all(not(miri), target_has_reliable_f16_math))],
16491649
f128: #[cfg(all(not(miri), target_has_reliable_f128_math))],
16501650
},
16511651
test<Float> {
@@ -1668,7 +1668,7 @@ float_test! {
16681668
name: log10,
16691669
attrs: {
16701670
const: #[cfg(false)],
1671-
f16: #[cfg(all(not(miri), target_has_reliable_f16_math, not(bootstrap_cg_clif)))],
1671+
f16: #[cfg(all(not(miri), target_has_reliable_f16_math))],
16721672
f128: #[cfg(all(not(miri), target_has_reliable_f128_math))],
16731673
},
16741674
test<Float> {
@@ -1706,8 +1706,8 @@ float_test! {
17061706
assert_biteq!(neg_inf.asinh(), neg_inf);
17071707
assert!(nan.asinh().is_nan());
17081708
assert!((-0.0 as Float).asinh().is_sign_negative());
1709-
assert_approx_eq!((2.0 as Float).asinh(), 1.443635475178810342493276740273105f128, Float::ASINH_APPROX);
1710-
assert_approx_eq!((-2.0 as Float).asinh(), -1.443635475178810342493276740273105f128, Float::ASINH_APPROX);
1709+
assert_approx_eq!((2.0 as Float).asinh(), 1.443635475178810342493276740273105f128 as Float, Float::ASINH_APPROX);
1710+
assert_approx_eq!((-2.0 as Float).asinh(), -1.443635475178810342493276740273105f128 as Float, Float::ASINH_APPROX);
17111711
}
17121712
}
17131713

@@ -1728,8 +1728,8 @@ float_test! {
17281728
assert_biteq!(inf.acosh(), inf);
17291729
assert!(neg_inf.acosh().is_nan());
17301730
assert!(nan.acosh().is_nan());
1731-
assert_approx_eq!((2.0 as Float).acosh(), 1.31695789692481670862504634730796844f128, Float::ACOSH_APPROX);
1732-
assert_approx_eq!((3.0 as Float).acosh(), 1.76274717403908605046521864995958461f128, Float::ACOSH_APPROX);
1731+
assert_approx_eq!((2.0 as Float).acosh(), 1.31695789692481670862504634730796844f128 as Float, Float::ACOSH_APPROX);
1732+
assert_approx_eq!((3.0 as Float).acosh(), 1.76274717403908605046521864995958461f128 as Float, Float::ACOSH_APPROX);
17331733
}
17341734
}
17351735

@@ -1754,8 +1754,8 @@ float_test! {
17541754
assert!(neg_inf.atanh().is_nan());
17551755
assert!(nan.atanh().is_nan());
17561756

1757-
assert_approx_eq!((0.5 as Float).atanh(), 0.54930614433405484569762261846126285f128, Float::ATANH_APPROX);
1758-
assert_approx_eq!((-0.5 as Float).atanh(), -0.54930614433405484569762261846126285f128, Float::ATANH_APPROX);
1757+
assert_approx_eq!((0.5 as Float).atanh(), 0.54930614433405484569762261846126285f128 as Float, Float::ATANH_APPROX);
1758+
assert_approx_eq!((-0.5 as Float).atanh(), -0.54930614433405484569762261846126285f128 as Float, Float::ATANH_APPROX);
17591759
}
17601760
}
17611761

0 commit comments

Comments
 (0)