2024-05-03 04:22:55 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:166:13
|
2024-05-03 04:22:55 -05:00
|
|
|
|
|
2024-06-18 12:34:49 -05:00
|
|
|
LL | let _ = 1f16 + 1f16;
|
|
|
|
| ^^^^^^^^^^^
|
2024-06-03 04:11:58 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::arithmetic-side-effects` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::arithmetic_side_effects)]`
|
2024-05-03 04:22:55 -05:00
|
|
|
|
2022-10-06 02:44:38 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:169:13
|
2024-06-18 12:34:49 -05:00
|
|
|
|
|
|
|
|
LL | let _ = 1f128 + 1f128;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:307:5
|
2024-06-18 12:34:49 -05:00
|
|
|
|
|
|
|
|
LL | _n += 1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:308:5
|
2022-09-09 06:36:26 -05:00
|
|
|
|
|
2022-10-06 02:44:38 -05:00
|
|
|
LL | _n += &1;
|
|
|
|
| ^^^^^^^^
|
2022-09-09 06:36:26 -05:00
|
|
|
|
2022-09-21 12:02:37 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:309:5
|
2022-09-09 06:36:26 -05:00
|
|
|
|
|
2022-09-21 12:02:37 -05:00
|
|
|
LL | _n -= 1;
|
|
|
|
| ^^^^^^^
|
2022-09-09 06:36:26 -05:00
|
|
|
|
2022-09-21 12:02:37 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:310:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n -= &1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:311:5
|
2022-09-09 06:36:26 -05:00
|
|
|
|
|
2022-09-21 12:02:37 -05:00
|
|
|
LL | _n /= 0;
|
|
|
|
| ^^^^^^^
|
2022-09-09 06:36:26 -05:00
|
|
|
|
2022-09-21 12:02:37 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:312:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n /= &0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:313:5
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n %= 0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:314:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n %= &0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:315:5
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n *= 2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:316:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n *= &2;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:317:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _n += -1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:318:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _n += &-1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:319:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _n -= -1;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:320:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _n -= &-1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:321:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _n /= -0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:322:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _n /= &-0;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:323:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _n %= -0;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:324:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _n %= &-0;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:325:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _n *= -2;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:326:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _n *= &-2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:327:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom += Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:328:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom += &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:329:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom -= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:330:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom -= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:331:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom /= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:332:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom /= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:333:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom %= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:334:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom %= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:335:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom *= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:336:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom *= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:337:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom >>= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:338:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom >>= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:339:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom <<= Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:340:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom <<= &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:341:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom += -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:342:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom += &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:343:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom -= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:344:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom -= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:345:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom /= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:346:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom /= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:347:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom %= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:348:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom %= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:349:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom *= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:350:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | _custom *= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:351:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom >>= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:352:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom >>= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:353:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom <<= -Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:354:5
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom <<= &-Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:357:10
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n + 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:358:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n + &1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:359:10
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = 1 + _n;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:360:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = &1 + _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:361:10
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n - 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:362:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n - &1;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:363:10
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = 1 - _n;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:364:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = &1 - _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:365:10
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n / 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:366:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n / &0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:367:10
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n % 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:368:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n % &0;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:369:10
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n * 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:370:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = _n * &2;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:371:10
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
|
|
|
LL | _n = 2 * _n;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:372:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = &2 * _n;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:373:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = 23 + &85;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:374:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = &23 + 85;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:375:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
|
LL | _n = &23 + &85;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:376:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = _custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:377:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = _custom + &_custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:378:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = Custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:379:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = &Custom + _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:380:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = _custom - Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:381:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = _custom - &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:382:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = Custom - _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:383:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = &Custom - _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:384:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = _custom / Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:385:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = _custom / &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:386:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = _custom % Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:387:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = _custom % &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:388:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = _custom * Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:389:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = _custom * &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:390:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = Custom * _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:391:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = &Custom * _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:392:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = Custom + &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:393:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = &Custom + Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:394:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = &Custom + &Custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:395:15
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom = _custom >> _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:396:15
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom = _custom >> &_custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:397:15
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom = Custom << _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:398:15
|
2023-03-10 03:53:50 -06:00
|
|
|
|
|
|
|
|
LL | _custom = &Custom << _custom;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:401:23
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
|
|
|
LL | _n.saturating_div(0);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:402:21
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
|
|
|
LL | _n.wrapping_div(0);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:403:21
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
|
|
|
LL | _n.wrapping_rem(0);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:404:28
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
|
|
|
LL | _n.wrapping_rem_euclid(0);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:406:23
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
|
|
|
LL | _n.saturating_div(_n);
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:407:21
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
|
|
|
LL | _n.wrapping_div(_n);
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:408:21
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
|
|
|
LL | _n.wrapping_rem(_n);
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:409:28
|
2023-04-23 06:03:09 -05:00
|
|
|
|
|
|
|
|
LL | _n.wrapping_rem_euclid(_n);
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:412:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _n = -_n;
|
|
|
|
| ^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:413:10
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _n = -&_n;
|
|
|
|
| ^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:414:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = -_custom;
|
|
|
|
| ^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:415:15
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | _custom = -&_custom;
|
|
|
|
| ^^^^^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:424:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | 1 + i;
|
|
|
|
| ^^^^^
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:425:5
|
2022-09-21 12:02:37 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | i * 2;
|
|
|
|
| ^^^^^
|
2022-09-21 12:02:37 -05:00
|
|
|
|
2023-04-11 08:31:08 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:426:5
|
2023-04-11 08:31:08 -05:00
|
|
|
|
|
|
|
|
LL | 1 % i / 2;
|
|
|
|
| ^^^^^
|
|
|
|
|
2022-10-06 02:44:38 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:427:5
|
2022-10-06 02:44:38 -05:00
|
|
|
|
|
2023-01-12 12:48:13 -06:00
|
|
|
LL | i - 2 + 2 - i;
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:428:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | -i;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:439:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | i += 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:440:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | i -= 1;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:441:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | i *= 2;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:443:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | i /= 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:445:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | i /= var1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:446:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | i /= var2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:448:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | i %= 0;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:450:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | i %= var1;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:451:5
|
2023-01-12 12:48:13 -06:00
|
|
|
|
|
|
|
|
LL | i %= var2;
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2023-04-11 08:31:08 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:461:5
|
2023-04-11 08:31:08 -05:00
|
|
|
|
|
|
|
|
LL | 10 / a
|
|
|
|
| ^^^^^^
|
|
|
|
|
2023-08-31 13:10:51 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:515:9
|
2023-08-31 13:10:51 -05:00
|
|
|
|
|
|
|
|
LL | x / maybe_zero
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:519:9
|
2023-08-31 13:10:51 -05:00
|
|
|
|
|
|
|
|
LL | x % maybe_zero
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2024-05-02 10:26:44 -05:00
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:530:5
|
2024-05-02 10:26:44 -05:00
|
|
|
|
|
|
|
|
LL | one.add_assign(1);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: arithmetic operation that can potentially result in unexpected side-effects
|
2024-09-22 13:42:10 -05:00
|
|
|
--> tests/ui/arithmetic_side_effects.rs:534:5
|
2024-05-02 10:26:44 -05:00
|
|
|
|
|
|
|
|
LL | one.sub_assign(1);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-06-18 12:34:49 -05:00
|
|
|
error: aborting due to 123 previous errors
|
2022-09-09 06:36:26 -05:00
|
|
|
|