rust/library/core
Matthias Krüger 334d7bd698
Rollup merge of #137323 - joshlf:transmute-npo, r=RalfJung
Guarantee behavior of transmuting `Option::<T>::None` subject to NPO

In https://github.com/rust-lang/rust/pull/115333, we added a guarantee that transmuting from `[0u8; N]` to `Option<P>` is sound where `P` is a pointer type subject to the null pointer optimization (NPO). It would be useful to be able to guarantee the inverse - that a `None::<P>` value can be transmutes to an array and that will yield `[0u8; N]`.

Closes #117591
2025-05-24 16:08:45 +02:00
..
src Rollup merge of #137323 - joshlf:transmute-npo, r=RalfJung 2025-05-24 16:08:45 +02:00
Cargo.toml Initial implementation of core_float_math 2025-05-13 22:08:18 +00:00