We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typed_swap
typed_swap_nonoverlapping
1 parent 05e6550 commit 366d35dCopy full SHA for 366d35d
tests/kani/Intrinsics/typed_swap.rs renamed to tests/kani/Intrinsics/typed_swap_nonoverlapping.rs
@@ -2,7 +2,7 @@
2
// SPDX-License-Identifier: Apache-2.0 OR MIT
3
4
// Check that `typed_swap` yields the expected results.
5
-// https://doc.rust-lang.org/nightly/std/intrinsics/fn.typed_swap.html
+// https://doc.rust-lang.org/nightly/std/intrinsics/fn.typed_swap_nonoverlapping.html
6
7
#![feature(core_intrinsics)]
8
#![allow(internal_features)]
@@ -14,7 +14,7 @@ fn test_typed_swap_u32() {
14
let mut b: u32 = kani::any();
15
let b_before = b;
16
unsafe {
17
- std::intrinsics::typed_swap(&mut a, &mut b);
+ std::intrinsics::typed_swap_nonoverlapping(&mut a, &mut b);
18
}
19
assert!(b == a_before);
20
assert!(a == b_before);
0 commit comments