Rollup merge of #139483 - RalfJung:nan, r=tgross35

f*::NAN: guarantee that this is a quiet NaN

I think we should guarantee that this is a quiet NaN. This then implies that programs not using `f*::from_bits` (or unsafe type conversions) are guaranteed to only work with quiet NaNs. It would be awkward if people start to write `0.0 / 0.0` instead of using the constant just because they want to get a guaranteed-quiet NaN.

This is a `@rust-lang/libs-api` change. The definition of this constant currently is `0.0 / 0.0`, which is already guaranteed to be a quiet NaN. So all this does is forward that guarantee to our users.
This commit is contained in:
Matthias Krüger 2025-04-17 21:53:24 +02:00 committed by GitHub
commit 0234dc1db8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available