24 lines
597 B
Rust
24 lines
597 B
Rust
// MIR for `slice_index_range` after PreCodegen
|
|
|
|
fn slice_index_range(_1: &[u32], _2: std::ops::Range<usize>) -> &[u32] {
|
|
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];
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_3);
|
|
_3 = <std::ops::Range<usize> as SliceIndex<[u32]>>::index(move _2, _1) -> bb1;
|
|
}
|
|
|
|
bb1: {
|
|
_0 = _3;
|
|
StorageDead(_3);
|
|
return;
|
|
}
|
|
}
|