fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
629 B23 linesraw
1// MIR for `slice_index_range` after PreCodegen
2
3fn slice_index_range(_1: &[u32], _2: std::ops::Range<usize>) -> &[u32] {
4    debug slice => _1;
5    debug index => _2;
6    let mut _0: &[u32];
7    scope 1 (inlined #[track_caller] core::slice::index::<impl Index<std::ops::Range<usize>> for [u32]>::index) {
8        debug self => _1;
9        debug index => _2;
10        let _3: &[u32];
11    }
12
13    bb0: {
14        StorageLive(_3);
15        _3 = <std::ops::Range<usize> as SliceIndex<[u32]>>::index(move _2, move _1) -> [return: bb1, unwind continue];
16    }
17
18    bb1: {
19        _0 = _3;
20        StorageDead(_3);
21        return;
22    }
23}