]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/bit_masks.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / bit_masks.stderr
index 853f5a992f3b12d003bf8b87a9f2f3c8f04a0359..da883dcbfc4f1d8986dbcea78d246326e70aae8b 100644 (file)
@@ -1,7 +1,7 @@
 error: &-masking with zero
   --> $DIR/bit_masks.rs:23:5
    |
-23 |     x & 0 == 0;
+LL |     x & 0 == 0;
    |     ^^^^^^^^^^
    |
    = note: `-D clippy::bad-bit-mask` implied by `-D warnings`
@@ -9,7 +9,7 @@ error: &-masking with zero
 error: this operation will always return zero. This is likely not the intended outcome
   --> $DIR/bit_masks.rs:23:5
    |
-23 |     x & 0 == 0;
+LL |     x & 0 == 0;
    |     ^^^^^
    |
    = note: #[deny(clippy::erasing_op)] on by default
@@ -17,73 +17,73 @@ error: this operation will always return zero. This is likely not the intended o
 error: incompatible bit mask: `_ & 2` can never be equal to `1`
   --> $DIR/bit_masks.rs:26:5
    |
-26 |     x & 2 == 1;
+LL |     x & 2 == 1;
    |     ^^^^^^^^^^
 
 error: incompatible bit mask: `_ | 3` can never be equal to `2`
   --> $DIR/bit_masks.rs:30:5
    |
-30 |     x | 3 == 2;
+LL |     x | 3 == 2;
    |     ^^^^^^^^^^
 
 error: incompatible bit mask: `_ & 1` will never be higher than `1`
   --> $DIR/bit_masks.rs:32:5
    |
-32 |     x & 1 > 1;
+LL |     x & 1 > 1;
    |     ^^^^^^^^^
 
 error: incompatible bit mask: `_ | 2` will always be higher than `1`
   --> $DIR/bit_masks.rs:36:5
    |
-36 |     x | 2 > 1;
+LL |     x | 2 > 1;
    |     ^^^^^^^^^
 
 error: incompatible bit mask: `_ & 7` can never be equal to `8`
   --> $DIR/bit_masks.rs:43:5
    |
-43 |     x & THREE_BITS == 8;
+LL |     x & THREE_BITS == 8;
    |     ^^^^^^^^^^^^^^^^^^^
 
 error: incompatible bit mask: `_ | 7` will never be lower than `7`
   --> $DIR/bit_masks.rs:44:5
    |
-44 |     x | EVEN_MORE_REDIRECTION < 7;
+LL |     x | EVEN_MORE_REDIRECTION < 7;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: &-masking with zero
   --> $DIR/bit_masks.rs:46:5
    |
-46 |     0 & x == 0;
+LL |     0 & x == 0;
    |     ^^^^^^^^^^
 
 error: this operation will always return zero. This is likely not the intended outcome
   --> $DIR/bit_masks.rs:46:5
    |
-46 |     0 & x == 0;
+LL |     0 & x == 0;
    |     ^^^^^
 
 error: incompatible bit mask: `_ | 2` will always be higher than `1`
   --> $DIR/bit_masks.rs:50:5
    |
-50 |     1 < 2 | x;
+LL |     1 < 2 | x;
    |     ^^^^^^^^^
 
 error: incompatible bit mask: `_ | 3` can never be equal to `2`
   --> $DIR/bit_masks.rs:51:5
    |
-51 |     2 == 3 | x;
+LL |     2 == 3 | x;
    |     ^^^^^^^^^^
 
 error: incompatible bit mask: `_ & 2` can never be equal to `1`
   --> $DIR/bit_masks.rs:52:5
    |
-52 |     1 == x & 2;
+LL |     1 == x & 2;
    |     ^^^^^^^^^^
 
 error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly
   --> $DIR/bit_masks.rs:63:5
    |
-63 |     x | 1 > 3;
+LL |     x | 1 > 3;
    |     ^^^^^^^^^
    |
    = note: `-D clippy::ineffective-bit-mask` implied by `-D warnings`
@@ -91,19 +91,19 @@ error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared
 error: ineffective bit mask: `x | 1` compared to `4`, is the same as x compared directly
   --> $DIR/bit_masks.rs:64:5
    |
-64 |     x | 1 < 4;
+LL |     x | 1 < 4;
    |     ^^^^^^^^^
 
 error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly
   --> $DIR/bit_masks.rs:65:5
    |
-65 |     x | 1 <= 3;
+LL |     x | 1 <= 3;
    |     ^^^^^^^^^^
 
 error: ineffective bit mask: `x | 1` compared to `8`, is the same as x compared directly
   --> $DIR/bit_masks.rs:66:5
    |
-66 |     x | 1 >= 8;
+LL |     x | 1 >= 8;
    |     ^^^^^^^^^^
 
 error: aborting due to 17 previous errors