]>
Commit | Line | Data |
---|---|---|
29967ef6 XL |
1 | - // MIR for `c` before SimplifyLocals |
2 | + // MIR for `c` after SimplifyLocals | |
3 | ||
4 | fn c() -> () { | |
064997fb FG |
5 | let mut _0: (); // return place in scope 0 at $DIR/simplify-locals.rs:+0:8: +0:8 |
6 | let _1: [u8; 10]; // in scope 0 at $DIR/simplify-locals.rs:+1:9: +1:14 | |
7 | - let mut _2: &[u8]; // in scope 0 at $DIR/simplify-locals.rs:+3:20: +3:26 | |
8 | - let mut _3: &[u8; 10]; // in scope 0 at $DIR/simplify-locals.rs:+3:20: +3:26 | |
9 | - let _4: &[u8; 10]; // in scope 0 at $DIR/simplify-locals.rs:+3:20: +3:26 | |
29967ef6 | 10 | scope 1 { |
064997fb | 11 | debug bytes => _1; // in scope 1 at $DIR/simplify-locals.rs:+1:9: +1:14 |
29967ef6 XL |
12 | scope 2 { |
13 | } | |
14 | } | |
15 | ||
16 | bb0: { | |
064997fb FG |
17 | StorageLive(_1); // scope 0 at $DIR/simplify-locals.rs:+1:9: +1:14 |
18 | _1 = [const 0_u8; 10]; // scope 0 at $DIR/simplify-locals.rs:+1:17: +1:26 | |
19 | - StorageLive(_2); // scope 1 at $DIR/simplify-locals.rs:+3:20: +3:26 | |
20 | - StorageLive(_3); // scope 1 at $DIR/simplify-locals.rs:+3:20: +3:26 | |
21 | - StorageLive(_4); // scope 1 at $DIR/simplify-locals.rs:+3:20: +3:26 | |
22 | - _4 = &_1; // scope 1 at $DIR/simplify-locals.rs:+3:20: +3:26 | |
23 | - _3 = &(*_4); // scope 1 at $DIR/simplify-locals.rs:+3:20: +3:26 | |
24 | - _2 = move _3 as &[u8] (Pointer(Unsize)); // scope 1 at $DIR/simplify-locals.rs:+3:20: +3:26 | |
25 | - StorageDead(_3); // scope 1 at $DIR/simplify-locals.rs:+3:25: +3:26 | |
26 | - StorageDead(_4); // scope 1 at $DIR/simplify-locals.rs:+3:26: +3:27 | |
27 | - StorageDead(_2); // scope 1 at $DIR/simplify-locals.rs:+3:26: +3:27 | |
28 | _0 = const (); // scope 0 at $DIR/simplify-locals.rs:+0:8: +4:2 | |
29 | StorageDead(_1); // scope 0 at $DIR/simplify-locals.rs:+4:1: +4:2 | |
30 | return; // scope 0 at $DIR/simplify-locals.rs:+4:2: +4:2 | |
29967ef6 XL |
31 | } |
32 | } | |
33 |