|
|
|
|
|
by afdbcreid
24 days ago
|
|
It's true that panics (unlike UB) cannot automatically time-travel, but your justification is weak. Recovering from panics can only prevent this optimization if the loop have side effects, and LLVM knows when panic=abort is set. |
|
That does create a problem for early panics, panicking when panic becomes inevitable but has not happened yet. This deserves more thought.