summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorTim (Theemathas) Chirananthavat <theemathas@gmail.com>2024-12-15 12:37:14 +0700
committerJosh Stone <jistone@redhat.com>2025-01-02 14:28:32 -0800
commit4171701e394f5f6aa26fedb3fb2e9908e242db5d (patch)
treebf734a4f4cfd2fb67f9b901a24279e5fa48b0044 /tests/codegen/patchable-function-entry
parentdc1a9f275c0caaf8c080c7cc6f9809a44db4ac2a (diff)
downloadrust-4171701e394f5f6aa26fedb3fb2e9908e242db5d.tar.gz
rust-4171701e394f5f6aa26fedb3fb2e9908e242db5d.zip
Correctly document is_null CTFE behavior.
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.

(cherry picked from commit 93889172bc6fdb085bccf15e201a7c03d1bdc8e3)
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions