about summary refs log tree commit diff
path: root/tests/mir-opt/copy-prop/borrowed_local.borrowed.CopyProp.panic-unwind.diff
blob: d09c96c0f2ba1e59483abdf8f1e2cc18cff1f298 (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
- // MIR for `borrowed` before CopyProp
+ // MIR for `borrowed` after CopyProp
  
  fn borrowed(_1: T) -> bool {
      let mut _0: bool;
      let mut _2: T;
      let mut _3: &T;
  
      bb0: {
-         _2 = copy _1;
          _3 = &_1;
          _0 = opaque::<&T>(copy _3) -> [return: bb1, unwind continue];
      }
  
      bb1: {
-         _0 = opaque::<T>(copy _2) -> [return: bb2, unwind continue];
+         _0 = opaque::<T>(copy _1) -> [return: bb2, unwind continue];
      }
  
      bb2: {
          return;
      }
  }