Closed workingjubilee closed 3 days ago
Hm.
...I actually just thought of a trivial change that makes the ArgAbi code compile without this, so now I feel slightly silly. :V
...but that's kind of the problem, in a way. It's basically meaningless.
@eeeebbbbrrrr In a sense, we do have a need for "unwind safety" in pgrx. However, our invariants are so horribly complicated and need so much special handling that essentially, once they are take care of, UnwindSafe
adds nothing. And &mut T
isn't UnwindSafe
because it's easy to witness a broken invariant, not that you will.
UnwindSafe
adds nothing.
fair.
Our invariants are so complicated and need such special handling that once they are take care of,
UnwindSafe
adds nothing. The particular example that motivated this:&mut T
isn'tUnwindSafe
because it's easy to witness a broken invariant, not that you will.See https://github.com/rust-lang/rfcs/pull/3260 for further rationale.