Skip to content

Commit 05213bd

Browse files
committed
hasten builds by only probing isize *Exp formatting
1 parent e0e3cb9 commit 05213bd

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

build.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
fn main() {
22
let ac = autocfg::new();
3-
if ac.probe_expression("format!(\"{:e}\", 0_i32)") {
4-
if !(ac.probe_expression("format!(\"{:e}\", 0_i8)")
5-
&& ac.probe_expression("format!(\"{:e}\", 0_i16)")
6-
&& ac.probe_expression("format!(\"{:e}\", 0_i32)")
7-
&& ac.probe_expression("format!(\"{:e}\", 0_i64)")
8-
&& ac.probe_expression("format!(\"{:e}\", 0_i128)")
9-
&& ac.probe_expression("format!(\"{:e}\", 0_u8)")
10-
&& ac.probe_expression("format!(\"{:e}\", 0_u16)")
11-
&& ac.probe_expression("format!(\"{:e}\", 0_u32)")
12-
&& ac.probe_expression("format!(\"{:e}\", 0_u64)")
13-
&& ac.probe_expression("format!(\"{:e}\", 0_u128)"))
14-
{
15-
panic!("Some integer types implement *Exp traits, but not others")
16-
}
3+
if ac.probe_expression("format!(\"{:e}\", 0_isize)") {
174
println!("cargo:rustc-cfg=has_int_exp_fmt");
185
}
196

0 commit comments

Comments
 (0)