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