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