rust icon indicating copy to clipboard operation
rust copied to clipboard

Store backtrace for `must_produce_diag`

Open compiler-errors opened this issue 1 year ago • 1 comments

This makes it significantly easier to debug a must_produce_diag ICE, since we have no other way to know where the heck the bug originates from.

Backtrace rendering kinda sucks right now since we're just printing it in the panic message; happy to apply some suggestions to make it prettier or reuse other bug printing machinery, but also don't want to iterate too much on the rendering since this really is just for debug purposes.

r? nnethercote

compiler-errors avatar Mar 10 '24 16:03 compiler-errors

r=me after the suggestion above is considered.

nnethercote avatar Mar 10 '24 21:03 nnethercote

@bors r=nnethercote

compiler-errors avatar Mar 11 '24 13:03 compiler-errors

:pushpin: Commit 73fc17054490b246ee3e3c2cf515a1c850a3a4a5 has been approved by nnethercote

It is now in the queue for this repository.

bors avatar Mar 11 '24 13:03 bors