]> git.lizzy.rs Git - rust.git/blob - tests/ui/assign_ops.stderr
Merge pull request #1715 from Manishearth/rustup
[rust.git] / tests / ui / assign_ops.stderr
1 error: assign operation detected
2  --> $DIR/assign_ops.rs:8:5
3   |
4 8 |     i += 2;
5   |     ^^^^^^ help: replace it with `i = i + 2`
6   |
7 note: lint level defined here
8  --> $DIR/assign_ops.rs:4:8
9   |
10 4 | #[deny(assign_ops)]
11   |        ^^^^^^^^^^
12
13 error: assign operation detected
14   --> $DIR/assign_ops.rs:11:5
15    |
16 11 |     i += 2 + 17;
17    |     ^^^^^^^^^^^ help: replace it with `i = i + 2 + 17`
18
19 error: assign operation detected
20   --> $DIR/assign_ops.rs:14:5
21    |
22 14 |     i -= 6;
23    |     ^^^^^^ help: replace it with `i = i - 6`
24
25 error: assign operation detected
26   --> $DIR/assign_ops.rs:17:5
27    |
28 17 |     i -= 2 - 1;
29    |     ^^^^^^^^^^ help: replace it with `i = i - (2 - 1)`
30
31 error: assign operation detected
32   --> $DIR/assign_ops.rs:21:5
33    |
34 21 |     i *= 5;
35    |     ^^^^^^ help: replace it with `i = i * 5`
36
37 error: assign operation detected
38   --> $DIR/assign_ops.rs:24:5
39    |
40 24 |     i *= 1+5;
41    |     ^^^^^^^^ help: replace it with `i = i * (1+5)`
42
43 error: assign operation detected
44   --> $DIR/assign_ops.rs:27:5
45    |
46 27 |     i /= 32;
47    |     ^^^^^^^ help: replace it with `i = i / 32`
48
49 error: assign operation detected
50   --> $DIR/assign_ops.rs:30:5
51    |
52 30 |     i /= 32 | 5;
53    |     ^^^^^^^^^^^ help: replace it with `i = i / (32 | 5)`
54
55 error: assign operation detected
56   --> $DIR/assign_ops.rs:33:5
57    |
58 33 |     i /= 32 / 5;
59    |     ^^^^^^^^^^^ help: replace it with `i = i / (32 / 5)`
60
61 error: assign operation detected
62   --> $DIR/assign_ops.rs:36:5
63    |
64 36 |     i %= 42;
65    |     ^^^^^^^ help: replace it with `i = i % 42`
66
67 error: assign operation detected
68   --> $DIR/assign_ops.rs:39:5
69    |
70 39 |     i >>= i;
71    |     ^^^^^^^ help: replace it with `i = i >> i`
72
73 error: assign operation detected
74   --> $DIR/assign_ops.rs:42:5
75    |
76 42 |     i <<= 9 + 6 - 7;
77    |     ^^^^^^^^^^^^^^^ help: replace it with `i = i << (9 + 6 - 7)`
78
79 error: assign operation detected
80   --> $DIR/assign_ops.rs:45:5
81    |
82 45 |     i += 1 << 5;
83    |     ^^^^^^^^^^^ help: replace it with `i = i + (1 << 5)`
84
85 error: manual implementation of an assign operation
86   --> $DIR/assign_ops.rs:55:5
87    |
88 55 |     a = a + 1;
89    |     ^^^^^^^^^ help: replace it with `a += 1`
90    |
91 note: lint level defined here
92   --> $DIR/assign_ops.rs:52:8
93    |
94 52 | #[deny(assign_op_pattern)]
95    |        ^^^^^^^^^^^^^^^^^
96
97 error: manual implementation of an assign operation
98   --> $DIR/assign_ops.rs:58:5
99    |
100 58 |     a = 1 + a;
101    |     ^^^^^^^^^ help: replace it with `a += 1`
102
103 error: manual implementation of an assign operation
104   --> $DIR/assign_ops.rs:61:5
105    |
106 61 |     a = a - 1;
107    |     ^^^^^^^^^ help: replace it with `a -= 1`
108
109 error: manual implementation of an assign operation
110   --> $DIR/assign_ops.rs:64:5
111    |
112 64 |     a = a * 99;
113    |     ^^^^^^^^^^ help: replace it with `a *= 99`
114
115 error: manual implementation of an assign operation
116   --> $DIR/assign_ops.rs:67:5
117    |
118 67 |     a = 42 * a;
119    |     ^^^^^^^^^^ help: replace it with `a *= 42`
120
121 error: manual implementation of an assign operation
122   --> $DIR/assign_ops.rs:70:5
123    |
124 70 |     a = a / 2;
125    |     ^^^^^^^^^ help: replace it with `a /= 2`
126
127 error: manual implementation of an assign operation
128   --> $DIR/assign_ops.rs:73:5
129    |
130 73 |     a = a % 5;
131    |     ^^^^^^^^^ help: replace it with `a %= 5`
132
133 error: manual implementation of an assign operation
134   --> $DIR/assign_ops.rs:76:5
135    |
136 76 |     a = a & 1;
137    |     ^^^^^^^^^ help: replace it with `a &= 1`
138
139 error: aborting due to 21 previous errors
140