about summary refs log tree commit diff
path: root/src/test/mir-opt/inline/cycle.main.Inline.diff
blob: c8d1448d949d44707efac924bc109e865a084de7 (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
- // MIR for `main` before Inline
+ // MIR for `main` after Inline
  
  fn main() -> () {
      let mut _0: ();                      // return place in scope 0 at $DIR/cycle.rs:16:11: 16:11
      let _1: ();                          // in scope 0 at $DIR/cycle.rs:17:5: 17:9
  
      bb0: {
          StorageLive(_1);                 // scope 0 at $DIR/cycle.rs:17:5: 17:9
          _1 = f::<fn() {g}>(g) -> bb1;    // scope 0 at $DIR/cycle.rs:17:5: 17:9
                                           // mir::Constant
                                           // + span: $DIR/cycle.rs:17:5: 17:6
                                           // + literal: Const { ty: fn(fn() {g}) {f::<fn() {g}>}, val: Value(Scalar(<ZST>)) }
                                           // mir::Constant
                                           // + span: $DIR/cycle.rs:17:7: 17:8
                                           // + literal: Const { ty: fn() {g}, val: Value(Scalar(<ZST>)) }
      }
  
      bb1: {
          StorageDead(_1);                 // scope 0 at $DIR/cycle.rs:17:9: 17:10
          _0 = const ();                   // scope 0 at $DIR/cycle.rs:16:11: 18:2
          return;                          // scope 0 at $DIR/cycle.rs:18:2: 18:2
      }
  }