fork/rust

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

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

master
706 B35 linesraw
1// MIR for `fun` after built
2
3fn fun(_1: &[T]) -> &T {
4    debug it => _1;
5    let mut _0: &T;
6    let _2: &T;
7    let _3: usize;
8    let mut _4: usize;
9    let mut _5: bool;
10    scope 1 {
11        debug f => _2;
12    }
13
14    bb0: {
15        StorageLive(_2);
16        StorageLive(_3);
17        _3 = const 0_usize;
18        _4 = Len((*_1));
19        _5 = Lt(_3, _4);
20        assert(move _5, "index out of bounds: the length is {} but the index is {}", move _4, _3) -> [success: bb1, unwind: bb2];
21    }
22
23    bb1: {
24        _2 = &(*_1)[_3];
25        FakeRead(ForLet(None), _2);
26        _0 = &(*_2);
27        StorageDead(_3);
28        StorageDead(_2);
29        return;
30    }
31
32    bb2 (cleanup): {
33        resume;
34    }
35}