3 ms·
Does annotating `main` with no_panic do the trick? How much does that tend to affect compile times, do you know?
by bpicolo 2y ago
Does annotating `main` with no_panic do the trick? How much does that tend to affect compile times, do you know?
- woodruffw 2y ago> Does annotating `main` with no_panic do the trick? 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.