diff options
| author | Josh Stone <jistone@redhat.com> | 2017-04-20 16:09:54 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2017-04-20 21:16:31 -0700 |
| commit | c1aaa60d8de1c90939671f10ce7ce08400e27ad7 (patch) | |
| tree | 331d9df08d1ebe634920b05c326f4db94e889a5a /src/test | |
| parent | c903ac64e58241a71ec42e791b0cc1451ffc3840 (diff) | |
Remove float_extras
[unstable, deprecated since 1.11.0]
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/union/union-transmute.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/run-pass/union/union-transmute.rs b/src/test/run-pass/union/union-transmute.rs index 4eb66268ab8..7a0b4c6aaca 100644 --- a/src/test/run-pass/union/union-transmute.rs +++ b/src/test/run-pass/union/union-transmute.rs @@ -8,12 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(core_float)] -#![feature(float_extras)] #![feature(untagged_unions)] extern crate core; -use core::num::Float; +use core::f32; union U { a: (u8, u8), @@ -33,8 +31,8 @@ fn main() { assert_eq!(u.a, (2, 2)); let mut w = W { a: 0b0_11111111_00000000000000000000000 }; - assert_eq!(w.b, f32::infinity()); - w.b = f32::neg_infinity(); + assert_eq!(w.b, f32::INFINITY); + w.b = f32::NEG_INFINITY; assert_eq!(w.a, 0b1_11111111_00000000000000000000000); } } |
