Add functions to safely transmute float to int

This commit is contained in:
est31
2017-01-24 18:15:11 +01:00
parent 5516bcc458
commit 32a43da68a
3 changed files with 103 additions and 0 deletions

View File

@@ -321,6 +321,7 @@
#![feature(zero_one)]
#![cfg_attr(test, feature(update_panic_count))]
#![cfg_attr(stage0, feature(pub_restricted))]
#![cfg_attr(test, feature(float_bits_conv))]
// Explicitly import the prelude. The compiler uses this same unstable attribute
// to import the prelude implicitly when building crates that depend on std.