Skip to content

Commit 366d35d

Browse files
author
Remi Delmas
committed
Rename typed_swap to typed_swap_nonoverlapping.
Propagated from rust-lang/rust#134757.
1 parent 05e6550 commit 366d35d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/kani/Intrinsics/typed_swap.rs renamed to tests/kani/Intrinsics/typed_swap_nonoverlapping.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33

44
// Check that `typed_swap` yields the expected results.
5-
// https://doc.rust-lang.org/nightly/std/intrinsics/fn.typed_swap.html
5+
// https://doc.rust-lang.org/nightly/std/intrinsics/fn.typed_swap_nonoverlapping.html
66

77
#![feature(core_intrinsics)]
88
#![allow(internal_features)]
@@ -14,7 +14,7 @@ fn test_typed_swap_u32() {
1414
let mut b: u32 = kani::any();
1515
let b_before = b;
1616
unsafe {
17-
std::intrinsics::typed_swap(&mut a, &mut b);
17+
std::intrinsics::typed_swap_nonoverlapping(&mut a, &mut b);
1818
}
1919
assert!(b == a_before);
2020
assert!(a == b_before);

0 commit comments

Comments
 (0)