diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2024-03-24 15:39:15 +0100 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2024-03-24 15:40:26 +0100 |
| commit | 2dfe7de8b66c17b3f9025766597b8399394527b8 (patch) | |
| tree | 97b43a88af4590ab8ddbf08f1b2b6e8840d62035 /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | e265e3d5189513c42d037999d41a696369af9388 (diff) | |
| download | rust-2dfe7de8b66c17b3f9025766597b8399394527b8.tar.gz rust-2dfe7de8b66c17b3f9025766597b8399394527b8.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 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions
