2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:286:5
|
2022-09-07 13:00:45 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n += 1;
|
|
|
|
| ^^^^^^^
|
2022-12-08 20:41:49 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::arithmetic-side-effects` implied by `-D warnings`
|
2022-09-07 13:00:45 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:287:5
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n += &1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:288:5
|
2022-09-07 13:00:45 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n -= 1;
|
|
|
|
| ^^^^^^^
|
2022-09-07 13:00:45 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:289:5
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n -= &1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:290:5
|
2022-09-07 13:00:45 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n /= 0;
|
|
|
|
| ^^^^^^^
|
2022-09-07 13:00:45 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:291:5
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n /= &0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:292:5
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n %= 0;
|
2022-09-13 18:50:24 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:293:5
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n %= &0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:294:5
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n *= 2;
|
2022-09-13 18:50:24 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:295:5
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n *= &2;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:296:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | _n += -1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:297:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | _n += &-1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:298:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | _n -= -1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:299:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | _n -= &-1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:300:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | _n /= -0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:301:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | _n /= &-0;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:302:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | _n %= -0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:303:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | _n %= &-0;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:304:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | _n *= -2;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:305:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | _n *= &-2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:306:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom += Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:307:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom += &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:308:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom -= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:309:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom -= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:310:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom /= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:311:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom /= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:312:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom %= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:313:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom %= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:314:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom *= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:315:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom *= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:316:5
|
|
|
|
|
|
|
|
|
LL | _custom >>= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:317:5
|
|
|
|
|
|
|
|
|
LL | _custom >>= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:318:5
|
|
|
|
|
|
|
|
|
LL | _custom <<= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:319:5
|
|
|
|
|
|
|
|
|
LL | _custom <<= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:320:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom += -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:321:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom += &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:322:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom -= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:323:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom -= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:324:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom /= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:325:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom /= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:326:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom %= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:327:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom %= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:328:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom *= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:329:5
|
2023-01-06 17:50:25 +00:00
|
|
|
|
|
|
|
|
LL | _custom *= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:330:5
|
|
|
|
|
|
|
|
|
LL | _custom >>= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:331:5
|
|
|
|
|
|
|
|
|
LL | _custom >>= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:332:5
|
|
|
|
|
|
|
|
|
LL | _custom <<= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:333:5
|
|
|
|
|
|
|
|
|
LL | _custom <<= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:336:10
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n = _n + 1;
|
|
|
|
| ^^^^^^
|
2022-09-13 18:50:24 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:337:10
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n + &1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:338:10
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n = 1 + _n;
|
|
|
|
| ^^^^^^
|
2022-09-13 18:50:24 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:339:10
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = &1 + _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:340:10
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n = _n - 1;
|
|
|
|
| ^^^^^^
|
2022-09-13 18:50:24 +00:00
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:341:10
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n - &1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:342:10
|
2022-09-13 18:50:24 +00:00
|
|
|
|
|
2022-09-15 16:28:18 +00:00
|
|
|
LL | _n = 1 - _n;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:343:10
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = &1 - _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:344:10
|
2022-09-15 16:28:18 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n / 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:345:10
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n / &0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:346:10
|
2022-09-15 16:28:18 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n % 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:347:10
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n % &0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:348:10
|
2022-09-15 16:28:18 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n * 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:349:10
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n * &2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:350:10
|
2022-09-15 16:28:18 +00:00
|
|
|
|
|
|
|
|
LL | _n = 2 * _n;
|
|
|
|
| ^^^^^^
|
2022-09-13 18:50:24 +00:00
|
|
|
|
2022-09-20 15:06:49 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:351:10
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = &2 * _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:352:10
|
2022-10-03 22:49:03 +00:00
|
|
|
|
|
|
|
|
LL | _n = 23 + &85;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:353:10
|
2022-10-03 22:49:03 +00:00
|
|
|
|
|
|
|
|
LL | _n = &23 + 85;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:354:10
|
2022-10-03 22:49:03 +00:00
|
|
|
|
|
|
|
|
LL | _n = &23 + &85;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:355:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = _custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:356:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = _custom + &_custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:357:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = Custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:358:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = &Custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:359:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = _custom - Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:360:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = _custom - &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:361:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = Custom - _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:362:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = &Custom - _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:363:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = _custom / Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:364:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = _custom / &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:365:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = _custom % Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:366:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = _custom % &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:367:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = _custom * Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:368:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = _custom * &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:369:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = Custom * _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:370:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = &Custom * _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:371:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = Custom + &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:372:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = &Custom + Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:373:15
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = &Custom + &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:374:15
|
|
|
|
|
|
|
|
|
LL | _custom = _custom >> _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:375:15
|
|
|
|
|
|
|
|
|
LL | _custom = _custom >> &_custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:376:15
|
|
|
|
|
|
|
|
|
LL | _custom = Custom << _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:377:15
|
|
|
|
|
|
|
|
|
LL | _custom = &Custom << _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:380:10
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _n = -_n;
|
|
|
|
| ^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:381:10
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _n = -&_n;
|
|
|
|
| ^^^^
|
2022-09-30 18:30:40 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:382:15
|
2022-09-20 15:06:49 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = -_custom;
|
|
|
|
| ^^^^^^^^
|
2022-09-20 15:06:49 +00:00
|
|
|
|
2022-09-21 18:02:37 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:383:15
|
2022-09-21 18:02:37 +00:00
|
|
|
|
|
2023-01-06 17:50:25 +00:00
|
|
|
LL | _custom = -&_custom;
|
|
|
|
| ^^^^^^^^^
|
2022-09-21 18:02:37 +00:00
|
|
|
|
2023-01-06 15:25:51 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:392:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | 1 + i;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:393:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i * 2;
|
|
|
|
| ^^^^^
|
|
|
|
|
2023-04-02 10:50:25 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:394:5
|
|
|
|
|
|
|
|
|
LL | 1 % i / 2;
|
|
|
|
| ^^^^^
|
|
|
|
|
2023-01-06 15:25:51 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:395:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i - 2 + 2 - i;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:396:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | -i;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:407:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i += 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:408:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i -= 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:409:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i *= 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:411:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i /= 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:413:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i /= var1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:414:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i /= var2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:416:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i %= 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:418:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i %= var1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-12 20:34:07 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:419:5
|
2023-01-06 15:25:51 +00:00
|
|
|
|
|
|
|
|
LL | i %= var2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2023-04-02 10:50:25 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:429:5
|
|
|
|
|
|
|
|
|
LL | 10 / a
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 109 previous errors
|
2022-09-07 13:00:45 +00:00
|
|
|
|