Skip to content

Commit

Permalink
vstd: add no_unwind to swap spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhance committed Nov 14, 2024
1 parent 658fd94 commit 4edba7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/vstd/std_specs/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ pub fn ex_swap<T>(a: &mut T, b: &mut T)
ensures
*a == *old(b),
*b == *old(a),
opens_invariants none
no_unwind
{
core::mem::swap(a, b)
}
Expand Down

0 comments on commit 4edba7d

Please sign in to comment.