Skip to content

Commit

Permalink
Use without_provenance_ptr in AtomicPtr test
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Feb 29, 2024
1 parent c4b63d3 commit db1eb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kani/Intrinsics/Atomic/Stable/AtomicPtr/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn check_fetch_byte_add() {

#[kani::proof]
fn check_fetch_byte_sub() {
let atom = AtomicPtr::<i64>::new(core::ptr::invalid_mut(1));
let atom = AtomicPtr::<i64>::new(core::ptr::without_provenance_mut(1));
assert_eq!(atom.fetch_byte_sub(1, Ordering::Relaxed).addr(), 1);
assert_eq!(atom.load(Ordering::Relaxed).addr(), 0);
}
Expand Down

0 comments on commit db1eb1c

Please sign in to comment.