]>
Commit | Line | Data |
---|---|---|
1 | // MIR for `main` after PreCodegen | |
2 | ||
3 | fn main() -> () { | |
4 | let mut _0: (); // return place in scope 0 at $DIR/aggregate.rs:+0:11: +0:11 | |
5 | let _1: u8; // in scope 0 at $DIR/aggregate.rs:+1:9: +1:10 | |
6 | let mut _2: u8; // in scope 0 at $DIR/aggregate.rs:+1:13: +1:24 | |
7 | let mut _3: (i32, u8, i32); // in scope 0 at $DIR/aggregate.rs:+1:13: +1:22 | |
8 | let _4: (); // in scope 0 at $DIR/aggregate.rs:+2:5: +2:11 | |
9 | let mut _5: u8; // in scope 0 at $DIR/aggregate.rs:+2:9: +2:10 | |
10 | scope 1 { | |
11 | debug x => _1; // in scope 1 at $DIR/aggregate.rs:+1:9: +1:10 | |
12 | } | |
13 | ||
14 | bb0: { | |
15 | StorageLive(_1); // scope 0 at $DIR/aggregate.rs:+1:9: +1:10 | |
16 | StorageLive(_2); // scope 0 at $DIR/aggregate.rs:+1:13: +1:24 | |
17 | StorageLive(_3); // scope 0 at $DIR/aggregate.rs:+1:13: +1:22 | |
18 | _3 = (const 0_i32, const 1_u8, const 2_i32); // scope 0 at $DIR/aggregate.rs:+1:13: +1:22 | |
19 | _2 = const 1_u8; // scope 0 at $DIR/aggregate.rs:+1:13: +1:24 | |
20 | _1 = const 1_u8; // scope 0 at $DIR/aggregate.rs:+1:13: +1:28 | |
21 | StorageDead(_2); // scope 0 at $DIR/aggregate.rs:+1:27: +1:28 | |
22 | StorageDead(_3); // scope 0 at $DIR/aggregate.rs:+1:28: +1:29 | |
23 | StorageLive(_4); // scope 1 at $DIR/aggregate.rs:+2:5: +2:11 | |
24 | StorageLive(_5); // scope 1 at $DIR/aggregate.rs:+2:9: +2:10 | |
25 | _5 = const 1_u8; // scope 1 at $DIR/aggregate.rs:+2:9: +2:10 | |
26 | _4 = foo(move _5) -> bb1; // scope 1 at $DIR/aggregate.rs:+2:5: +2:11 | |
27 | // mir::Constant | |
28 | // + span: $DIR/aggregate.rs:8:5: 8:8 | |
29 | // + literal: Const { ty: fn(u8) {foo}, val: Value(<ZST>) } | |
30 | } | |
31 | ||
32 | bb1: { | |
33 | StorageDead(_5); // scope 1 at $DIR/aggregate.rs:+2:10: +2:11 | |
34 | StorageDead(_4); // scope 1 at $DIR/aggregate.rs:+2:11: +2:12 | |
35 | _0 = const (); // scope 0 at $DIR/aggregate.rs:+0:11: +3:2 | |
36 | StorageDead(_1); // scope 0 at $DIR/aggregate.rs:+3:1: +3:2 | |
37 | return; // scope 0 at $DIR/aggregate.rs:+3:2: +3:2 | |
38 | } | |
39 | } |