Files
rust/library
Matthias Krüger 3aedae24a2 Rollup merge of #134325 - theemathas:is_null-docs, r=RalfJung
Correctly document CTFE behavior of is_null and methods that call is_null.

The "panic in const if CTFE doesn't know the answer" behavior was discussed to be the desired behavior in #74939, and is currently how the function actually behaves.

I intentionally wrote this documentation to allow for the possibility that a panic might not occur even if the pointer is out of bounds, because of #133700 and other potential changes in the future.

This is beta-nominated since `const fn is_null` stabilization is in beta already but the docs there are wrong, and it seems better to have the docs be correct at the time of stabilization.
2024-12-21 22:16:02 +01:00
..
2024-12-21 01:26:47 +00:00
2024-08-29 12:13:19 -07:00
2024-07-28 14:46:29 -04:00
2024-11-19 18:54:20 +01:00
2024-12-19 10:08:29 +01:00