File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ matrix:
11
11
- rust : 1.22.0
12
12
install :
13
13
script :
14
- - cargo test --tests --no-default-features
14
+ # TODO: use --tests instead of --lib on more recent compiler
15
+ - cargo test --lib --no-default-features
15
16
- cargo test --package rand_core --no-default-features
16
17
- cargo test --features serde1,log
17
18
- rust : stable
Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ macro_rules! float_impls {
95
95
// The exponent is encoded using an offset-binary representation
96
96
let exponent_bits: $u_scalar =
97
97
( ( $exponent_bias + exponent) as $u_scalar) << $fraction_bits;
98
- $ty:: from_bits( self | exponent_bits)
98
+ // TODO: use from_bits when min compiler > 1.25 (see #545)
99
+ // $ty::from_bits(self | exponent_bits)
100
+ unsafe { mem:: transmute( self | exponent_bits) }
99
101
}
100
102
}
101
103
You can’t perform that action at this time.
0 commit comments