about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-24 18:17:36 +0000
committerbors <bors@rust-lang.org>2024-03-24 18:17:36 +0000
commit6f6b03f9de783f91456080b3f6adc8d92903c1b0 (patch)
tree05d808312dc024d8a211e9536a8ee30e9cc0fb31 /compiler/rustc_mir_transform/src/coverage/mod.rs
parent3dfd4c1f4c955e13d5936a3ffa2a19661c97cd07 (diff)
parent2dfe7de8b66c17b3f9025766597b8399394527b8 (diff)
downloadrust-6f6b03f9de783f91456080b3f6adc8d92903c1b0.tar.gz
rust-6f6b03f9de783f91456080b3f6adc8d92903c1b0.zip
Auto merge of #16935 - Nilstrieb:dont-panic, r=HKalbasi
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.

The tests don't work yet, I probably missed something in minicore.

fixes #16907 in my local testing, I also need to add a test for it
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions