]> git.lizzy.rs Git - rust.git/commitdiff
clean tests/ui/reference.rs
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 14:38:19 +0000 (15:38 +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/reference.rs
tests/ui/reference.stderr

index d1160df9e128a36752bfb3ff9f9d476dbc474928..6928f16d10ac06f98626d6603c569818d3a566fd 100644 (file)
@@ -18,62 +18,32 @@ fn main() {
 
     let b = *&a;
 
-
-
-
     let b = *&get_number();
 
-
-
-
     let b = *get_reference(&a);
 
     let bytes : Vec<usize> = vec![1, 2, 3, 4];
     let b = *&bytes[1..2][0];
 
-
-
-
     //This produces a suggestion of 'let b = (a);' which
     //will trigger the 'unused_parens' lint
     let b = *&(a);
 
-
-
-
     let b = *(&a);
 
-
-
-
     let b = *((&a));
 
-
-
-
     let b = *&&a;
 
-
-
-
     let b = **&aref;
 
-
-
-
     //This produces a suggestion of 'let b = *&a;' which
     //will trigger the 'deref_addrof' lint again
     let b = **&&a;
 
-
-
-
     {
         let mut x = 10;
         let y = *&mut x;
-
-
-
     }
 
     {
@@ -81,8 +51,5 @@ fn main() {
         //will trigger the 'deref_addrof' lint again
         let mut x = 10;
         let y = **&mut &mut x;
-
-
-
     }
 }
index 5d41c1809b45a0da6f76d498cbfe7bd47ff86cab..b25f7737c790e826f8ba7ff564d4e8bd979bac3e 100644 (file)
@@ -11,63 +11,63 @@ note: lint level defined here
    |        ^^^^^^^^^^^^
 
 error: immediately dereferencing a reference
-  --> $DIR/reference.rs:24:13
+  --> $DIR/reference.rs:21:13
    |
-24 |     let b = *&get_number();
+21 |     let b = *&get_number();
    |             ^^^^^^^^^^^^^^ help: try this `get_number()`
 
 error: immediately dereferencing a reference
-  --> $DIR/reference.rs:32:13
+  --> $DIR/reference.rs:26:13
    |
-32 |     let b = *&bytes[1..2][0];
+26 |     let b = *&bytes[1..2][0];
    |             ^^^^^^^^^^^^^^^^ help: try this `bytes[1..2][0]`
 
 error: immediately dereferencing a reference
-  --> $DIR/reference.rs:39:13
+  --> $DIR/reference.rs:30:13
    |
-39 |     let b = *&(a);
+30 |     let b = *&(a);
    |             ^^^^^ help: try this `(a)`
 
 error: immediately dereferencing a reference
-  --> $DIR/reference.rs:44:13
+  --> $DIR/reference.rs:32:13
    |
-44 |     let b = *(&a);
+32 |     let b = *(&a);
    |             ^^^^^ help: try this `a`
 
 error: immediately dereferencing a reference
-  --> $DIR/reference.rs:49:13
+  --> $DIR/reference.rs:34:13
    |
-49 |     let b = *((&a));
+34 |     let b = *((&a));
    |             ^^^^^^^ help: try this `a`
 
 error: immediately dereferencing a reference
-  --> $DIR/reference.rs:54:13
+  --> $DIR/reference.rs:36:13
    |
-54 |     let b = *&&a;
+36 |     let b = *&&a;
    |             ^^^^ help: try this `&a`
 
 error: immediately dereferencing a reference
-  --> $DIR/reference.rs:59:14
+  --> $DIR/reference.rs:38:14
    |
-59 |     let b = **&aref;
+38 |     let b = **&aref;
    |              ^^^^^^ help: try this `aref`
 
 error: immediately dereferencing a reference
-  --> $DIR/reference.rs:66:14
+  --> $DIR/reference.rs:42:14
    |
-66 |     let b = **&&a;
+42 |     let b = **&&a;
    |              ^^^^ help: try this `&a`
 
 error: immediately dereferencing a reference
-  --> $DIR/reference.rs:73:17
+  --> $DIR/reference.rs:46:17
    |
-73 |         let y = *&mut x;
+46 |         let y = *&mut x;
    |                 ^^^^^^^ help: try this `x`
 
 error: immediately dereferencing a reference
-  --> $DIR/reference.rs:83:18
+  --> $DIR/reference.rs:53:18
    |
-83 |         let y = **&mut &mut x;
+53 |         let y = **&mut &mut x;
    |                  ^^^^^^^^^^^^ help: try this `&mut x`
 
 error: aborting due to 11 previous errors