about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2024-03-24 13:53:55 +0100
committerLukas Wirth <lukastw97@gmail.com>2024-04-18 12:20:54 +0200
commita8e50cffbc95f07a02d56feb49b5997e1e5d661d (patch)
tree5bc42a973a2d9f10847f2840bfa05a7376c545e9 /tests/codegen/patchable-function-entry
parent062e1b9b81542680afde1aa47fa5316ac5133461 (diff)
downloadrust-a8e50cffbc95f07a02d56feb49b5997e1e5d661d.tar.gz
rust-a8e50cffbc95f07a02d56feb49b5997e1e5d661d.zip
Handle panicking like rustc CTFE does
Instead of using `core::fmt::format` to format panic messages, which may in turn
panic too and cause recursive panics and other messy things, redirect
`panic_fmt` to `const_panic_fmt` like CTFE, which in turn goes to
`panic_display` and does the things normally. See the tests for the full
call stack.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions