summary refs log tree commit diff
path: root/src/test/mir-opt/inline/inline_diverging.f.Inline.diff
blob: ff25c5b4bc337f4c0aba72f830f16a33d900e839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
- // MIR for `f` before Inline
+ // MIR for `f` after Inline
  
  fn f() -> () {
      let mut _0: ();                      // return place in scope 0 at $DIR/inline-diverging.rs:7:12: 7:12
      let mut _1: !;                       // in scope 0 at $DIR/inline-diverging.rs:7:12: 9:2
      let _2: !;                           // in scope 0 at $DIR/inline-diverging.rs:8:5: 8:12
+     scope 1 (inlined sleep) {            // at $DIR/inline-diverging.rs:8:5: 8:12
+     }
  
      bb0: {
          StorageLive(_2);                 // scope 0 at $DIR/inline-diverging.rs:8:5: 8:12
-         _2 = sleep();                    // scope 0 at $DIR/inline-diverging.rs:8:5: 8:12
-                                          // mir::Constant
-                                          // + span: $DIR/inline-diverging.rs:8:5: 8:10
-                                          // + literal: Const { ty: fn() -> ! {sleep}, val: Value(Scalar(<ZST>)) }
+         goto -> bb1;                     // scope 0 at $DIR/inline-diverging.rs:8:5: 8:12
+     }
+ 
+     bb1: {
+         goto -> bb1;                     // scope 1 at $DIR/inline-diverging.rs:39:5: 39:12
+     }
+ 
+     bb2 (cleanup): {
+         resume;                          // scope 0 at $DIR/inline-diverging.rs:7:1: 9:2
      }
  }