2022-09-15 11:28:18 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:270:5
|
2022-09-07 08:00:45 -05:00
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
LL | _n += 1;
|
|
|
|
| ^^^^^^^
|
2022-12-08 14:41:49 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::arithmetic-side-effects` implied by `-D warnings`
|
2022-09-07 08:00:45 -05:00
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:271:5
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n += &1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:272:5
|
2022-09-07 08:00:45 -05:00
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
LL | _n -= 1;
|
|
|
|
| ^^^^^^^
|
2022-09-07 08:00:45 -05:00
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:273:5
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n -= &1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:274:5
|
2022-09-07 08:00:45 -05:00
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
LL | _n /= 0;
|
|
|
|
| ^^^^^^^
|
2022-09-07 08:00:45 -05:00
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:275:5
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n /= &0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:276:5
|
2022-09-13 13:50:24 -05:00
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
LL | _n %= 0;
|
2022-09-13 13:50:24 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:277:5
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n %= &0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:278:5
|
2022-09-13 13:50:24 -05:00
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
LL | _n *= 2;
|
2022-09-13 13:50:24 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:279:5
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n *= &2;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:280:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | _n += -1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:281:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | _n += &-1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:282:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | _n -= -1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:283:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | _n -= &-1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:284:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | _n /= -0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:285:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | _n /= &-0;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:286:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | _n %= -0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:287:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | _n %= &-0;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:288:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | _n *= -2;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:289:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | _n *= &-2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:290:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom += Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:291:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom += &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:292:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom -= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:293:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom -= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:294:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom /= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:295:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom /= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:296:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom %= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:297:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom %= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:298:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom *= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:299:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom *= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:300:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom += -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:301:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom += &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:302:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom -= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:303:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom -= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:304:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom /= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:305:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom /= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:306:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom %= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:307:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom %= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:308:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom *= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:309:5
|
2023-01-06 11:50:25 -06:00
|
|
|
|
|
|
|
|
LL | _custom *= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:312:10
|
2022-09-13 13:50:24 -05:00
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
LL | _n = _n + 1;
|
|
|
|
| ^^^^^^
|
2022-09-13 13:50:24 -05:00
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:313:10
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n + &1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:314:10
|
2022-09-13 13:50:24 -05:00
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
LL | _n = 1 + _n;
|
|
|
|
| ^^^^^^
|
2022-09-13 13:50:24 -05:00
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:315:10
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = &1 + _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:316:10
|
2022-09-13 13:50:24 -05:00
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
LL | _n = _n - 1;
|
|
|
|
| ^^^^^^
|
2022-09-13 13:50:24 -05:00
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:317:10
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n - &1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:318:10
|
2022-09-13 13:50:24 -05:00
|
|
|
|
|
2022-09-15 11:28:18 -05:00
|
|
|
LL | _n = 1 - _n;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:319:10
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = &1 - _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:320:10
|
2022-09-15 11:28:18 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n / 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:321:10
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n / &0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:322:10
|
2022-09-15 11:28:18 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n % 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:323:10
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n % &0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:324:10
|
2022-09-15 11:28:18 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n * 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:325:10
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n * &2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:326:10
|
2022-09-15 11:28:18 -05:00
|
|
|
|
|
|
|
|
LL | _n = 2 * _n;
|
|
|
|
| ^^^^^^
|
2022-09-13 13:50:24 -05:00
|
|
|
|
2022-09-20 10:06:49 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:327:10
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = &2 * _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:328:10
|
2022-10-03 17:49:03 -05:00
|
|
|
|
|
|
|
|
LL | _n = 23 + &85;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:329:10
|
2022-10-03 17:49:03 -05:00
|
|
|
|
|
|
|
|
LL | _n = &23 + 85;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:330:10
|
2022-10-03 17:49:03 -05:00
|
|
|
|
|
|
|
|
LL | _n = &23 + &85;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:331:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = _custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:332:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = _custom + &_custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:333:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = Custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:334:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = &Custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:335:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = _custom - Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:336:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = _custom - &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:337:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = Custom - _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:338:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = &Custom - _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:339:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = _custom / Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:340:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = _custom / &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:341:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = _custom % Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:342:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = _custom % &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:343:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = _custom * Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:344:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = _custom * &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:345:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = Custom * _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:346:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = &Custom * _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:347:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = Custom + &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:348:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = &Custom + Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:349:15
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = &Custom + &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:352:10
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _n = -_n;
|
|
|
|
| ^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:353:10
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _n = -&_n;
|
|
|
|
| ^^^^
|
2022-09-30 13:30:40 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:354:15
|
2022-09-20 10:06:49 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = -_custom;
|
|
|
|
| ^^^^^^^^
|
2022-09-20 10:06:49 -05:00
|
|
|
|
2022-09-21 13:02:37 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:355:15
|
2022-09-21 13:02:37 -05:00
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
LL | _custom = -&_custom;
|
|
|
|
| ^^^^^^^^^
|
2022-09-21 13:02:37 -05:00
|
|
|
|
2023-01-06 09:25:51 -06:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:364:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | 1 + i;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:365:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i * 2;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:367:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i - 2 + 2 - i;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:368:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | -i;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:369:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i >> 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:370:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i << 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:379:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i += 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:380:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i -= 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:381:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i *= 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:383:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i /= 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:385:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i /= var1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:386:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i /= var2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:388:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i %= 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:390:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i %= var1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:391:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i %= var2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:392:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i <<= 3;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-02-09 13:46:13 -06:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:393:5
|
2023-01-06 09:25:51 -06:00
|
|
|
|
|
|
|
|
LL | i >>= 2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2023-01-06 11:50:25 -06:00
|
|
|
error: aborting due to 99 previous errors
|
2022-09-07 08:00:45 -05:00
|
|
|
|