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