about summary refs log tree commit diff
path: root/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.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/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff
parent331249a94930adb3d2a7243d946733b63324b2d6 (diff)
downloadrust-0a1fa411edbf6f9ad1205655d77cfda5a43aac06.tar.gz
rust-0a1fa411edbf6f9ad1205655d77cfda5a43aac06.zip
Remove comments from mir-opt MIR dumps
Diffstat (limited to 'tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff')
-rw-r--r--tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff27
1 files changed, 12 insertions, 15 deletions
diff --git a/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff b/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff
index 2159f9dd6cc..d3957158360 100644
--- a/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff
+++ b/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff
@@ -2,35 +2,32 @@
 + // MIR for `main` after SimplifyConstCondition-after-const-prop
   
   fn main() -> () {
-      let mut _0: ();                      // return place in scope 0 at $DIR/simplify_if.rs:+0:11: +0:11
-      let mut _1: bool;                    // in scope 0 at $DIR/simplify_if.rs:+1:8: +1:13
-      let _2: ();                          // in scope 0 at $DIR/simplify_if.rs:+2:9: +2:15
+      let mut _0: ();
+      let mut _1: bool;
+      let _2: ();
   
       bb0: {
-          StorageLive(_1);                 // scope 0 at $DIR/simplify_if.rs:+1:8: +1:13
-          _1 = const false;                // scope 0 at $DIR/simplify_if.rs:+1:8: +1:13
--         switchInt(const false) -> [0: bb3, otherwise: bb1]; // scope 0 at $DIR/simplify_if.rs:+1:8: +1:13
-+         goto -> bb3;                     // scope 0 at $DIR/simplify_if.rs:+1:8: +1:13
+          StorageLive(_1);
+          _1 = const false;
+-         switchInt(const false) -> [0: bb3, otherwise: bb1];
++         goto -> bb3;
       }
   
       bb1: {
-          _2 = noop() -> [return: bb2, unwind unreachable]; // scope 0 at $DIR/simplify_if.rs:+2:9: +2:15
-                                           // mir::Constant
-                                           // + span: $DIR/simplify_if.rs:8:9: 8:13
-                                           // + literal: Const { ty: fn() {noop}, val: Value(<ZST>) }
+          _2 = noop() -> [return: bb2, unwind unreachable];
       }
   
       bb2: {
-          goto -> bb4;                     // scope 0 at $DIR/simplify_if.rs:+1:5: +3:6
+          goto -> bb4;
       }
   
       bb3: {
-          goto -> bb4;                     // scope 0 at $DIR/simplify_if.rs:+1:5: +3:6
+          goto -> bb4;
       }
   
       bb4: {
-          StorageDead(_1);                 // scope 0 at $DIR/simplify_if.rs:+3:5: +3:6
-          return;                          // scope 0 at $DIR/simplify_if.rs:+4:2: +4:2
+          StorageDead(_1);
+          return;
       }
   }