about summary refs log tree commit diff
path: root/tests/mir-opt/copy-prop/move_arg.f.CopyProp.panic-unwind.diff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/copy-prop/move_arg.f.CopyProp.panic-unwind.diff')
-rw-r--r--tests/mir-opt/copy-prop/move_arg.f.CopyProp.panic-unwind.diff49
1 files changed, 23 insertions, 26 deletions
diff --git a/tests/mir-opt/copy-prop/move_arg.f.CopyProp.panic-unwind.diff b/tests/mir-opt/copy-prop/move_arg.f.CopyProp.panic-unwind.diff
index 650bd66a7d7..cbbf6686b04 100644
--- a/tests/mir-opt/copy-prop/move_arg.f.CopyProp.panic-unwind.diff
+++ b/tests/mir-opt/copy-prop/move_arg.f.CopyProp.panic-unwind.diff
@@ -2,39 +2,36 @@
 + // MIR for `f` after CopyProp
   
   fn f(_1: T) -> () {
-      debug a => _1;                       // in scope 0 at $DIR/move_arg.rs:+0:19: +0:20
-      let mut _0: ();                      // return place in scope 0 at $DIR/move_arg.rs:+0:25: +0:25
-      let _2: T;                           // in scope 0 at $DIR/move_arg.rs:+1:9: +1:10
-      let _3: ();                          // in scope 0 at $DIR/move_arg.rs:+2:5: +2:12
-      let mut _4: T;                       // in scope 0 at $DIR/move_arg.rs:+2:7: +2:8
-      let mut _5: T;                       // in scope 0 at $DIR/move_arg.rs:+2:10: +2:11
+      debug a => _1;
+      let mut _0: ();
+      let _2: T;
+      let _3: ();
+      let mut _4: T;
+      let mut _5: T;
       scope 1 {
--         debug b => _2;                   // in scope 1 at $DIR/move_arg.rs:+1:9: +1:10
-+         debug b => _1;                   // in scope 1 at $DIR/move_arg.rs:+1:9: +1:10
+-         debug b => _2;
++         debug b => _1;
       }
   
       bb0: {
--         StorageLive(_2);                 // scope 0 at $DIR/move_arg.rs:+1:9: +1:10
--         _2 = _1;                         // scope 0 at $DIR/move_arg.rs:+1:13: +1:14
-          StorageLive(_3);                 // scope 1 at $DIR/move_arg.rs:+2:5: +2:12
--         StorageLive(_4);                 // scope 1 at $DIR/move_arg.rs:+2:7: +2:8
--         _4 = _1;                         // scope 1 at $DIR/move_arg.rs:+2:7: +2:8
--         StorageLive(_5);                 // scope 1 at $DIR/move_arg.rs:+2:10: +2:11
--         _5 = _2;                         // scope 1 at $DIR/move_arg.rs:+2:10: +2:11
--         _3 = g::<T>(move _4, move _5) -> bb1; // scope 1 at $DIR/move_arg.rs:+2:5: +2:12
-+         _3 = g::<T>(_1, _1) -> bb1;      // scope 1 at $DIR/move_arg.rs:+2:5: +2:12
-                                           // mir::Constant
-                                           // + span: $DIR/move_arg.rs:8:5: 8:6
-                                           // + literal: Const { ty: fn(T, T) {g::<T>}, val: Value(<ZST>) }
+-         StorageLive(_2);
+-         _2 = _1;
+          StorageLive(_3);
+-         StorageLive(_4);
+-         _4 = _1;
+-         StorageLive(_5);
+-         _5 = _2;
+-         _3 = g::<T>(move _4, move _5) -> bb1;
++         _3 = g::<T>(_1, _1) -> bb1;
       }
   
       bb1: {
--         StorageDead(_5);                 // scope 1 at $DIR/move_arg.rs:+2:11: +2:12
--         StorageDead(_4);                 // scope 1 at $DIR/move_arg.rs:+2:11: +2:12
-          StorageDead(_3);                 // scope 1 at $DIR/move_arg.rs:+2:12: +2:13
-          _0 = const ();                   // scope 0 at $DIR/move_arg.rs:+0:25: +3:2
--         StorageDead(_2);                 // scope 0 at $DIR/move_arg.rs:+3:1: +3:2
-          return;                          // scope 0 at $DIR/move_arg.rs:+3:2: +3:2
+-         StorageDead(_5);
+-         StorageDead(_4);
+          StorageDead(_3);
+          _0 = const ();
+-         StorageDead(_2);
+          return;
       }
   }