2020-11-08 18:00:00 -06:00
|
|
|
- // MIR for `one` before Inline
|
|
|
|
+ // MIR for `one` after Inline
|
|
|
|
|
|
|
|
fn one() -> () {
|
2022-11-02 16:54:49 -05:00
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/inline_cycle.rs:+0:10: +0:10
|
|
|
|
let _1: (); // in scope 0 at $DIR/inline_cycle.rs:+1:5: +1:24
|
2023-04-05 03:44:20 -05:00
|
|
|
+ scope 1 (inlined <C as Call>::call) { // at $DIR/inline_cycle.rs:15:5: 15:24
|
|
|
|
+ scope 2 (inlined <A<C> as Call>::call) { // at $DIR/inline_cycle.rs:44:9: 44:23
|
|
|
|
+ scope 3 (inlined <B<C> as Call>::call) { // at $DIR/inline_cycle.rs:29:9: 29:31
|
2023-01-02 00:01:29 -06:00
|
|
|
+ }
|
|
|
|
+ }
|
2020-11-08 18:00:00 -06:00
|
|
|
+ }
|
|
|
|
|
|
|
|
bb0: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageLive(_1); // scope 0 at $DIR/inline_cycle.rs:+1:5: +1:24
|
|
|
|
- _1 = <C as Call>::call() -> bb1; // scope 0 at $DIR/inline_cycle.rs:+1:5: +1:24
|
2023-04-05 03:44:20 -05:00
|
|
|
+ _1 = <C as Call>::call() -> bb1; // scope 3 at $DIR/inline_cycle.rs:37:9: 37:28
|
2020-11-08 18:00:00 -06:00
|
|
|
// mir::Constant
|
2023-04-05 03:44:20 -05:00
|
|
|
- // + span: $DIR/inline_cycle.rs:15:5: 15:22
|
|
|
|
+ // + span: $DIR/inline_cycle.rs:37:9: 37:26
|
2023-01-02 00:01:29 -06:00
|
|
|
// + literal: Const { ty: fn() {<C as Call>::call}, val: Value(<ZST>) }
|
2020-11-08 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageDead(_1); // scope 0 at $DIR/inline_cycle.rs:+1:24: +1:25
|
|
|
|
_0 = const (); // scope 0 at $DIR/inline_cycle.rs:+0:10: +2:2
|
|
|
|
return; // scope 0 at $DIR/inline_cycle.rs:+2:2: +2:2
|
2020-11-08 18:00:00 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|