Login
You're viewing the techdon.dev public feed.
  • Aug 28, 2026, 11:37 AM

    There could be a flag to turn off async Rust panics. It's good for binary size, but not better than panic-immediate-abort already is.

    Would you use the flag while not using panic-immediate-abort (assuming both are stable)?

    I need to pursue or drop this flag and I want your input to make the decision.

    #rustlang

    💬 1🔄 0⭐ 1

Replies

  • Aug 28, 2026, 11:56 AM

    To be clear, this the panic for "poll after completion" and when appropriate "poll after unwind"

    💬 0🔄 0⭐ 0
  • Aug 28, 2026, 12:24 PM

    @diondokter My immediate thoughts go to "I won't use it". It's not clear what the advantage of a flag would be compared to panic-immediate-abort.
    Perhaps the flag would be meant as an override, but then I only imagine myself overriding immediate abort someone else set, to be able to handle that in my own code.

    💬 1🔄 0⭐ 0
  • Aug 28, 2026, 12:30 PM

    @dcz IIUC, it would allow handling the expensive-and-not-easily-produced case of "holding async very wrong" (eg. by manual polling beyond completion) distinctly from the more common "regular panics" (out-of-bounds, unexpected logic errors) on systems that do try to recover from panics beyond just aborting. @diondokter, is that right?

    💬 0🔄 0⭐ 0