11fn main ( ) {
22 let ac = autocfg:: new ( ) ;
33 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)" ) ) {
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+ {
1415 panic ! ( "Some integer types implement *Exp traits, but not others" )
1516 }
1617 println ! ( "cargo:rustc-cfg=has_int_exp_fmt" ) ;
1718 }
1819
1920 autocfg:: rerun_path ( file ! ( ) ) ;
20- }
21+ }
0 commit comments