2023-04-25 21:14:33 -07: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 09:47:00 -04:00
|
|
|
debug slice => _1;
|
|
|
|
debug index => _2;
|
|
|
|
let mut _0: &mut [u32];
|
|
|
|
scope 1 (inlined core::slice::<impl [u32]>::get_unchecked_mut::<std::ops::Range<usize>>) {
|
|
|
|
debug self => _1;
|
2024-02-09 20:07:42 -05:00
|
|
|
debug index => _2;
|
|
|
|
let mut _3: *mut [u32];
|
|
|
|
let mut _4: *mut [u32];
|
2023-04-25 21:14:33 -07:00
|
|
|
scope 2 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2024-02-09 20:07:42 -05:00
|
|
|
StorageLive(_3);
|
|
|
|
_3 = &raw mut (*_1);
|
|
|
|
_4 = <std::ops::Range<usize> as SliceIndex<[u32]>>::get_unchecked_mut(move _2, move _3) -> [return: bb1, unwind continue];
|
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
|
|
|
StorageDead(_3);
|
|
|
|
_0 = &mut (*_4);
|
2023-06-06 09:47:00 -04:00
|
|
|
return;
|
2023-04-25 21:14:33 -07:00
|
|
|
}
|
|
|
|
}
|