Clarifying the behavior of #[rustc_nounwind]
at trait methods
#137765
Labels
A-lang-item
Area: Language items
A-trait-objects
Area: trait objects, vtable layout
F-rustc_attrs
Internal rustc attributes gated on the `#[rustc_attrs]` feature gate.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Currently,
#[rustc_nounwind]
is only applied to functions that are explicitly annotated; it's neither required nor applied by default to all implementations. I have no objection to this, but I think we need to clarify what the expected behavior should be.An alternative is:
Based on the current behavior, there are some miscompile.
In the case of https://rust.godbolt.org/z/aTWsEMxWq, all invokes should be unwinding.
From #137669.
The text was updated successfully, but these errors were encountered: