about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-04-12 12:18:05 +0200
committerGitHub <noreply@github.com>2019-04-12 12:18:05 +0200
commit257dbb826d0000f7d56c71fb7d93b5de288a157e (patch)
treed4c591fdb739d03c8267cf52991a7978f67bf3d2 /src/libsyntax/parse/parser
parentef90d940dc6169c1d505ec5d30d5ad0cab189ccc (diff)
parentf54df449072895f258876adf9545fe3a0840492f (diff)
downloadrust-257dbb826d0000f7d56c71fb7d93b5de288a157e.tar.gz
rust-257dbb826d0000f7d56c71fb7d93b5de288a157e.zip
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.
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions