]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #95971 - workingjubilee:no-weird-fp-in-const, r=oli-obk
authorbors <bors@rust-lang.org>
Sat, 23 Apr 2022 13:00:54 +0000 (13:00 +0000)
committerbors <bors@rust-lang.org>
Sat, 23 Apr 2022 13:00:54 +0000 (13:00 +0000)
commit1e9aa8a96b207668799365bf891a459b62410b60
tree221b8162ef609297c34c5b56c3acff39506d4869
parentc212fc4aa7719613e5254e9051ea03a93558fef4
parent4da8682523ed8527046790f288ee55dd394be52a
Auto merge of #95971 - workingjubilee:no-weird-fp-in-const, r=oli-obk

No "weird" floats in const fn {from,to}_bits

I suspect this code is subtly incorrect and that we don't even e.g. use x87-style floats in CTFE, so I don't have to guard against that case. A future PR will be hopefully removing them from concern entirely, anyways. But at the moment I wanted to get this rolling because small questions like that one seem best answered by review.

r? `@oli-obk`
cc `@eddyb` `@thomcc`