summary refs log tree commit diff
path: root/tests/mir-opt/inline/inline_cycle.two.Inline.panic-unwind.diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2023-06-06 09:47:00 -0400
committerBen Kimock <kimockb@gmail.com>2023-06-15 15:19:11 -0400
commit0a1fa411edbf6f9ad1205655d77cfda5a43aac06 (patch)
tree35f05b194635642648301bb16e271ce4ae6860a2 /tests/mir-opt/inline/inline_cycle.two.Inline.panic-unwind.diff
parent331249a94930adb3d2a7243d946733b63324b2d6 (diff)
downloadrust-0a1fa411edbf6f9ad1205655d77cfda5a43aac06.tar.gz
rust-0a1fa411edbf6f9ad1205655d77cfda5a43aac06.zip
Remove comments from mir-opt MIR dumps
Diffstat (limited to 'tests/mir-opt/inline/inline_cycle.two.Inline.panic-unwind.diff')
-rw-r--r--tests/mir-opt/inline/inline_cycle.two.Inline.panic-unwind.diff67
1 files changed, 29 insertions, 38 deletions
diff --git a/tests/mir-opt/inline/inline_cycle.two.Inline.panic-unwind.diff b/tests/mir-opt/inline/inline_cycle.two.Inline.panic-unwind.diff
index 48f0bd10301..d3bd412d953 100644
--- a/tests/mir-opt/inline/inline_cycle.two.Inline.panic-unwind.diff
+++ b/tests/mir-opt/inline/inline_cycle.two.Inline.panic-unwind.diff
@@ -2,19 +2,19 @@
 + // MIR for `two` after Inline
   
   fn two() -> () {
-      let mut _0: ();                      // return place in scope 0 at $DIR/inline_cycle.rs:+0:10: +0:10
-      let _1: ();                          // in scope 0 at $DIR/inline_cycle.rs:+1:5: +1:12
-+     let mut _2: fn() {f};                // in scope 0 at $DIR/inline_cycle.rs:+1:5: +1:12
-+     let mut _4: ();                      // in scope 0 at $DIR/inline_cycle.rs:55:5: 55:8
-+     scope 1 (inlined call::<fn() {f}>) { // at $DIR/inline_cycle.rs:50:5: 50:12
-+         debug f => _2;                   // in scope 1 at $DIR/inline_cycle.rs:54:22: 54:23
-+         let _3: ();                      // in scope 1 at $DIR/inline_cycle.rs:55:5: 55:8
-+         scope 2 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) { // at $DIR/inline_cycle.rs:55:5: 55:8
-+             scope 3 (inlined f) {        // at $SRC_DIR/core/src/ops/function.rs:LL:COL
-+                 scope 4 (inlined call::<fn() {f}>) { // at $DIR/inline_cycle.rs:60:5: 60:12
-+                     debug f => f;        // in scope 4 at $DIR/inline_cycle.rs:54:22: 54:23
-+                     let _5: ();          // in scope 4 at $DIR/inline_cycle.rs:55:5: 55:8
-+                     scope 5 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) { // at $DIR/inline_cycle.rs:55:5: 55:8
+      let mut _0: ();
+      let _1: ();
++     let mut _2: fn() {f};
++     let mut _4: ();
++     scope 1 (inlined call::<fn() {f}>) {
++         debug f => _2;
++         let _3: ();
++         scope 2 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) {
++             scope 3 (inlined f) {
++                 scope 4 (inlined call::<fn() {f}>) {
++                     debug f => f;
++                     let _5: ();
++                     scope 5 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) {
 +                     }
 +                 }
 +             }
@@ -22,34 +22,25 @@
 +     }
   
       bb0: {
-          StorageLive(_1);                 // scope 0 at $DIR/inline_cycle.rs:+1:5: +1:12
--         _1 = call::<fn() {f}>(f) -> bb1; // scope 0 at $DIR/inline_cycle.rs:+1:5: +1:12
-+         StorageLive(_2);                 // scope 0 at $DIR/inline_cycle.rs:+1:5: +1:12
-+         _2 = f;                          // scope 0 at $DIR/inline_cycle.rs:+1:5: +1:12
-                                           // mir::Constant
--                                          // + span: $DIR/inline_cycle.rs:50:5: 50:9
--                                          // + literal: Const { ty: fn(fn() {f}) {call::<fn() {f}>}, val: Value(<ZST>) }
--                                          // mir::Constant
-                                           // + span: $DIR/inline_cycle.rs:50:10: 50:11
-                                           // + literal: Const { ty: fn() {f}, val: Value(<ZST>) }
-+         StorageLive(_3);                 // scope 0 at $DIR/inline_cycle.rs:+1:5: +1:12
-+         StorageLive(_4);                 // scope 1 at $DIR/inline_cycle.rs:55:5: 55:8
-+         _4 = const ();                   // scope 1 at $DIR/inline_cycle.rs:55:5: 55:8
-+         StorageLive(_5);                 // scope 2 at $SRC_DIR/core/src/ops/function.rs:LL:COL
-+         _5 = f() -> bb1;                 // scope 5 at $SRC_DIR/core/src/ops/function.rs:LL:COL
-+                                          // mir::Constant
-+                                          // + span: no-location
-+                                          // + literal: Const { ty: fn() {f}, val: Value(<ZST>) }
+          StorageLive(_1);
+-         _1 = call::<fn() {f}>(f) -> bb1;
++         StorageLive(_2);
++         _2 = f;
++         StorageLive(_3);
++         StorageLive(_4);
++         _4 = const ();
++         StorageLive(_5);
++         _5 = f() -> bb1;
       }
   
       bb1: {
-+         StorageDead(_5);                 // scope 2 at $SRC_DIR/core/src/ops/function.rs:LL:COL
-+         StorageDead(_4);                 // scope 1 at $DIR/inline_cycle.rs:55:5: 55:8
-+         StorageDead(_3);                 // scope 0 at $DIR/inline_cycle.rs:+1:5: +1:12
-+         StorageDead(_2);                 // scope 0 at $DIR/inline_cycle.rs:+1:5: +1:12
-          StorageDead(_1);                 // scope 0 at $DIR/inline_cycle.rs:+1:12: +1:13
-          _0 = const ();                   // scope 0 at $DIR/inline_cycle.rs:+0:10: +2:2
-          return;                          // scope 0 at $DIR/inline_cycle.rs:+2:2: +2:2
++         StorageDead(_5);
++         StorageDead(_4);
++         StorageDead(_3);
++         StorageDead(_2);
+          StorageDead(_1);
+          _0 = const ();
+          return;
       }
   }