2022-10-06 07:44:38 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:243:5
|
2022-09-09 11:36:26 +00:00
|
|
|
|
|
2022-09-21 17:02:37 +00:00
|
|
|
LL | _n += 1;
|
|
|
|
| ^^^^^^^
|
2022-12-17 13:12:54 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::arithmetic-side-effects` implied by `-D warnings`
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:244:5
|
2022-09-09 11:36:26 +00:00
|
|
|
|
|
2022-10-06 07:44:38 +00:00
|
|
|
LL | _n += &1;
|
|
|
|
| ^^^^^^^^
|
2022-09-09 11:36:26 +00:00
|
|
|
|
2022-09-21 17:02:37 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:245:5
|
2022-09-09 11:36:26 +00:00
|
|
|
|
|
2022-09-21 17:02:37 +00:00
|
|
|
LL | _n -= 1;
|
|
|
|
| ^^^^^^^
|
2022-09-09 11:36:26 +00:00
|
|
|
|
2022-09-21 17:02:37 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:246:5
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n -= &1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:247:5
|
2022-09-09 11:36:26 +00:00
|
|
|
|
|
2022-09-21 17:02:37 +00:00
|
|
|
LL | _n /= 0;
|
|
|
|
| ^^^^^^^
|
2022-09-09 11:36:26 +00:00
|
|
|
|
2022-09-21 17:02:37 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:248:5
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n /= &0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:249:5
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n %= 0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:250:5
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n %= &0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:251:5
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n *= 2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:252:5
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n *= &2;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:253:5
|
|
|
|
|
|
|
|
|
LL | _n += -1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:254:5
|
|
|
|
|
|
|
|
|
LL | _n += &-1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:255:5
|
|
|
|
|
|
|
|
|
LL | _n -= -1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:256:5
|
|
|
|
|
|
|
|
|
LL | _n -= &-1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:257:5
|
|
|
|
|
|
|
|
|
LL | _n /= -0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:258:5
|
|
|
|
|
|
|
|
|
LL | _n /= &-0;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:259:5
|
|
|
|
|
|
|
|
|
LL | _n %= -0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:260:5
|
|
|
|
|
|
|
|
|
LL | _n %= &-0;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:261:5
|
|
|
|
|
|
|
|
|
LL | _n *= -2;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:262:5
|
|
|
|
|
|
|
|
|
LL | _n *= &-2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:263:5
|
|
|
|
|
|
|
|
|
LL | _custom += Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:264:5
|
|
|
|
|
|
|
|
|
LL | _custom += &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:265:5
|
|
|
|
|
|
|
|
|
LL | _custom -= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:266:5
|
|
|
|
|
|
|
|
|
LL | _custom -= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:267:5
|
|
|
|
|
|
|
|
|
LL | _custom /= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:268:5
|
|
|
|
|
|
|
|
|
LL | _custom /= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:269:5
|
|
|
|
|
|
|
|
|
LL | _custom %= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:270:5
|
|
|
|
|
|
|
|
|
LL | _custom %= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:271:5
|
|
|
|
|
|
|
|
|
LL | _custom *= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:272:5
|
|
|
|
|
|
|
|
|
LL | _custom *= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:273:5
|
|
|
|
|
|
|
|
|
LL | _custom += -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:274:5
|
|
|
|
|
|
|
|
|
LL | _custom += &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:275:5
|
|
|
|
|
|
|
|
|
LL | _custom -= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:276:5
|
|
|
|
|
|
|
|
|
LL | _custom -= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:277:5
|
|
|
|
|
|
|
|
|
LL | _custom /= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:278:5
|
|
|
|
|
|
|
|
|
LL | _custom /= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:279:5
|
|
|
|
|
|
|
|
|
LL | _custom %= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:280:5
|
|
|
|
|
|
|
|
|
LL | _custom %= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:281:5
|
|
|
|
|
|
|
|
|
LL | _custom *= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:282:5
|
|
|
|
|
|
|
|
|
LL | _custom *= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:285:10
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n + 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:286:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n + &1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:287:10
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = 1 + _n;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:288:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = &1 + _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:289:10
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n - 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:290:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n - &1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:291:10
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = 1 - _n;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:292:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = &1 - _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:293:10
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n / 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:294:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n / &0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:295:10
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n % 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:296:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n % &0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:297:10
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n * 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:298:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = _n * &2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:299:10
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
|
|
|
LL | _n = 2 * _n;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:300:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = &2 * _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:301:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = 23 + &85;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:302:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = &23 + 85;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:303:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
|
LL | _n = &23 + &85;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:304:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = _custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:305:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = _custom + &_custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:306:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = Custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:307:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = &Custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:308:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = _custom - Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:309:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = _custom - &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:310:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = Custom - _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:311:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = &Custom - _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:312:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = _custom / Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:313:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = _custom / &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:314:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = _custom % Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:315:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = _custom % &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:316:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = _custom * Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:317:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = _custom * &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:318:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = Custom * _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:319:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = &Custom * _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:320:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = Custom + &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:321:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = &Custom + Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:322:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = &Custom + &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:325:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _n = -_n;
|
|
|
|
| ^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:326:10
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _n = -&_n;
|
|
|
|
| ^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:327:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = -_custom;
|
|
|
|
| ^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:328:15
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | _custom = -&_custom;
|
|
|
|
| ^^^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:337:5
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | 1 + i;
|
|
|
|
| ^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:338:5
|
2022-09-21 17:02:37 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | i * 2;
|
|
|
|
| ^^^^^
|
2022-09-21 17:02:37 +00:00
|
|
|
|
2022-10-06 07:44:38 +00:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2023-01-12 18:48:13 +00:00
|
|
|
--> $DIR/arithmetic_side_effects.rs:340:5
|
2022-10-06 07:44:38 +00:00
|
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
LL | i - 2 + 2 - i;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:341:5
|
|
|
|
|
|
|
|
|
LL | -i;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:342:5
|
|
|
|
|
|
|
|
|
LL | i >> 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:343:5
|
|
|
|
|
|
|
|
|
LL | i << 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:352:5
|
|
|
|
|
|
|
|
|
LL | i += 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:353:5
|
|
|
|
|
|
|
|
|
LL | i -= 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:354:5
|
|
|
|
|
|
|
|
|
LL | i *= 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:356:5
|
|
|
|
|
|
|
|
|
LL | i /= 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:358:5
|
|
|
|
|
|
|
|
|
LL | i /= var1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:359:5
|
|
|
|
|
|
|
|
|
LL | i /= var2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:361:5
|
|
|
|
|
|
|
|
|
LL | i %= 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:363:5
|
|
|
|
|
|
|
|
|
LL | i %= var1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:364:5
|
|
|
|
|
|
|
|
|
LL | i %= var2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:365:5
|
|
|
|
|
|
|
|
|
LL | i <<= 3;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
|
|
|
--> $DIR/arithmetic_side_effects.rs:366:5
|
|
|
|
|
|
|
|
|
LL | i >>= 2;
|
|
|
|
| ^^^^^^^
|
2022-10-06 07:44:38 +00:00
|
|
|
|
2023-01-12 18:48:13 +00:00
|
|
|
error: aborting due to 99 previous errors
|
2022-09-09 11:36:26 +00:00
|
|
|
|