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