rust/tests/mir-opt/inline/inline_diverging.f.Inline.diff

25 lines
1.1 KiB
Diff
Raw Normal View History

- // MIR for `f` before Inline
+ // MIR for `f` after Inline
fn f() -> () {
2022-11-02 16:54:49 -05:00
let mut _0: (); // return place in scope 0 at $DIR/inline_diverging.rs:+0:12: +0:12
let mut _1: !; // in scope 0 at $DIR/inline_diverging.rs:+0:12: +2:2
let _2: !; // in scope 0 at $DIR/inline_diverging.rs:+1:5: +1:12
+ scope 1 (inlined sleep) { // at $DIR/inline_diverging.rs:8:5: 8:12
+ }
bb0: {
2022-11-02 16:54:49 -05:00
StorageLive(_2); // scope 0 at $DIR/inline_diverging.rs:+1:5: +1:12
- _2 = sleep(); // scope 0 at $DIR/inline_diverging.rs:+1:5: +1:12
- // mir::Constant
2022-11-02 16:54:49 -05:00
- // + span: $DIR/inline_diverging.rs:8:5: 8:10
2022-07-06 09:14:46 -05:00
- // + literal: Const { ty: fn() -> ! {sleep}, val: Value(<ZST>) }
2022-11-02 16:54:49 -05:00
+ goto -> bb1; // scope 0 at $DIR/inline_diverging.rs:+1:5: +1:12
+ }
+
+ bb1: {
2022-11-02 16:54:49 -05:00
+ goto -> bb1; // scope 1 at $DIR/inline_diverging.rs:39:5: 39:12
}
}