2023-04-25 23:14:33 -05:00
|
|
|
// MIR for `slice_index_range` after PreCodegen
|
|
|
|
|
|
|
|
fn slice_index_range(_1: &[u32], _2: std::ops::Range<usize>) -> &[u32] {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug slice => _1;
|
|
|
|
debug index => _2;
|
|
|
|
let mut _0: &[u32];
|
|
|
|
scope 1 (inlined #[track_caller] core::slice::index::<impl Index<std::ops::Range<usize>> for [u32]>::index) {
|
|
|
|
debug self => _1;
|
|
|
|
debug index => _2;
|
|
|
|
let _3: &[u32];
|
2023-04-25 23:14:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_3);
|
2023-07-16 08:11:10 -05:00
|
|
|
_3 = <std::ops::Range<usize> as SliceIndex<[u32]>>::index(move _2, move _1) -> [return: bb1, unwind continue];
|
2023-04-25 23:14:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = _3;
|
|
|
|
StorageDead(_3);
|
|
|
|
return;
|
2023-04-25 23:14:33 -05:00
|
|
|
}
|
|
|
|
}
|