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

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

29 lines
1.4 KiB
Diff
Raw Normal View History

2020-04-04 12:15:01 -05: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_specialization.rs:+0:11: +0:11
let _1: u32; // in scope 0 at $DIR/inline_specialization.rs:+1:9: +1:10
2020-04-04 12:15:01 -05:00
scope 1 {
2022-11-02 16:54:49 -05:00
debug x => _1; // in scope 1 at $DIR/inline_specialization.rs:+1:9: +1:10
2020-04-04 12:15:01 -05:00
}
2023-04-05 03:44:20 -05:00
+ scope 2 (inlined <Vec<()> as Foo>::bar) { // at $DIR/inline_specialization.rs:6:13: 6:38
2020-04-04 12:15:01 -05:00
+ }
bb0: {
2022-11-02 16:54:49 -05:00
StorageLive(_1); // scope 0 at $DIR/inline_specialization.rs:+1:9: +1:10
- _1 = <Vec<()> as Foo>::bar() -> bb1; // scope 0 at $DIR/inline_specialization.rs:+1:13: +1:38
- // mir::Constant
2023-04-05 03:44:20 -05:00
- // + span: $DIR/inline_specialization.rs:6:13: 6:36
2022-07-06 09:14:46 -05:00
- // + literal: Const { ty: fn() -> u32 {<Vec<()> as Foo>::bar}, val: Value(<ZST>) }
2020-04-04 12:15:01 -05:00
- }
-
- bb1: {
2023-04-05 03:44:20 -05:00
+ _1 = const 123_u32; // scope 2 at $DIR/inline_specialization.rs:15:31: 15:34
2022-11-02 16:54:49 -05:00
_0 = const (); // scope 0 at $DIR/inline_specialization.rs:+0:11: +2:2
StorageDead(_1); // scope 0 at $DIR/inline_specialization.rs:+2:1: +2:2
return; // scope 0 at $DIR/inline_specialization.rs:+2:2: +2:2
2020-04-04 12:15:01 -05:00
}
}