Is it possible to provoke no-unwind panic as the first one?

Hello!

I've been checking my crate (more convenient panic catcher) against some edge cases, no-unwind ones in particular. What I've discovered though is that you always get at least two panics in no-unwind case. The first one is the normal panic provoked by panic!() macro or similar ones, the second one is the actual no-unwind panic from one of internal landing pads, like panic_in_unwind for panic during unwinding or panic_cannot_unwind when panic tries to cross FFI boundary.

So my question is, is there a way to provoke clean no-unwind panic on stable? I'm aware about panic_nounwind unstable functions family.

Thanks

There is no stable global switch.

Unfortunately, semantics of Rust require taking into account that arbitrary user code may run after a panic. This sometimes forces libraries to call abort() directly if some broken invariants could be observed by the panic hook.