]> git.lizzy.rs Git - rust.git/commitdiff
clean tests/ui/eval_order_dependence.rs
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 11:08:07 +0000 (12:08 +0100)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 15:22:32 +0000 (16:22 +0100)
Cleaning the empty lines for clarity.

tests/ui/eval_order_dependence.rs
tests/ui/eval_order_dependence.stderr

index 851a199f929f1dec8a303d3e12837fbb27ba17c9..1c25afed77aa9c52bb897804a2f6839b8d426b06 100644 (file)
@@ -7,7 +7,6 @@ fn main() {
     let mut x = 0;
     let a = { x = 1; 1 } + x;
 
-
     // Example from iss#277
     x += { x = 20; 2 };
 
@@ -16,7 +15,6 @@ fn main() {
     struct Foo { a: i32, b: i32 };
     let base = Foo { a: 4, b: 5 };
     let foo = Foo { a: x, .. { x = 6; base } };
-
     // ...inside a closure?
     let closure = || {
         let mut x = 0;
index ba985dd907a04137eb7bec9d7a5672bcbc66a4ab..5e5ae53e1842b0905a974fb2a73309da2df4fe8e 100644 (file)
@@ -16,39 +16,39 @@ note: whether read occurs before this write depends on evaluation order
   |               ^^^^^
 
 error: unsequenced read of a variable
-  --> $DIR/eval_order_dependence.rs:12:5
+  --> $DIR/eval_order_dependence.rs:11:5
    |
-12 |     x += { x = 20; 2 };
+11 |     x += { x = 20; 2 };
    |     ^
    |
 note: whether read occurs before this write depends on evaluation order
-  --> $DIR/eval_order_dependence.rs:12:12
+  --> $DIR/eval_order_dependence.rs:11:12
    |
-12 |     x += { x = 20; 2 };
+11 |     x += { x = 20; 2 };
    |            ^^^^^^
 
 error: unsequenced read of a variable
-  --> $DIR/eval_order_dependence.rs:18:24
+  --> $DIR/eval_order_dependence.rs:17:24
    |
-18 |     let foo = Foo { a: x, .. { x = 6; base } };
+17 |     let foo = Foo { a: x, .. { x = 6; base } };
    |                        ^
    |
 note: whether read occurs before this write depends on evaluation order
-  --> $DIR/eval_order_dependence.rs:18:32
+  --> $DIR/eval_order_dependence.rs:17:32
    |
-18 |     let foo = Foo { a: x, .. { x = 6; base } };
+17 |     let foo = Foo { a: x, .. { x = 6; base } };
    |                                ^^^^^
 
 error: unsequenced read of a variable
-  --> $DIR/eval_order_dependence.rs:23:9
+  --> $DIR/eval_order_dependence.rs:21:9
    |
-23 |         x += { x = 20; 2 };
+21 |         x += { x = 20; 2 };
    |         ^
    |
 note: whether read occurs before this write depends on evaluation order
-  --> $DIR/eval_order_dependence.rs:23:16
+  --> $DIR/eval_order_dependence.rs:21:16
    |
-23 |         x += { x = 20; 2 };
+21 |         x += { x = 20; 2 };
    |                ^^^^^^
 
 error: aborting due to 4 previous errors