File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright Kani Contributors
2
2
// SPDX-License-Identifier: Apache-2.0 OR MIT
3
3
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
6
6
7
7
#![ feature( core_intrinsics) ]
8
8
#![ allow( internal_features) ]
@@ -14,7 +14,7 @@ fn test_typed_swap_u32() {
14
14
let mut b: u32 = kani:: any ( ) ;
15
15
let b_before = b;
16
16
unsafe {
17
- std:: intrinsics:: typed_swap ( & mut a, & mut b) ;
17
+ std:: intrinsics:: typed_swap_nonoverlapping ( & mut a, & mut b) ;
18
18
}
19
19
assert ! ( b == a_before) ;
20
20
assert ! ( a == b_before) ;
You can’t perform that action at this time.
0 commit comments