File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 11fn 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
You can’t perform that action at this time.
0 commit comments