]>
Commit | Line | Data |
---|---|---|
2b03887a | 1 | error: arithmetic operation that can potentially result in unexpected side-effects |
f25598a0 | 2 | --> $DIR/arithmetic_side_effects.rs:243:5 |
2b03887a FG |
3 | | |
4 | LL | _n += 1; | |
5 | | ^^^^^^^ | |
f25598a0 FG |
6 | | |
7 | = note: `-D clippy::arithmetic-side-effects` implied by `-D warnings` | |
2b03887a FG |
8 | |
9 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 10 | --> $DIR/arithmetic_side_effects.rs:244:5 |
2b03887a FG |
11 | | |
12 | LL | _n += &1; | |
13 | | ^^^^^^^^ | |
14 | ||
15 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 16 | --> $DIR/arithmetic_side_effects.rs:245:5 |
2b03887a FG |
17 | | |
18 | LL | _n -= 1; | |
19 | | ^^^^^^^ | |
20 | ||
21 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 22 | --> $DIR/arithmetic_side_effects.rs:246:5 |
2b03887a FG |
23 | | |
24 | LL | _n -= &1; | |
25 | | ^^^^^^^^ | |
26 | ||
27 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 28 | --> $DIR/arithmetic_side_effects.rs:247:5 |
2b03887a FG |
29 | | |
30 | LL | _n /= 0; | |
31 | | ^^^^^^^ | |
32 | ||
33 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 34 | --> $DIR/arithmetic_side_effects.rs:248:5 |
2b03887a FG |
35 | | |
36 | LL | _n /= &0; | |
37 | | ^^^^^^^^ | |
38 | ||
39 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 40 | --> $DIR/arithmetic_side_effects.rs:249:5 |
2b03887a FG |
41 | | |
42 | LL | _n %= 0; | |
43 | | ^^^^^^^ | |
44 | ||
45 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 46 | --> $DIR/arithmetic_side_effects.rs:250:5 |
2b03887a FG |
47 | | |
48 | LL | _n %= &0; | |
49 | | ^^^^^^^^ | |
50 | ||
51 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 52 | --> $DIR/arithmetic_side_effects.rs:251:5 |
2b03887a FG |
53 | | |
54 | LL | _n *= 2; | |
55 | | ^^^^^^^ | |
56 | ||
57 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 58 | --> $DIR/arithmetic_side_effects.rs:252:5 |
2b03887a FG |
59 | | |
60 | LL | _n *= &2; | |
61 | | ^^^^^^^^ | |
62 | ||
63 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 FG |
64 | --> $DIR/arithmetic_side_effects.rs:253:5 |
65 | | | |
66 | LL | _n += -1; | |
67 | | ^^^^^^^^ | |
68 | ||
69 | error: arithmetic operation that can potentially result in unexpected side-effects | |
70 | --> $DIR/arithmetic_side_effects.rs:254:5 | |
71 | | | |
72 | LL | _n += &-1; | |
73 | | ^^^^^^^^^ | |
74 | ||
75 | error: arithmetic operation that can potentially result in unexpected side-effects | |
76 | --> $DIR/arithmetic_side_effects.rs:255:5 | |
77 | | | |
78 | LL | _n -= -1; | |
79 | | ^^^^^^^^ | |
80 | ||
81 | error: arithmetic operation that can potentially result in unexpected side-effects | |
82 | --> $DIR/arithmetic_side_effects.rs:256:5 | |
83 | | | |
84 | LL | _n -= &-1; | |
85 | | ^^^^^^^^^ | |
86 | ||
87 | error: arithmetic operation that can potentially result in unexpected side-effects | |
88 | --> $DIR/arithmetic_side_effects.rs:257:5 | |
89 | | | |
90 | LL | _n /= -0; | |
91 | | ^^^^^^^^ | |
92 | ||
93 | error: arithmetic operation that can potentially result in unexpected side-effects | |
94 | --> $DIR/arithmetic_side_effects.rs:258:5 | |
95 | | | |
96 | LL | _n /= &-0; | |
97 | | ^^^^^^^^^ | |
98 | ||
99 | error: arithmetic operation that can potentially result in unexpected side-effects | |
100 | --> $DIR/arithmetic_side_effects.rs:259:5 | |
101 | | | |
102 | LL | _n %= -0; | |
103 | | ^^^^^^^^ | |
104 | ||
105 | error: arithmetic operation that can potentially result in unexpected side-effects | |
106 | --> $DIR/arithmetic_side_effects.rs:260:5 | |
107 | | | |
108 | LL | _n %= &-0; | |
109 | | ^^^^^^^^^ | |
110 | ||
111 | error: arithmetic operation that can potentially result in unexpected side-effects | |
112 | --> $DIR/arithmetic_side_effects.rs:261:5 | |
113 | | | |
114 | LL | _n *= -2; | |
115 | | ^^^^^^^^ | |
116 | ||
117 | error: arithmetic operation that can potentially result in unexpected side-effects | |
118 | --> $DIR/arithmetic_side_effects.rs:262:5 | |
119 | | | |
120 | LL | _n *= &-2; | |
121 | | ^^^^^^^^^ | |
122 | ||
123 | error: arithmetic operation that can potentially result in unexpected side-effects | |
124 | --> $DIR/arithmetic_side_effects.rs:263:5 | |
125 | | | |
126 | LL | _custom += Custom; | |
127 | | ^^^^^^^^^^^^^^^^^ | |
128 | ||
129 | error: arithmetic operation that can potentially result in unexpected side-effects | |
130 | --> $DIR/arithmetic_side_effects.rs:264:5 | |
131 | | | |
132 | LL | _custom += &Custom; | |
133 | | ^^^^^^^^^^^^^^^^^^ | |
134 | ||
135 | error: arithmetic operation that can potentially result in unexpected side-effects | |
136 | --> $DIR/arithmetic_side_effects.rs:265:5 | |
137 | | | |
138 | LL | _custom -= Custom; | |
139 | | ^^^^^^^^^^^^^^^^^ | |
140 | ||
141 | error: arithmetic operation that can potentially result in unexpected side-effects | |
142 | --> $DIR/arithmetic_side_effects.rs:266:5 | |
143 | | | |
144 | LL | _custom -= &Custom; | |
145 | | ^^^^^^^^^^^^^^^^^^ | |
146 | ||
147 | error: arithmetic operation that can potentially result in unexpected side-effects | |
148 | --> $DIR/arithmetic_side_effects.rs:267:5 | |
149 | | | |
150 | LL | _custom /= Custom; | |
151 | | ^^^^^^^^^^^^^^^^^ | |
152 | ||
153 | error: arithmetic operation that can potentially result in unexpected side-effects | |
154 | --> $DIR/arithmetic_side_effects.rs:268:5 | |
155 | | | |
156 | LL | _custom /= &Custom; | |
157 | | ^^^^^^^^^^^^^^^^^^ | |
158 | ||
159 | error: arithmetic operation that can potentially result in unexpected side-effects | |
160 | --> $DIR/arithmetic_side_effects.rs:269:5 | |
161 | | | |
162 | LL | _custom %= Custom; | |
163 | | ^^^^^^^^^^^^^^^^^ | |
164 | ||
165 | error: arithmetic operation that can potentially result in unexpected side-effects | |
166 | --> $DIR/arithmetic_side_effects.rs:270:5 | |
167 | | | |
168 | LL | _custom %= &Custom; | |
169 | | ^^^^^^^^^^^^^^^^^^ | |
170 | ||
171 | error: arithmetic operation that can potentially result in unexpected side-effects | |
172 | --> $DIR/arithmetic_side_effects.rs:271:5 | |
173 | | | |
174 | LL | _custom *= Custom; | |
175 | | ^^^^^^^^^^^^^^^^^ | |
176 | ||
177 | error: arithmetic operation that can potentially result in unexpected side-effects | |
178 | --> $DIR/arithmetic_side_effects.rs:272:5 | |
179 | | | |
180 | LL | _custom *= &Custom; | |
181 | | ^^^^^^^^^^^^^^^^^^ | |
182 | ||
183 | error: arithmetic operation that can potentially result in unexpected side-effects | |
184 | --> $DIR/arithmetic_side_effects.rs:273:5 | |
185 | | | |
186 | LL | _custom += -Custom; | |
187 | | ^^^^^^^^^^^^^^^^^^ | |
188 | ||
189 | error: arithmetic operation that can potentially result in unexpected side-effects | |
190 | --> $DIR/arithmetic_side_effects.rs:274:5 | |
191 | | | |
192 | LL | _custom += &-Custom; | |
193 | | ^^^^^^^^^^^^^^^^^^^ | |
194 | ||
195 | error: arithmetic operation that can potentially result in unexpected side-effects | |
196 | --> $DIR/arithmetic_side_effects.rs:275:5 | |
197 | | | |
198 | LL | _custom -= -Custom; | |
199 | | ^^^^^^^^^^^^^^^^^^ | |
200 | ||
201 | error: arithmetic operation that can potentially result in unexpected side-effects | |
202 | --> $DIR/arithmetic_side_effects.rs:276:5 | |
203 | | | |
204 | LL | _custom -= &-Custom; | |
205 | | ^^^^^^^^^^^^^^^^^^^ | |
206 | ||
207 | error: arithmetic operation that can potentially result in unexpected side-effects | |
208 | --> $DIR/arithmetic_side_effects.rs:277:5 | |
209 | | | |
210 | LL | _custom /= -Custom; | |
211 | | ^^^^^^^^^^^^^^^^^^ | |
212 | ||
213 | error: arithmetic operation that can potentially result in unexpected side-effects | |
214 | --> $DIR/arithmetic_side_effects.rs:278:5 | |
215 | | | |
216 | LL | _custom /= &-Custom; | |
217 | | ^^^^^^^^^^^^^^^^^^^ | |
218 | ||
219 | error: arithmetic operation that can potentially result in unexpected side-effects | |
220 | --> $DIR/arithmetic_side_effects.rs:279:5 | |
221 | | | |
222 | LL | _custom %= -Custom; | |
223 | | ^^^^^^^^^^^^^^^^^^ | |
224 | ||
225 | error: arithmetic operation that can potentially result in unexpected side-effects | |
226 | --> $DIR/arithmetic_side_effects.rs:280:5 | |
227 | | | |
228 | LL | _custom %= &-Custom; | |
229 | | ^^^^^^^^^^^^^^^^^^^ | |
230 | ||
231 | error: arithmetic operation that can potentially result in unexpected side-effects | |
232 | --> $DIR/arithmetic_side_effects.rs:281:5 | |
233 | | | |
234 | LL | _custom *= -Custom; | |
235 | | ^^^^^^^^^^^^^^^^^^ | |
236 | ||
237 | error: arithmetic operation that can potentially result in unexpected side-effects | |
238 | --> $DIR/arithmetic_side_effects.rs:282:5 | |
239 | | | |
240 | LL | _custom *= &-Custom; | |
241 | | ^^^^^^^^^^^^^^^^^^^ | |
242 | ||
243 | error: arithmetic operation that can potentially result in unexpected side-effects | |
244 | --> $DIR/arithmetic_side_effects.rs:285:10 | |
2b03887a FG |
245 | | |
246 | LL | _n = _n + 1; | |
247 | | ^^^^^^ | |
248 | ||
249 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 250 | --> $DIR/arithmetic_side_effects.rs:286:10 |
2b03887a FG |
251 | | |
252 | LL | _n = _n + &1; | |
253 | | ^^^^^^^ | |
254 | ||
255 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 256 | --> $DIR/arithmetic_side_effects.rs:287:10 |
2b03887a FG |
257 | | |
258 | LL | _n = 1 + _n; | |
259 | | ^^^^^^ | |
260 | ||
261 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 262 | --> $DIR/arithmetic_side_effects.rs:288:10 |
2b03887a FG |
263 | | |
264 | LL | _n = &1 + _n; | |
265 | | ^^^^^^^ | |
266 | ||
267 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 268 | --> $DIR/arithmetic_side_effects.rs:289:10 |
2b03887a FG |
269 | | |
270 | LL | _n = _n - 1; | |
271 | | ^^^^^^ | |
272 | ||
273 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 274 | --> $DIR/arithmetic_side_effects.rs:290:10 |
2b03887a FG |
275 | | |
276 | LL | _n = _n - &1; | |
277 | | ^^^^^^^ | |
278 | ||
279 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 280 | --> $DIR/arithmetic_side_effects.rs:291:10 |
2b03887a FG |
281 | | |
282 | LL | _n = 1 - _n; | |
283 | | ^^^^^^ | |
284 | ||
285 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 286 | --> $DIR/arithmetic_side_effects.rs:292:10 |
2b03887a FG |
287 | | |
288 | LL | _n = &1 - _n; | |
289 | | ^^^^^^^ | |
290 | ||
291 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 292 | --> $DIR/arithmetic_side_effects.rs:293:10 |
2b03887a FG |
293 | | |
294 | LL | _n = _n / 0; | |
295 | | ^^^^^^ | |
296 | ||
297 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 298 | --> $DIR/arithmetic_side_effects.rs:294:10 |
2b03887a FG |
299 | | |
300 | LL | _n = _n / &0; | |
301 | | ^^^^^^^ | |
302 | ||
303 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 304 | --> $DIR/arithmetic_side_effects.rs:295:10 |
2b03887a FG |
305 | | |
306 | LL | _n = _n % 0; | |
307 | | ^^^^^^ | |
308 | ||
309 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 310 | --> $DIR/arithmetic_side_effects.rs:296:10 |
2b03887a FG |
311 | | |
312 | LL | _n = _n % &0; | |
313 | | ^^^^^^^ | |
314 | ||
315 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 316 | --> $DIR/arithmetic_side_effects.rs:297:10 |
2b03887a FG |
317 | | |
318 | LL | _n = _n * 2; | |
319 | | ^^^^^^ | |
320 | ||
321 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 322 | --> $DIR/arithmetic_side_effects.rs:298:10 |
2b03887a FG |
323 | | |
324 | LL | _n = _n * &2; | |
325 | | ^^^^^^^ | |
326 | ||
327 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 328 | --> $DIR/arithmetic_side_effects.rs:299:10 |
2b03887a FG |
329 | | |
330 | LL | _n = 2 * _n; | |
331 | | ^^^^^^ | |
332 | ||
333 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 334 | --> $DIR/arithmetic_side_effects.rs:300:10 |
2b03887a FG |
335 | | |
336 | LL | _n = &2 * _n; | |
337 | | ^^^^^^^ | |
338 | ||
339 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 340 | --> $DIR/arithmetic_side_effects.rs:301:10 |
2b03887a FG |
341 | | |
342 | LL | _n = 23 + &85; | |
343 | | ^^^^^^^^ | |
344 | ||
345 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 346 | --> $DIR/arithmetic_side_effects.rs:302:10 |
2b03887a FG |
347 | | |
348 | LL | _n = &23 + 85; | |
349 | | ^^^^^^^^ | |
350 | ||
351 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 352 | --> $DIR/arithmetic_side_effects.rs:303:10 |
2b03887a FG |
353 | | |
354 | LL | _n = &23 + &85; | |
355 | | ^^^^^^^^^ | |
356 | ||
357 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 FG |
358 | --> $DIR/arithmetic_side_effects.rs:304:15 |
359 | | | |
360 | LL | _custom = _custom + _custom; | |
361 | | ^^^^^^^^^^^^^^^^^ | |
362 | ||
363 | error: arithmetic operation that can potentially result in unexpected side-effects | |
364 | --> $DIR/arithmetic_side_effects.rs:305:15 | |
2b03887a | 365 | | |
f25598a0 FG |
366 | LL | _custom = _custom + &_custom; |
367 | | ^^^^^^^^^^^^^^^^^^ | |
2b03887a FG |
368 | |
369 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 370 | --> $DIR/arithmetic_side_effects.rs:306:15 |
2b03887a | 371 | | |
f25598a0 FG |
372 | LL | _custom = Custom + _custom; |
373 | | ^^^^^^^^^^^^^^^^ | |
2b03887a FG |
374 | |
375 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 376 | --> $DIR/arithmetic_side_effects.rs:307:15 |
2b03887a | 377 | | |
f25598a0 FG |
378 | LL | _custom = &Custom + _custom; |
379 | | ^^^^^^^^^^^^^^^^^ | |
2b03887a FG |
380 | |
381 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 382 | --> $DIR/arithmetic_side_effects.rs:308:15 |
2b03887a | 383 | | |
f25598a0 FG |
384 | LL | _custom = _custom - Custom; |
385 | | ^^^^^^^^^^^^^^^^ | |
2b03887a FG |
386 | |
387 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 388 | --> $DIR/arithmetic_side_effects.rs:309:15 |
2b03887a | 389 | | |
f25598a0 FG |
390 | LL | _custom = _custom - &Custom; |
391 | | ^^^^^^^^^^^^^^^^^ | |
2b03887a FG |
392 | |
393 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 394 | --> $DIR/arithmetic_side_effects.rs:310:15 |
2b03887a | 395 | | |
f25598a0 FG |
396 | LL | _custom = Custom - _custom; |
397 | | ^^^^^^^^^^^^^^^^ | |
2b03887a FG |
398 | |
399 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 400 | --> $DIR/arithmetic_side_effects.rs:311:15 |
2b03887a | 401 | | |
f25598a0 FG |
402 | LL | _custom = &Custom - _custom; |
403 | | ^^^^^^^^^^^^^^^^^ | |
2b03887a FG |
404 | |
405 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 406 | --> $DIR/arithmetic_side_effects.rs:312:15 |
2b03887a | 407 | | |
f25598a0 FG |
408 | LL | _custom = _custom / Custom; |
409 | | ^^^^^^^^^^^^^^^^ | |
2b03887a FG |
410 | |
411 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 412 | --> $DIR/arithmetic_side_effects.rs:313:15 |
2b03887a | 413 | | |
f25598a0 FG |
414 | LL | _custom = _custom / &Custom; |
415 | | ^^^^^^^^^^^^^^^^^ | |
2b03887a FG |
416 | |
417 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 418 | --> $DIR/arithmetic_side_effects.rs:314:15 |
2b03887a | 419 | | |
f25598a0 FG |
420 | LL | _custom = _custom % Custom; |
421 | | ^^^^^^^^^^^^^^^^ | |
2b03887a FG |
422 | |
423 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 424 | --> $DIR/arithmetic_side_effects.rs:315:15 |
2b03887a | 425 | | |
f25598a0 FG |
426 | LL | _custom = _custom % &Custom; |
427 | | ^^^^^^^^^^^^^^^^^ | |
2b03887a FG |
428 | |
429 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 430 | --> $DIR/arithmetic_side_effects.rs:316:15 |
2b03887a | 431 | | |
f25598a0 FG |
432 | LL | _custom = _custom * Custom; |
433 | | ^^^^^^^^^^^^^^^^ | |
2b03887a FG |
434 | |
435 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 436 | --> $DIR/arithmetic_side_effects.rs:317:15 |
2b03887a | 437 | | |
f25598a0 FG |
438 | LL | _custom = _custom * &Custom; |
439 | | ^^^^^^^^^^^^^^^^^ | |
2b03887a FG |
440 | |
441 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 442 | --> $DIR/arithmetic_side_effects.rs:318:15 |
2b03887a | 443 | | |
f25598a0 FG |
444 | LL | _custom = Custom * _custom; |
445 | | ^^^^^^^^^^^^^^^^ | |
2b03887a FG |
446 | |
447 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 448 | --> $DIR/arithmetic_side_effects.rs:319:15 |
2b03887a | 449 | | |
f25598a0 FG |
450 | LL | _custom = &Custom * _custom; |
451 | | ^^^^^^^^^^^^^^^^^ | |
2b03887a FG |
452 | |
453 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 454 | --> $DIR/arithmetic_side_effects.rs:320:15 |
2b03887a | 455 | | |
f25598a0 FG |
456 | LL | _custom = Custom + &Custom; |
457 | | ^^^^^^^^^^^^^^^^ | |
2b03887a FG |
458 | |
459 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 460 | --> $DIR/arithmetic_side_effects.rs:321:15 |
2b03887a | 461 | | |
f25598a0 FG |
462 | LL | _custom = &Custom + Custom; |
463 | | ^^^^^^^^^^^^^^^^ | |
2b03887a FG |
464 | |
465 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 466 | --> $DIR/arithmetic_side_effects.rs:322:15 |
2b03887a | 467 | | |
f25598a0 FG |
468 | LL | _custom = &Custom + &Custom; |
469 | | ^^^^^^^^^^^^^^^^^ | |
2b03887a FG |
470 | |
471 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 472 | --> $DIR/arithmetic_side_effects.rs:325:10 |
2b03887a | 473 | | |
f25598a0 FG |
474 | LL | _n = -_n; |
475 | | ^^^ | |
2b03887a FG |
476 | |
477 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 478 | --> $DIR/arithmetic_side_effects.rs:326:10 |
2b03887a | 479 | | |
f25598a0 FG |
480 | LL | _n = -&_n; |
481 | | ^^^^ | |
2b03887a FG |
482 | |
483 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 484 | --> $DIR/arithmetic_side_effects.rs:327:15 |
2b03887a | 485 | | |
f25598a0 FG |
486 | LL | _custom = -_custom; |
487 | | ^^^^^^^^ | |
2b03887a FG |
488 | |
489 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 490 | --> $DIR/arithmetic_side_effects.rs:328:15 |
2b03887a | 491 | | |
f25598a0 FG |
492 | LL | _custom = -&_custom; |
493 | | ^^^^^^^^^ | |
2b03887a FG |
494 | |
495 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 496 | --> $DIR/arithmetic_side_effects.rs:337:5 |
2b03887a | 497 | | |
f25598a0 FG |
498 | LL | 1 + i; |
499 | | ^^^^^ | |
2b03887a FG |
500 | |
501 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 502 | --> $DIR/arithmetic_side_effects.rs:338:5 |
2b03887a | 503 | | |
f25598a0 FG |
504 | LL | i * 2; |
505 | | ^^^^^ | |
2b03887a FG |
506 | |
507 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 508 | --> $DIR/arithmetic_side_effects.rs:340:5 |
2b03887a | 509 | | |
f25598a0 FG |
510 | LL | i - 2 + 2 - i; |
511 | | ^^^^^^^^^^^^^ | |
2b03887a FG |
512 | |
513 | error: arithmetic operation that can potentially result in unexpected side-effects | |
f25598a0 | 514 | --> $DIR/arithmetic_side_effects.rs:341:5 |
2b03887a | 515 | | |
f25598a0 FG |
516 | LL | -i; |
517 | | ^^ | |
518 | ||
519 | error: arithmetic operation that can potentially result in unexpected side-effects | |
520 | --> $DIR/arithmetic_side_effects.rs:342:5 | |
521 | | | |
522 | LL | i >> 1; | |
523 | | ^^^^^^ | |
524 | ||
525 | error: arithmetic operation that can potentially result in unexpected side-effects | |
526 | --> $DIR/arithmetic_side_effects.rs:343:5 | |
527 | | | |
528 | LL | i << 1; | |
529 | | ^^^^^^ | |
530 | ||
531 | error: arithmetic operation that can potentially result in unexpected side-effects | |
532 | --> $DIR/arithmetic_side_effects.rs:352:5 | |
533 | | | |
534 | LL | i += 1; | |
535 | | ^^^^^^ | |
536 | ||
537 | error: arithmetic operation that can potentially result in unexpected side-effects | |
538 | --> $DIR/arithmetic_side_effects.rs:353:5 | |
539 | | | |
540 | LL | i -= 1; | |
541 | | ^^^^^^ | |
542 | ||
543 | error: arithmetic operation that can potentially result in unexpected side-effects | |
544 | --> $DIR/arithmetic_side_effects.rs:354:5 | |
545 | | | |
546 | LL | i *= 2; | |
547 | | ^^^^^^ | |
548 | ||
549 | error: arithmetic operation that can potentially result in unexpected side-effects | |
550 | --> $DIR/arithmetic_side_effects.rs:356:5 | |
551 | | | |
552 | LL | i /= 0; | |
553 | | ^^^^^^ | |
554 | ||
555 | error: arithmetic operation that can potentially result in unexpected side-effects | |
556 | --> $DIR/arithmetic_side_effects.rs:358:5 | |
557 | | | |
558 | LL | i /= var1; | |
559 | | ^^^^^^^^^ | |
560 | ||
561 | error: arithmetic operation that can potentially result in unexpected side-effects | |
562 | --> $DIR/arithmetic_side_effects.rs:359:5 | |
563 | | | |
564 | LL | i /= var2; | |
565 | | ^^^^^^^^^ | |
566 | ||
567 | error: arithmetic operation that can potentially result in unexpected side-effects | |
568 | --> $DIR/arithmetic_side_effects.rs:361:5 | |
569 | | | |
570 | LL | i %= 0; | |
571 | | ^^^^^^ | |
572 | ||
573 | error: arithmetic operation that can potentially result in unexpected side-effects | |
574 | --> $DIR/arithmetic_side_effects.rs:363:5 | |
575 | | | |
576 | LL | i %= var1; | |
577 | | ^^^^^^^^^ | |
578 | ||
579 | error: arithmetic operation that can potentially result in unexpected side-effects | |
580 | --> $DIR/arithmetic_side_effects.rs:364:5 | |
581 | | | |
582 | LL | i %= var2; | |
583 | | ^^^^^^^^^ | |
584 | ||
585 | error: arithmetic operation that can potentially result in unexpected side-effects | |
586 | --> $DIR/arithmetic_side_effects.rs:365:5 | |
587 | | | |
588 | LL | i <<= 3; | |
589 | | ^^^^^^^ | |
590 | ||
591 | error: arithmetic operation that can potentially result in unexpected side-effects | |
592 | --> $DIR/arithmetic_side_effects.rs:366:5 | |
593 | | | |
594 | LL | i >>= 2; | |
595 | | ^^^^^^^ | |
2b03887a | 596 | |
f25598a0 | 597 | error: aborting due to 99 previous errors |
f2b60f7d | 598 |