From ad884c54316ba712c0dc6d8065aeb322ea14178e Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Thu, 27 Aug 2026 09:08:48 +0200 Subject: [PATCH] document EMIT_MIR_FOR_EACH_PANIC_STRATEGY --- src/tests/compiletest.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/compiletest.md b/src/tests/compiletest.md index 4573a04d02..e3d044d50b 100644 --- a/src/tests/compiletest.md +++ b/src/tests/compiletest.md @@ -460,6 +460,10 @@ problematic in the presence of pointers in constants or other bit width dependen In that case you can add `// EMIT_MIR_FOR_EACH_BIT_WIDTH` to your test, causing separate files to be generated for 32bit and 64bit systems. +Similarly, +to generate separate files for each panic strategy ("panic-abort" and "panic-unwind"), +add `// EMIT_MIR_FOR_EACH_PANIC_STRATEGY` to the test. + [`tests/mir-opt`]: https://github.com/rust-lang/rust/tree/HEAD/tests/mir-opt