2023-04-25 23:14:33 -05:00
|
|
|
// MIR for `slice_get_unchecked_mut_range` after PreCodegen
|
|
|
|
|
|
|
|
fn slice_get_unchecked_mut_range(_1: &mut [u32], _2: std::ops::Range<usize>) -> &mut [u32] {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug slice => _1;
|
|
|
|
debug index => _2;
|
|
|
|
let mut _0: &mut [u32];
|
2024-06-11 23:26:41 -05:00
|
|
|
let mut _3: usize;
|
|
|
|
let mut _4: usize;
|
2023-06-06 08:47:00 -05:00
|
|
|
scope 1 (inlined core::slice::<impl [u32]>::get_unchecked_mut::<std::ops::Range<usize>>) {
|
2024-06-11 23:26:41 -05:00
|
|
|
let mut _5: *mut [u32];
|
2024-06-20 00:14:31 -05:00
|
|
|
let mut _11: *mut [u32];
|
2024-06-11 23:26:41 -05:00
|
|
|
scope 2 (inlined <std::ops::Range<usize> as SliceIndex<[u32]>>::get_unchecked_mut) {
|
2024-06-20 00:14:31 -05:00
|
|
|
let mut _6: usize;
|
|
|
|
let _7: ();
|
|
|
|
let _8: usize;
|
2024-06-11 23:26:41 -05:00
|
|
|
scope 3 {
|
|
|
|
scope 6 (inlined core::slice::index::get_offset_len_mut_noubcheck::<u32>) {
|
2024-06-20 00:14:31 -05:00
|
|
|
let _10: *mut u32;
|
2024-06-11 23:26:41 -05:00
|
|
|
scope 7 {
|
|
|
|
}
|
|
|
|
scope 8 (inlined core::slice::index::get_mut_noubcheck::<u32>) {
|
2024-06-20 00:14:31 -05:00
|
|
|
let _9: *mut u32;
|
2024-06-11 23:26:41 -05:00
|
|
|
scope 9 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scope 4 (inlined std::ptr::mut_ptr::<impl *mut [u32]>::len) {
|
|
|
|
scope 5 (inlined std::ptr::metadata::<[u32]>) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-04-25 23:14:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2024-06-11 23:26:41 -05:00
|
|
|
_3 = move (_2.0: usize);
|
|
|
|
_4 = move (_2.1: usize);
|
2024-07-27 01:36:17 -05:00
|
|
|
StorageLive(_11);
|
2024-06-11 23:26:41 -05:00
|
|
|
StorageLive(_5);
|
|
|
|
_5 = &raw mut (*_1);
|
2024-06-20 00:14:31 -05:00
|
|
|
StorageLive(_8);
|
2024-06-11 23:26:41 -05:00
|
|
|
StorageLive(_6);
|
2024-06-20 00:14:31 -05:00
|
|
|
_6 = PtrMetadata(copy _1);
|
|
|
|
_7 = <std::ops::Range<usize> as SliceIndex<[T]>>::get_unchecked_mut::precondition_check(copy _3, copy _4, move _6) -> [return: bb1, unwind unreachable];
|
2024-04-09 01:01:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2024-06-20 00:14:31 -05:00
|
|
|
StorageDead(_6);
|
|
|
|
_8 = SubUnchecked(copy _4, copy _3);
|
2024-06-11 23:26:41 -05:00
|
|
|
StorageLive(_10);
|
2024-06-20 00:14:31 -05:00
|
|
|
StorageLive(_9);
|
|
|
|
_9 = copy _5 as *mut u32 (PtrToPtr);
|
|
|
|
_10 = Offset(copy _9, copy _3);
|
2024-06-11 23:26:41 -05:00
|
|
|
StorageDead(_9);
|
2024-06-20 00:14:31 -05:00
|
|
|
_11 = *mut [u32] from (copy _10, copy _8);
|
|
|
|
StorageDead(_10);
|
|
|
|
StorageDead(_8);
|
2024-06-11 23:26:41 -05:00
|
|
|
StorageDead(_5);
|
2024-06-20 00:14:31 -05:00
|
|
|
_0 = &mut (*_11);
|
2024-07-27 01:36:17 -05:00
|
|
|
StorageDead(_11);
|
2023-06-06 08:47:00 -05:00
|
|
|
return;
|
2023-04-25 23:14:33 -05:00
|
|
|
}
|
|
|
|
}
|