>having CI fail if the optimized binary contains ANY call-sites to the panic handler.
How do you do that?
How do you do that?
You could also do it statically, post-build, by looking for calls to the panic handler.
I've never tried that, so maybe :-)
> How much does that tend to affect compile times, do you know?
IME, not very much -- there might be a small amount of overhead, but the "trick" behind the check is to fail the linker with a symbol error if the panic code is inserted into a function. So the compiler itself should be roughly as fast, and the error path in the linker is really the only thing that should change too much.