2021-01-23 13:49:20 +00:00
|
|
|
- // MIR for `main` before Inline
|
|
|
|
+ // MIR for `main` after Inline
|
|
|
|
|
|
|
|
fn main() -> () {
|
2021-01-25 09:34:33 +00:00
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/cycle.rs:16:11: 16:11
|
|
|
|
let _1: (); // in scope 0 at $DIR/cycle.rs:17:5: 17:9
|
2021-01-23 13:49:20 +00:00
|
|
|
|
|
|
|
bb0: {
|
2021-01-25 09:34:33 +00:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/cycle.rs:17:5: 17:9
|
|
|
|
_1 = f::<fn() {g}>(g) -> bb1; // scope 0 at $DIR/cycle.rs:17:5: 17:9
|
2021-01-23 13:49:20 +00:00
|
|
|
// mir::Constant
|
2021-01-25 09:34:33 +00:00
|
|
|
// + span: $DIR/cycle.rs:17:5: 17:6
|
2021-01-23 13:49:20 +00:00
|
|
|
// + literal: Const { ty: fn(fn() {g}) {f::<fn() {g}>}, val: Value(Scalar(<ZST>)) }
|
|
|
|
// mir::Constant
|
2021-01-25 09:34:33 +00:00
|
|
|
// + span: $DIR/cycle.rs:17:7: 17:8
|
2021-01-23 13:49:20 +00:00
|
|
|
// + literal: Const { ty: fn() {g}, val: Value(Scalar(<ZST>)) }
|
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2021-01-25 09:34:33 +00:00
|
|
|
StorageDead(_1); // scope 0 at $DIR/cycle.rs:17:9: 17:10
|
|
|
|
_0 = const (); // scope 0 at $DIR/cycle.rs:16:11: 18:2
|
|
|
|
return; // scope 0 at $DIR/cycle.rs:18:2: 18:2
|
2021-01-23 13:49:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|