fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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