2020-11-09 18:00:00 -06:00
|
|
|
// MIR for `main` after Inline
|
|
|
|
|
|
|
|
fn main() -> () {
|
2022-11-02 16:54:49 -05:00
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/inline_options.rs:+0:11: +0:11
|
|
|
|
let _1: (); // in scope 0 at $DIR/inline_options.rs:+1:5: +1:18
|
|
|
|
let _2: (); // in scope 0 at $DIR/inline_options.rs:+2:5: +2:21
|
|
|
|
scope 1 (inlined inlined::<u32>) { // at $DIR/inline_options.rs:10:5: 10:21
|
|
|
|
let _3: (); // in scope 1 at $DIR/inline_options.rs:16:23: 16:26
|
|
|
|
let _4: (); // in scope 1 at $DIR/inline_options.rs:16:28: 16:31
|
|
|
|
let _5: (); // in scope 1 at $DIR/inline_options.rs:16:33: 16:36
|
2020-11-09 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/inline_options.rs:+1:5: +1:18
|
|
|
|
_1 = not_inlined() -> bb1; // scope 0 at $DIR/inline_options.rs:+1:5: +1:18
|
2020-11-09 18:00:00 -06:00
|
|
|
// mir::Constant
|
2022-11-02 16:54:49 -05:00
|
|
|
// + span: $DIR/inline_options.rs:9:5: 9:16
|
2022-07-06 09:14:46 -05:00
|
|
|
// + literal: Const { ty: fn() {not_inlined}, val: Value(<ZST>) }
|
2020-11-09 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageDead(_1); // scope 0 at $DIR/inline_options.rs:+1:18: +1:19
|
|
|
|
StorageLive(_2); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
|
2023-01-25 10:55:30 -06:00
|
|
|
StorageLive(_3); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
|
|
|
|
StorageLive(_4); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
|
|
|
|
StorageLive(_5); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
|
|
|
|
_3 = g() -> bb3; // scope 1 at $DIR/inline_options.rs:16:23: 16:26
|
2020-11-09 18:00:00 -06:00
|
|
|
// mir::Constant
|
2022-11-02 16:54:49 -05:00
|
|
|
// + span: $DIR/inline_options.rs:16:23: 16:24
|
2022-07-06 09:14:46 -05:00
|
|
|
// + literal: Const { ty: fn() {g}, val: Value(<ZST>) }
|
2020-11-09 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-01-25 10:55:30 -06:00
|
|
|
StorageDead(_5); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
|
|
|
|
StorageDead(_4); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
|
|
|
|
StorageDead(_3); // scope 0 at $DIR/inline_options.rs:+2:5: +2:21
|
|
|
|
StorageDead(_2); // scope 0 at $DIR/inline_options.rs:+2:21: +2:22
|
|
|
|
_0 = const (); // scope 0 at $DIR/inline_options.rs:+0:11: +3:2
|
|
|
|
return; // scope 0 at $DIR/inline_options.rs:+3:2: +3:2
|
2020-11-09 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2023-01-25 10:55:30 -06:00
|
|
|
_4 = g() -> bb4; // scope 1 at $DIR/inline_options.rs:16:28: 16:31
|
2020-11-09 18:00:00 -06:00
|
|
|
// mir::Constant
|
2023-01-25 10:55:30 -06:00
|
|
|
// + span: $DIR/inline_options.rs:16:28: 16:29
|
2022-07-06 09:14:46 -05:00
|
|
|
// + literal: Const { ty: fn() {g}, val: Value(<ZST>) }
|
2020-11-09 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
2023-01-25 10:55:30 -06:00
|
|
|
_5 = g() -> bb2; // scope 1 at $DIR/inline_options.rs:16:33: 16:36
|
|
|
|
// mir::Constant
|
|
|
|
// + span: $DIR/inline_options.rs:16:33: 16:34
|
|
|
|
// + literal: Const { ty: fn() {g}, val: Value(<ZST>) }
|
2020-11-09 18:00:00 -06:00
|
|
|
}
|
|
|
|
}
|