32 lines
1.7 KiB
Diff
32 lines
1.7 KiB
Diff
- // MIR for `main` before Inline
|
|
+ // MIR for `main` after Inline
|
|
|
|
fn main() -> () {
|
|
let mut _0: (); // return place in scope 0 at $DIR/inline_cycle_generic.rs:+0:11: +0:11
|
|
let _1: (); // in scope 0 at $DIR/inline_cycle_generic.rs:+1:5: +1:24
|
|
+ scope 1 (inlined <C as Call>::call) { // at $DIR/inline_cycle_generic.rs:10:5: 10:24
|
|
+ scope 2 (inlined <B<A> as Call>::call) { // at $DIR/inline_cycle_generic.rs:39:9: 39:31
|
|
+ scope 3 (inlined <A as Call>::call) { // at $DIR/inline_cycle_generic.rs:32:9: 32:28
|
|
+ }
|
|
+ }
|
|
+ }
|
|
|
|
bb0: {
|
|
StorageLive(_1); // scope 0 at $DIR/inline_cycle_generic.rs:+1:5: +1:24
|
|
- _1 = <C as Call>::call() -> bb1; // scope 0 at $DIR/inline_cycle_generic.rs:+1:5: +1:24
|
|
+ _1 = <B<C> as Call>::call() -> bb1; // scope 3 at $DIR/inline_cycle_generic.rs:24:9: 24:31
|
|
// mir::Constant
|
|
- // + span: $DIR/inline_cycle_generic.rs:10:5: 10:22
|
|
- // + literal: Const { ty: fn() {<C as Call>::call}, val: Value(<ZST>) }
|
|
+ // + span: $DIR/inline_cycle_generic.rs:24:9: 24:29
|
|
+ // + literal: Const { ty: fn() {<B<C> as Call>::call}, val: Value(<ZST>) }
|
|
}
|
|
|
|
bb1: {
|
|
StorageDead(_1); // scope 0 at $DIR/inline_cycle_generic.rs:+1:24: +1:25
|
|
_0 = const (); // scope 0 at $DIR/inline_cycle_generic.rs:+0:11: +2:2
|
|
return; // scope 0 at $DIR/inline_cycle_generic.rs:+2:2: +2:2
|
|
}
|
|
}
|
|
|