File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,6 @@ use std::env;
3
3
fn main ( ) {
4
4
let ac = autocfg:: new ( ) ;
5
5
6
- ac. emit_expression_cfg (
7
- "unsafe { 1f64.to_int_unchecked::<i32>() }" ,
8
- "has_to_int_unchecked" ,
9
- ) ;
10
-
11
6
ac. emit_expression_cfg ( "1u32.reverse_bits()" , "has_reverse_bits" ) ;
12
7
ac. emit_expression_cfg ( "1u32.trailing_ones()" , "has_leading_trailing_ones" ) ;
13
8
ac. emit_expression_cfg ( "1u32.div_euclid(1u32)" , "has_div_euclid" ) ;
Original file line number Diff line number Diff line change @@ -277,7 +277,6 @@ macro_rules! impl_to_primitive_float_to_float {
277
277
) * }
278
278
}
279
279
280
- #[ cfg( has_to_int_unchecked) ]
281
280
macro_rules! float_to_int_unchecked {
282
281
// SAFETY: Must not be NaN or infinite; must be representable as the integer after truncating.
283
282
// We already checked that the float is in the exclusive range `(MIN-1, MAX+1)`.
@@ -286,13 +285,6 @@ macro_rules! float_to_int_unchecked {
286
285
} ;
287
286
}
288
287
289
- #[ cfg( not( has_to_int_unchecked) ) ]
290
- macro_rules! float_to_int_unchecked {
291
- ( $float: expr => $int: ty) => {
292
- $float as $int
293
- } ;
294
- }
295
-
296
288
macro_rules! impl_to_primitive_float_to_signed_int {
297
289
( $f: ident : $( $( #[ $cfg: meta] ) * fn $method: ident -> $i: ident ; ) * ) => { $(
298
290
#[ inline]
You can’t perform that action at this time.
0 commit comments