about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-17 09:13:13 +0000
committerbors <bors@rust-lang.org>2024-08-17 09:13:13 +0000
commit426a60abc213b28a7c7198e475476b6e650d871f (patch)
tree6f939ee30d707932a72c16735b72227a054ef937 /compiler/rustc_query_impl/src
parent54a50bd86f5927a9dc56482e47b9068b176c828f (diff)
parent5f33085a7f574b95609da59b2d4164238d7782f0 (diff)
downloadrust-426a60abc213b28a7c7198e475476b6e650d871f.tar.gz
rust-426a60abc213b28a7c7198e475476b6e650d871f.zip
Auto merge of #128598 - RalfJung:float-comments, r=workingjubilee
float to/from bits and classify: update for float semantics RFC

With https://github.com/rust-lang/rfcs/pull/3514 having been accepted, it is clear that hardware which e.g. flushes subnormal to zero is just non-conformant from a Rust perspective -- this is a hardware bug, or maybe an LLVM backend bug (where LLVM doesn't lower floating-point ops in a way that they have the standardized behavior). So update the comments here to make it clear that we don't have to do any of this, we're just being nice.

Also remove the subnormal/NaN checks from the (unstable) const-version of to/from-bits; they are not needed since we decided with the aforementioned RFC that it is okay to get a different result at const-time and at run-time.

r? `@workingjubilee` since I think you wrote many of the comments I am editing here.
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions