rust/tests/mir-opt/inline/inline_cycle_generic.main.Inline.diff

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.6 KiB
Diff
Raw Normal View History

2020-12-29 10:21:52 -06:00
- // MIR for `main` before Inline
+ // 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_cycle_generic.rs:+0:11: +0:11
let _1: (); // in scope 0 at $DIR/inline_cycle_generic.rs:+1:5: +1:24
2023-04-05 03:44:20 -05:00
+ 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
2021-12-13 06:46:30 -06:00
+ }
+ }
2020-12-29 10:21:52 -06:00
bb0: {
2022-11-02 16:54:49 -05:00
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
2023-04-05 03:44:20 -05:00
+ _1 = <A as Call>::call() -> bb1; // scope 2 at $DIR/inline_cycle_generic.rs:32:9: 32:28
2020-12-29 10:21:52 -06:00
// mir::Constant
2023-04-05 03:44:20 -05:00
- // + span: $DIR/inline_cycle_generic.rs:10:5: 10:22
2023-02-11 10:51:04 -06:00
- // + literal: Const { ty: fn() {<C as Call>::call}, val: Value(<ZST>) }
2023-04-05 03:44:20 -05:00
+ // + span: $DIR/inline_cycle_generic.rs:32:9: 32:26
2023-02-11 10:51:04 -06:00
+ // + literal: Const { ty: fn() {<A as Call>::call}, val: Value(<ZST>) }
2020-12-29 10:21:52 -06:00
}
bb1: {
2022-11-02 16:54:49 -05:00
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
2020-12-29 10:21:52 -06:00
}
}