FR: add a way to assume that the current function satisfies no_unwind
#2186
bsdinis
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
no_unwindis required for types that have invariants (if a call that takes&mut selfunwinds, it can break the type invariant).This is a good thing, but it can become overly restrictive.
Any type that has exec containers (e.g., Vec, HashMap, BTreeMap) cannot insert to the values, because those calls may unwind.
It would be useful to admit that a particular function does not unwind. Unwinds are unlikely and it only affects correctness if the code has panic hooks (otherwise the panic just crashes the program). It would be useful to be able to admit it and continue with the proof
Beta Was this translation helpful? Give feedback.
All reactions