diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2024-03-24 13:53:55 +0100 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2024-04-18 12:20:54 +0200 |
| commit | a8e50cffbc95f07a02d56feb49b5997e1e5d661d (patch) | |
| tree | 5bc42a973a2d9f10847f2840bfa05a7376c545e9 /tests/codegen/patchable-function-entry | |
| parent | 062e1b9b81542680afde1aa47fa5316ac5133461 (diff) | |
| download | rust-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
