mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
93889172bc
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.