]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/bit_masks.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / bit_masks.stderr
1 error: &-masking with zero
2   --> bit_masks.rs:12:5
3    |
4 12 |     x & 0 == 0;
5    |     ^^^^^^^^^^
6    |
7    = note: `-D bad-bit-mask` implied by `-D warnings`
8
9 error: incompatible bit mask: `_ & 2` can never be equal to `1`
10   --> bit_masks.rs:15:5
11    |
12 15 |     x & 2 == 1;
13    |     ^^^^^^^^^^
14    |
15    = note: `-D bad-bit-mask` implied by `-D warnings`
16
17 error: incompatible bit mask: `_ | 3` can never be equal to `2`
18   --> bit_masks.rs:19:5
19    |
20 19 |     x | 3 == 2;
21    |     ^^^^^^^^^^
22    |
23    = note: `-D bad-bit-mask` implied by `-D warnings`
24
25 error: incompatible bit mask: `_ & 1` will never be higher than `1`
26   --> bit_masks.rs:21:5
27    |
28 21 |     x & 1 > 1;
29    |     ^^^^^^^^^
30    |
31    = note: `-D bad-bit-mask` implied by `-D warnings`
32
33 error: incompatible bit mask: `_ | 2` will always be higher than `1`
34   --> bit_masks.rs:25:5
35    |
36 25 |     x | 2 > 1;
37    |     ^^^^^^^^^
38    |
39    = note: `-D bad-bit-mask` implied by `-D warnings`
40
41 error: incompatible bit mask: `_ & 7` can never be equal to `8`
42   --> bit_masks.rs:32:5
43    |
44 32 |     x & THREE_BITS == 8;
45    |     ^^^^^^^^^^^^^^^^^^^
46    |
47    = note: `-D bad-bit-mask` implied by `-D warnings`
48
49 error: incompatible bit mask: `_ | 7` will never be lower than `7`
50   --> bit_masks.rs:33:5
51    |
52 33 |     x | EVEN_MORE_REDIRECTION < 7;
53    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54    |
55    = note: `-D bad-bit-mask` implied by `-D warnings`
56
57 error: &-masking with zero
58   --> bit_masks.rs:35:5
59    |
60 35 |     0 & x == 0;
61    |     ^^^^^^^^^^
62    |
63    = note: `-D bad-bit-mask` implied by `-D warnings`
64
65 error: incompatible bit mask: `_ | 2` will always be higher than `1`
66   --> bit_masks.rs:39:5
67    |
68 39 |     1 < 2 | x;
69    |     ^^^^^^^^^
70    |
71    = note: `-D bad-bit-mask` implied by `-D warnings`
72
73 error: incompatible bit mask: `_ | 3` can never be equal to `2`
74   --> bit_masks.rs:40:5
75    |
76 40 |     2 == 3 | x;
77    |     ^^^^^^^^^^
78    |
79    = note: `-D bad-bit-mask` implied by `-D warnings`
80
81 error: incompatible bit mask: `_ & 2` can never be equal to `1`
82   --> bit_masks.rs:41:5
83    |
84 41 |     1 == x & 2;
85    |     ^^^^^^^^^^
86    |
87    = note: `-D bad-bit-mask` implied by `-D warnings`
88
89 error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly
90   --> bit_masks.rs:52:5
91    |
92 52 |     x | 1 > 3;
93    |     ^^^^^^^^^
94    |
95    = note: `-D ineffective-bit-mask` implied by `-D warnings`
96
97 error: ineffective bit mask: `x | 1` compared to `4`, is the same as x compared directly
98   --> bit_masks.rs:53:5
99    |
100 53 |     x | 1 < 4;
101    |     ^^^^^^^^^
102    |
103    = note: `-D ineffective-bit-mask` implied by `-D warnings`
104
105 error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly
106   --> bit_masks.rs:54:5
107    |
108 54 |     x | 1 <= 3;
109    |     ^^^^^^^^^^
110    |
111    = note: `-D ineffective-bit-mask` implied by `-D warnings`
112
113 error: ineffective bit mask: `x | 1` compared to `8`, is the same as x compared directly
114   --> bit_masks.rs:55:5
115    |
116 55 |     x | 1 >= 8;
117    |     ^^^^^^^^^^
118    |
119    = note: `-D ineffective-bit-mask` implied by `-D warnings`
120
121 error: aborting due to previous error(s)
122
123
124 To learn more, run the command again with --verbose.