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