Skip to content

Commit

Permalink
Merge branch 'invariant' of github.com:carolynzech/verify-rust-std in…
Browse files Browse the repository at this point in the history
…to invariant
  • Loading branch information
carolynzech committed Sep 19, 2024
2 parents 7b21c06 + 31f405e commit 3dba941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/ptr/unique.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ mod verify {
}

// pub const fn cast<U>(self) -> Unique<U>
#[kani::proof_for_contract(Unique::cast<U>)]
pub fn check_cast<U>() {
#[kani::proof]
pub fn check_cast() {
let mut x : i32 = kani::any();
let xptr = &mut x;
unsafe {
Expand Down

0 comments on commit 3dba941

Please sign in to comment.