Skip to content

Commit 68251b7

Browse files
author
Remi Delmas
committed
Rename typed_swap to typed_swap_nonoverlapping.
Propagated from rust-lang/rust#134757.
1 parent 99c3f62 commit 68251b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright Kani Contributors
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33

4-
// Check that `typed_swap` yields the expected results.
5-
// https://doc.rust-lang.org/nightly/std/intrinsics/fn.typed_swap.html
4+
// Check that `typed_swap_nonoverlapping` yields the expected results.
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)