]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #59880 - solson:transmute-float, r=alexcrichton
authorMazdak Farrokhzad <twingoow@gmail.com>
Fri, 12 Apr 2019 10:18:05 +0000 (12:18 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Apr 2019 10:18:05 +0000 (12:18 +0200)
commit257dbb826d0000f7d56c71fb7d93b5de288a157e
treed4c591fdb739d03c8267cf52991a7978f67bf3d2
parentef90d940dc6169c1d505ec5d30d5ad0cab189ccc
parentf54df449072895f258876adf9545fe3a0840492f
Rollup merge of #59880 - solson:transmute-float, r=alexcrichton

Remove note about transmute for float bitpatterns.

This particular usecase has been safely abstracted in these `std` functions: [f32::to_bits](https://doc.rust-lang.org/std/primitive.f32.html#method.to_bits), [f32::from_bits](https://doc.rust-lang.org/std/primitive.f32.html#method.from_bits), [f64::to_bits](https://doc.rust-lang.org/std/primitive.f64.html#method.to_bits), [f64::from_bits](https://doc.rust-lang.org/std/primitive.f64.html#method.from_bits). So, I think we shouldn't recommend an unnecessary use of `unsafe` here anymore.
src/libcore/intrinsics.rs