Skip to content

Commit 7c2f3bc

Browse files
committed
Assume has_copysign
1 parent 84e935b commit 7c2f3bc

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

build.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
use std::env;
2-
31
fn main() {
42
let ac = autocfg::new();
53

6-
if env::var_os("CARGO_FEATURE_STD").is_some() {
7-
ac.emit_expression_cfg("1f64.copysign(-1f64)", "has_copysign");
8-
}
94
ac.emit_expression_cfg("1f64.is_subnormal()", "has_is_subnormal");
105
ac.emit_expression_cfg("1f64.total_cmp(&2f64)", "has_total_cmp");
116

src/float.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,10 +1944,6 @@ macro_rules! float_impl_std {
19441944
Self::asinh(self) -> Self;
19451945
Self::acosh(self) -> Self;
19461946
Self::atanh(self) -> Self;
1947-
}
1948-
1949-
#[cfg(has_copysign)]
1950-
forward! {
19511947
Self::copysign(self, sign: Self) -> Self;
19521948
}
19531949

0 commit comments

Comments
 (0)