about summary refs log tree commit diff
path: root/tests/ui/thir-print
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-03-01 20:56:17 +0000
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-03-02 18:21:44 +0000
commite3d397a5f67e9cc9d00789ed2e0ab50e22bc9ab4 (patch)
tree2ca51f644c4a6321fea8daf344ba45e40085ecd0 /tests/ui/thir-print
parent5157d938c49af1248a21e7ed2fbc5c6f71963276 (diff)
downloadrust-e3d397a5f67e9cc9d00789ed2e0ab50e22bc9ab4.tar.gz
rust-e3d397a5f67e9cc9d00789ed2e0ab50e22bc9ab4.zip
Make `ExprKind` the first field in `thir::Expr`
This makes its `Debug` impl print it first which is useful, as it's the
most important part when looking at an expr.
Diffstat (limited to 'tests/ui/thir-print')
-rw-r--r--tests/ui/thir-print/thir-flat.stdout18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/ui/thir-print/thir-flat.stdout b/tests/ui/thir-print/thir-flat.stdout
index c31e6a218ce..910c0da2737 100644
--- a/tests/ui/thir-print/thir-flat.stdout
+++ b/tests/ui/thir-print/thir-flat.stdout
@@ -17,21 +17,16 @@ Thir {
     ],
     exprs: [
         Expr {
-            ty: (),
-            temp_lifetime: Some(
-                Node(2),
-            ),
-            span: $DIR/thir-flat.rs:4:15: 4:17 (#0),
             kind: Block {
                 block: b0,
             },
-        },
-        Expr {
             ty: (),
             temp_lifetime: Some(
                 Node(2),
             ),
             span: $DIR/thir-flat.rs:4:15: 4:17 (#0),
+        },
+        Expr {
             kind: Scope {
                 region_scope: Node(2),
                 lint_level: Explicit(
@@ -39,18 +34,23 @@ Thir {
                 ),
                 value: e0,
             },
-        },
-        Expr {
             ty: (),
             temp_lifetime: Some(
                 Node(2),
             ),
             span: $DIR/thir-flat.rs:4:15: 4:17 (#0),
+        },
+        Expr {
             kind: Scope {
                 region_scope: Destruction(2),
                 lint_level: Inherited,
                 value: e1,
             },
+            ty: (),
+            temp_lifetime: Some(
+                Node(2),
+            ),
+            span: $DIR/thir-flat.rs:4:15: 4:17 (#0),
         },
     ],
     stmts: [],