|
| 1 | +// MIR for `main` after Inline |
| 2 | + |
| 3 | +fn main() -> () { |
| 4 | + let mut _0: (); // return place in scope 0 at $DIR/inline-options.rs:8:11: 8:11 |
| 5 | + let _1: (); // in scope 0 at $DIR/inline-options.rs:9:5: 9:18 |
| 6 | + let _2: (); // in scope 0 at $DIR/inline-options.rs:10:5: 10:21 |
| 7 | + scope 1 (inlined inlined::<u32>) { // at $DIR/inline-options.rs:10:5: 10:21 |
| 8 | + let _3: (); // in scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 9 | + let _4: (); // in scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 10 | + let _5: (); // in scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 11 | + } |
| 12 | + |
| 13 | + bb0: { |
| 14 | + StorageLive(_1); // scope 0 at $DIR/inline-options.rs:9:5: 9:18 |
| 15 | + _1 = not_inlined() -> bb1; // scope 0 at $DIR/inline-options.rs:9:5: 9:18 |
| 16 | + // mir::Constant |
| 17 | + // + span: $DIR/inline-options.rs:9:5: 9:16 |
| 18 | + // + literal: Const { ty: fn() {not_inlined}, val: Value(Scalar(<ZST>)) } |
| 19 | + } |
| 20 | + |
| 21 | + bb1: { |
| 22 | + StorageDead(_1); // scope 0 at $DIR/inline-options.rs:9:18: 9:19 |
| 23 | + StorageLive(_2); // scope 0 at $DIR/inline-options.rs:10:5: 10:21 |
| 24 | + StorageLive(_3); // scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 25 | + _3 = g() -> bb2; // scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 26 | + // mir::Constant |
| 27 | + // + span: $DIR/inline-options.rs:10:5: 10:21 |
| 28 | + // + literal: Const { ty: fn() {g}, val: Value(Scalar(<ZST>)) } |
| 29 | + } |
| 30 | + |
| 31 | + bb2: { |
| 32 | + StorageDead(_3); // scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 33 | + StorageLive(_4); // scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 34 | + _4 = g() -> bb3; // scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 35 | + // mir::Constant |
| 36 | + // + span: $DIR/inline-options.rs:10:5: 10:21 |
| 37 | + // + literal: Const { ty: fn() {g}, val: Value(Scalar(<ZST>)) } |
| 38 | + } |
| 39 | + |
| 40 | + bb3: { |
| 41 | + StorageDead(_4); // scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 42 | + StorageLive(_5); // scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 43 | + _5 = g() -> bb4; // scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 44 | + // mir::Constant |
| 45 | + // + span: $DIR/inline-options.rs:10:5: 10:21 |
| 46 | + // + literal: Const { ty: fn() {g}, val: Value(Scalar(<ZST>)) } |
| 47 | + } |
| 48 | + |
| 49 | + bb4: { |
| 50 | + StorageDead(_5); // scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 51 | + _2 = const (); // scope 1 at $DIR/inline-options.rs:10:5: 10:21 |
| 52 | + StorageDead(_2); // scope 0 at $DIR/inline-options.rs:10:21: 10:22 |
| 53 | + _0 = const (); // scope 0 at $DIR/inline-options.rs:8:11: 11:2 |
| 54 | + return; // scope 0 at $DIR/inline-options.rs:11:2: 11:2 |
| 55 | + } |
| 56 | +} |
0 commit comments