fork/rust

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

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

master
557 B27 linesraw
1// MIR for `foo` after built
2
3fn foo(_1: [(Never, u32); 1]) -> u32 {
4    debug xs => _1;
5    let mut _0: u32;
6    let _2: usize;
7    let mut _3: usize;
8    let mut _4: bool;
9
10    bb0: {
11        StorageLive(_2);
12        _2 = const 0_usize;
13        _3 = Len(_1);
14        _4 = Lt(_2, _3);
15        assert(move _4, "index out of bounds: the length is {} but the index is {}", move _3, _2) -> [success: bb1, unwind: bb2];
16    }
17
18    bb1: {
19        _0 = (_1[_2].1: u32);
20        StorageDead(_2);
21        return;
22    }
23
24    bb2 (cleanup): {
25        resume;
26    }
27}