summary refs log tree commit diff
path: root/src/libcore/slice
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-01-28 12:37:29 +0100
committerRalf Jung <post@ralfj.de>2019-01-28 12:37:29 +0100
commit6a52ca3fb465544f62cee70bec9499b967939cc9 (patch)
treef980af4f5756900f54f387d0122297baed3006d5 /src/libcore/slice
parent33a969d9faa6d935895a82cbe6e96ee83ba36b88 (diff)
downloadrust-6a52ca3fb465544f62cee70bec9499b967939cc9.tar.gz
rust-6a52ca3fb465544f62cee70bec9499b967939cc9.zip
rename first_mut_ptr -> first_ptr_mut
Diffstat (limited to 'src/libcore/slice')
-rw-r--r--src/libcore/slice/sort.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/slice/sort.rs b/src/libcore/slice/sort.rs
index 2ff67a4934f..3f84faa0499 100644
--- a/src/libcore/slice/sort.rs
+++ b/src/libcore/slice/sort.rs
@@ -262,8 +262,8 @@ fn partition_in_blocks<T, F>(v: &mut [T], pivot: &T, is_less: &mut F) -> usize
 
         if start_l == end_l {
             // Trace `block_l` elements from the left side.
-            start_l = MaybeUninit::first_mut_ptr(&mut offsets_l);
-            end_l = MaybeUninit::first_mut_ptr(&mut offsets_l);
+            start_l = MaybeUninit::first_ptr_mut(&mut offsets_l);
+            end_l = MaybeUninit::first_ptr_mut(&mut offsets_l);
             let mut elem = l;
 
             for i in 0..block_l {
@@ -278,8 +278,8 @@ fn partition_in_blocks<T, F>(v: &mut [T], pivot: &T, is_less: &mut F) -> usize
 
         if start_r == end_r {
             // Trace `block_r` elements from the right side.
-            start_r = MaybeUninit::first_mut_ptr(&mut offsets_r);
-            end_r = MaybeUninit::first_mut_ptr(&mut offsets_r);
+            start_r = MaybeUninit::first_ptr_mut(&mut offsets_r);
+            end_r = MaybeUninit::first_ptr_mut(&mut offsets_r);
             let mut elem = r;
 
             for i in 0..block_r {