|
1 |
| -error: this boolean expression can be simplified |
2 |
| - --> $DIR/eq_op.rs:35:5 |
3 |
| - | |
4 |
| -LL | true && true; |
5 |
| - | ^^^^^^^^^^^^ help: try: `true` |
6 |
| - | |
7 |
| - = note: `-D clippy::nonminimal-bool` implied by `-D warnings` |
8 |
| - |
9 |
| -error: this boolean expression can be simplified |
10 |
| - --> $DIR/eq_op.rs:37:5 |
11 |
| - | |
12 |
| -LL | true || true; |
13 |
| - | ^^^^^^^^^^^^ help: try: `true` |
14 |
| - |
15 |
| -error: this boolean expression can be simplified |
16 |
| - --> $DIR/eq_op.rs:43:5 |
17 |
| - | |
18 |
| -LL | a == b && b == a; |
19 |
| - | ^^^^^^^^^^^^^^^^ help: try: `a == b` |
20 |
| - |
21 |
| -error: this boolean expression can be simplified |
22 |
| - --> $DIR/eq_op.rs:44:5 |
23 |
| - | |
24 |
| -LL | a != b && b != a; |
25 |
| - | ^^^^^^^^^^^^^^^^ help: try: `a != b` |
26 |
| - |
27 |
| -error: this boolean expression can be simplified |
28 |
| - --> $DIR/eq_op.rs:45:5 |
29 |
| - | |
30 |
| -LL | a < b && b > a; |
31 |
| - | ^^^^^^^^^^^^^^ help: try: `a < b` |
32 |
| - |
33 |
| -error: this boolean expression can be simplified |
34 |
| - --> $DIR/eq_op.rs:46:5 |
35 |
| - | |
36 |
| -LL | a <= b && b >= a; |
37 |
| - | ^^^^^^^^^^^^^^^^ help: try: `a <= b` |
38 |
| - |
39 | 1 | error: equal expressions as operands to `==`
|
40 |
| - --> $DIR/eq_op.rs:8:5 |
| 2 | + --> $DIR/eq_op.rs:9:5 |
41 | 3 | |
|
42 | 4 | LL | 1 == 1;
|
43 | 5 | | ^^^^^^
|
44 | 6 | |
|
45 | 7 | = note: `-D clippy::eq-op` implied by `-D warnings`
|
46 | 8 |
|
47 | 9 | error: equal expressions as operands to `==`
|
48 |
| - --> $DIR/eq_op.rs:9:5 |
| 10 | + --> $DIR/eq_op.rs:10:5 |
49 | 11 | |
|
50 | 12 | LL | "no" == "no";
|
51 | 13 | | ^^^^^^^^^^^^
|
52 | 14 |
|
53 | 15 | error: equal expressions as operands to `!=`
|
54 |
| - --> $DIR/eq_op.rs:11:5 |
| 16 | + --> $DIR/eq_op.rs:12:5 |
55 | 17 | |
|
56 | 18 | LL | false != false;
|
57 | 19 | | ^^^^^^^^^^^^^^
|
58 | 20 |
|
59 | 21 | error: equal expressions as operands to `<`
|
60 |
| - --> $DIR/eq_op.rs:12:5 |
| 22 | + --> $DIR/eq_op.rs:13:5 |
61 | 23 | |
|
62 | 24 | LL | 1.5 < 1.5;
|
63 | 25 | | ^^^^^^^^^
|
64 | 26 |
|
65 | 27 | error: equal expressions as operands to `>=`
|
66 |
| - --> $DIR/eq_op.rs:13:5 |
| 28 | + --> $DIR/eq_op.rs:14:5 |
67 | 29 | |
|
68 | 30 | LL | 1u64 >= 1u64;
|
69 | 31 | | ^^^^^^^^^^^^
|
70 | 32 |
|
71 | 33 | error: equal expressions as operands to `&`
|
72 |
| - --> $DIR/eq_op.rs:16:5 |
| 34 | + --> $DIR/eq_op.rs:17:5 |
73 | 35 | |
|
74 | 36 | LL | (1 as u64) & (1 as u64);
|
75 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^
|
76 | 38 |
|
77 | 39 | error: equal expressions as operands to `^`
|
78 |
| - --> $DIR/eq_op.rs:17:5 |
| 40 | + --> $DIR/eq_op.rs:18:5 |
79 | 41 | |
|
80 | 42 | LL | 1 ^ ((((((1))))));
|
81 | 43 | | ^^^^^^^^^^^^^^^^^
|
82 | 44 |
|
83 | 45 | error: equal expressions as operands to `<`
|
84 |
| - --> $DIR/eq_op.rs:20:5 |
| 46 | + --> $DIR/eq_op.rs:21:5 |
85 | 47 | |
|
86 | 48 | LL | (-(2) < -(2));
|
87 | 49 | | ^^^^^^^^^^^^^
|
88 | 50 |
|
89 | 51 | error: equal expressions as operands to `==`
|
90 |
| - --> $DIR/eq_op.rs:21:5 |
| 52 | + --> $DIR/eq_op.rs:22:5 |
91 | 53 | |
|
92 | 54 | LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
93 | 55 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
94 | 56 |
|
95 | 57 | error: equal expressions as operands to `&`
|
96 |
| - --> $DIR/eq_op.rs:21:6 |
| 58 | + --> $DIR/eq_op.rs:22:6 |
97 | 59 | |
|
98 | 60 | LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
99 | 61 | | ^^^^^^^^^^^^^^^^^
|
100 | 62 |
|
101 | 63 | error: equal expressions as operands to `&`
|
102 |
| - --> $DIR/eq_op.rs:21:27 |
| 64 | + --> $DIR/eq_op.rs:22:27 |
103 | 65 | |
|
104 | 66 | LL | ((1 + 1) & (1 + 1) == (1 + 1) & (1 + 1));
|
105 | 67 | | ^^^^^^^^^^^^^^^^^
|
106 | 68 |
|
107 | 69 | error: equal expressions as operands to `==`
|
108 |
| - --> $DIR/eq_op.rs:22:5 |
| 70 | + --> $DIR/eq_op.rs:23:5 |
109 | 71 | |
|
110 | 72 | LL | (1 * 2) + (3 * 4) == 1 * 2 + 3 * 4;
|
111 | 73 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
112 | 74 |
|
113 | 75 | error: equal expressions as operands to `!=`
|
114 |
| - --> $DIR/eq_op.rs:25:5 |
| 76 | + --> $DIR/eq_op.rs:26:5 |
115 | 77 | |
|
116 | 78 | LL | ([1] != [1]);
|
117 | 79 | | ^^^^^^^^^^^^
|
118 | 80 |
|
119 | 81 | error: equal expressions as operands to `!=`
|
120 |
| - --> $DIR/eq_op.rs:26:5 |
| 82 | + --> $DIR/eq_op.rs:27:5 |
121 | 83 | |
|
122 | 84 | LL | ((1, 2) != (1, 2));
|
123 | 85 | | ^^^^^^^^^^^^^^^^^^
|
124 | 86 |
|
125 | 87 | error: equal expressions as operands to `==`
|
126 |
| - --> $DIR/eq_op.rs:30:5 |
| 88 | + --> $DIR/eq_op.rs:31:5 |
127 | 89 | |
|
128 | 90 | LL | 1 + 1 == 2;
|
129 | 91 | | ^^^^^^^^^^
|
130 | 92 |
|
131 | 93 | error: equal expressions as operands to `==`
|
132 |
| - --> $DIR/eq_op.rs:31:5 |
| 94 | + --> $DIR/eq_op.rs:32:5 |
133 | 95 | |
|
134 | 96 | LL | 1 - 1 == 0;
|
135 | 97 | | ^^^^^^^^^^
|
136 | 98 |
|
137 | 99 | error: equal expressions as operands to `-`
|
138 |
| - --> $DIR/eq_op.rs:31:5 |
| 100 | + --> $DIR/eq_op.rs:32:5 |
139 | 101 | |
|
140 | 102 | LL | 1 - 1 == 0;
|
141 | 103 | | ^^^^^
|
142 | 104 |
|
143 | 105 | error: equal expressions as operands to `-`
|
144 |
| - --> $DIR/eq_op.rs:33:5 |
| 106 | + --> $DIR/eq_op.rs:34:5 |
145 | 107 | |
|
146 | 108 | LL | 1 - 1;
|
147 | 109 | | ^^^^^
|
148 | 110 |
|
149 | 111 | error: equal expressions as operands to `/`
|
150 |
| - --> $DIR/eq_op.rs:34:5 |
| 112 | + --> $DIR/eq_op.rs:35:5 |
151 | 113 | |
|
152 | 114 | LL | 1 / 1;
|
153 | 115 | | ^^^^^
|
154 | 116 |
|
155 | 117 | error: equal expressions as operands to `&&`
|
156 |
| - --> $DIR/eq_op.rs:35:5 |
| 118 | + --> $DIR/eq_op.rs:36:5 |
157 | 119 | |
|
158 | 120 | LL | true && true;
|
159 | 121 | | ^^^^^^^^^^^^
|
160 | 122 |
|
161 | 123 | error: equal expressions as operands to `||`
|
162 |
| - --> $DIR/eq_op.rs:37:5 |
| 124 | + --> $DIR/eq_op.rs:38:5 |
163 | 125 | |
|
164 | 126 | LL | true || true;
|
165 | 127 | | ^^^^^^^^^^^^
|
166 | 128 |
|
167 | 129 | error: equal expressions as operands to `&&`
|
168 |
| - --> $DIR/eq_op.rs:43:5 |
| 130 | + --> $DIR/eq_op.rs:44:5 |
169 | 131 | |
|
170 | 132 | LL | a == b && b == a;
|
171 | 133 | | ^^^^^^^^^^^^^^^^
|
172 | 134 |
|
173 | 135 | error: equal expressions as operands to `&&`
|
174 |
| - --> $DIR/eq_op.rs:44:5 |
| 136 | + --> $DIR/eq_op.rs:45:5 |
175 | 137 | |
|
176 | 138 | LL | a != b && b != a;
|
177 | 139 | | ^^^^^^^^^^^^^^^^
|
178 | 140 |
|
179 | 141 | error: equal expressions as operands to `&&`
|
180 |
| - --> $DIR/eq_op.rs:45:5 |
| 142 | + --> $DIR/eq_op.rs:46:5 |
181 | 143 | |
|
182 | 144 | LL | a < b && b > a;
|
183 | 145 | | ^^^^^^^^^^^^^^
|
184 | 146 |
|
185 | 147 | error: equal expressions as operands to `&&`
|
186 |
| - --> $DIR/eq_op.rs:46:5 |
| 148 | + --> $DIR/eq_op.rs:47:5 |
187 | 149 | |
|
188 | 150 | LL | a <= b && b >= a;
|
189 | 151 | | ^^^^^^^^^^^^^^^^
|
190 | 152 |
|
191 | 153 | error: equal expressions as operands to `==`
|
192 |
| - --> $DIR/eq_op.rs:49:5 |
| 154 | + --> $DIR/eq_op.rs:50:5 |
193 | 155 | |
|
194 | 156 | LL | a == a;
|
195 | 157 | | ^^^^^^
|
196 | 158 |
|
197 |
| -error: taken reference of right operand |
198 |
| - --> $DIR/eq_op.rs:87:13 |
199 |
| - | |
200 |
| -LL | let z = x & &y; |
201 |
| - | ^^^^-- |
202 |
| - | | |
203 |
| - | help: use the right value directly: `y` |
204 |
| - | |
205 |
| - = note: `-D clippy::op-ref` implied by `-D warnings` |
206 |
| - |
207 | 159 | error: equal expressions as operands to `/`
|
208 |
| - --> $DIR/eq_op.rs:95:20 |
| 160 | + --> $DIR/eq_op.rs:60:20 |
209 | 161 | |
|
210 | 162 | LL | const D: u32 = A / A;
|
211 | 163 | | ^^^^^
|
212 | 164 |
|
213 |
| -error: aborting due to 34 previous errors |
| 165 | +error: aborting due to 27 previous errors |
214 | 166 |
|
0 commit comments