2017-02-07 21:05:30 +01:00
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:8:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-02-08 14:58:07 +01:00
|
|
|
8 | i += 2;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^ help: replace it with `i = i + 2`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: `-D assign-ops` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:9:5
|
2017-05-08 13:31:48 +02:00
|
|
|
|
|
|
|
|
9 | i += 2 + 17;
|
|
|
|
| ^^^^^^^^^^^ help: replace it with `i = i + 2 + 17`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:10:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
10 | i -= 6;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^ help: replace it with `i = i - 6`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:11:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
11 | i -= 2 - 1;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^ help: replace it with `i = i - (2 - 1)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:12:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
12 | i *= 5;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^ help: replace it with `i = i * 5`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:13:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
13 | i *= 1+5;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^ help: replace it with `i = i * (1+5)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:14:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
14 | i /= 32;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^ help: replace it with `i = i / 32`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:15:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
15 | i /= 32 | 5;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^^ help: replace it with `i = i / (32 | 5)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:16:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
16 | i /= 32 / 5;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^^ help: replace it with `i = i / (32 / 5)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:17:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
17 | i %= 42;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^ help: replace it with `i = i % 42`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:18:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
18 | i >>= i;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^ help: replace it with `i = i >> i`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:19:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
19 | i <<= 9 + 6 - 7;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^^^^^^ help: replace it with `i = i << (9 + 6 - 7)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: assign operation detected
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:20:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
20 | i += 1 << 5;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^^ help: replace it with `i = i + (1 << 5)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:27:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
27 | a = a + 1;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^ help: replace it with `a += 1`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: `-D assign-op-pattern` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:28:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
28 | a = 1 + a;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^ help: replace it with `a += 1`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:29:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
29 | a = a - 1;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^ help: replace it with `a -= 1`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:30:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
30 | a = a * 99;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^ help: replace it with `a *= 99`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:31:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
31 | a = 42 * a;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^ help: replace it with `a *= 42`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:32:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
32 | a = a / 2;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^ help: replace it with `a /= 2`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:33:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
33 | a = a % 5;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^ help: replace it with `a %= 5`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2017-05-17 17:51:35 +02:00
|
|
|
--> assign_ops.rs:34:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-08 13:31:48 +02:00
|
|
|
34 | a = a & 1;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^ help: replace it with `a &= 1`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-06-11 04:34:47 +02:00
|
|
|
error: manual implementation of an assign operation
|
|
|
|
--> assign_ops.rs:40:5
|
|
|
|
|
|
|
|
|
40 | s = s + "bla";
|
|
|
|
| ^^^^^^^^^^^^^ help: replace it with `s += "bla"`
|
|
|
|
|
2017-07-03 06:37:30 +02:00
|
|
|
error: aborting due to 22 previous errors
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|