]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/assign_ops.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / assign_ops.stderr
1 error: assign operation detected
2  --> assign_ops.rs:8:5
3   |
4 8 |     i += 2;
5   |     ^^^^^^ help: replace it with `i = i + 2`
6   |
7   = note: `-D assign-ops` implied by `-D warnings`
8
9 error: assign operation detected
10  --> assign_ops.rs:9:5
11   |
12 9 |     i += 2 + 17;
13   |     ^^^^^^^^^^^ help: replace it with `i = i + 2 + 17`
14   |
15   = note: `-D assign-ops` implied by `-D warnings`
16
17 error: assign operation detected
18   --> assign_ops.rs:10:5
19    |
20 10 |     i -= 6;
21    |     ^^^^^^ help: replace it with `i = i - 6`
22    |
23    = note: `-D assign-ops` implied by `-D warnings`
24
25 error: assign operation detected
26   --> assign_ops.rs:11:5
27    |
28 11 |     i -= 2 - 1;
29    |     ^^^^^^^^^^ help: replace it with `i = i - (2 - 1)`
30    |
31    = note: `-D assign-ops` implied by `-D warnings`
32
33 error: assign operation detected
34   --> assign_ops.rs:12:5
35    |
36 12 |     i *= 5;
37    |     ^^^^^^ help: replace it with `i = i * 5`
38    |
39    = note: `-D assign-ops` implied by `-D warnings`
40
41 error: assign operation detected
42   --> assign_ops.rs:13:5
43    |
44 13 |     i *= 1+5;
45    |     ^^^^^^^^ help: replace it with `i = i * (1+5)`
46    |
47    = note: `-D assign-ops` implied by `-D warnings`
48
49 error: assign operation detected
50   --> assign_ops.rs:14:5
51    |
52 14 |     i /= 32;
53    |     ^^^^^^^ help: replace it with `i = i / 32`
54    |
55    = note: `-D assign-ops` implied by `-D warnings`
56
57 error: assign operation detected
58   --> assign_ops.rs:15:5
59    |
60 15 |     i /= 32 | 5;
61    |     ^^^^^^^^^^^ help: replace it with `i = i / (32 | 5)`
62    |
63    = note: `-D assign-ops` implied by `-D warnings`
64
65 error: assign operation detected
66   --> assign_ops.rs:16:5
67    |
68 16 |     i /= 32 / 5;
69    |     ^^^^^^^^^^^ help: replace it with `i = i / (32 / 5)`
70    |
71    = note: `-D assign-ops` implied by `-D warnings`
72
73 error: assign operation detected
74   --> assign_ops.rs:17:5
75    |
76 17 |     i %= 42;
77    |     ^^^^^^^ help: replace it with `i = i % 42`
78    |
79    = note: `-D assign-ops` implied by `-D warnings`
80
81 error: assign operation detected
82   --> assign_ops.rs:18:5
83    |
84 18 |     i >>= i;
85    |     ^^^^^^^ help: replace it with `i = i >> i`
86    |
87    = note: `-D assign-ops` implied by `-D warnings`
88
89 error: assign operation detected
90   --> assign_ops.rs:19:5
91    |
92 19 |     i <<= 9 + 6 - 7;
93    |     ^^^^^^^^^^^^^^^ help: replace it with `i = i << (9 + 6 - 7)`
94    |
95    = note: `-D assign-ops` implied by `-D warnings`
96
97 error: assign operation detected
98   --> assign_ops.rs:20:5
99    |
100 20 |     i += 1 << 5;
101    |     ^^^^^^^^^^^ help: replace it with `i = i + (1 << 5)`
102    |
103    = note: `-D assign-ops` implied by `-D warnings`
104
105 error: manual implementation of an assign operation
106   --> assign_ops.rs:27:5
107    |
108 27 |     a = a + 1;
109    |     ^^^^^^^^^ help: replace it with `a += 1`
110    |
111    = note: `-D assign-op-pattern` implied by `-D warnings`
112
113 error: manual implementation of an assign operation
114   --> assign_ops.rs:28:5
115    |
116 28 |     a = 1 + a;
117    |     ^^^^^^^^^ help: replace it with `a += 1`
118    |
119    = note: `-D assign-op-pattern` implied by `-D warnings`
120
121 error: manual implementation of an assign operation
122   --> assign_ops.rs:29:5
123    |
124 29 |     a = a - 1;
125    |     ^^^^^^^^^ help: replace it with `a -= 1`
126    |
127    = note: `-D assign-op-pattern` implied by `-D warnings`
128
129 error: manual implementation of an assign operation
130   --> assign_ops.rs:30:5
131    |
132 30 |     a = a * 99;
133    |     ^^^^^^^^^^ help: replace it with `a *= 99`
134    |
135    = note: `-D assign-op-pattern` implied by `-D warnings`
136
137 error: manual implementation of an assign operation
138   --> assign_ops.rs:31:5
139    |
140 31 |     a = 42 * a;
141    |     ^^^^^^^^^^ help: replace it with `a *= 42`
142    |
143    = note: `-D assign-op-pattern` implied by `-D warnings`
144
145 error: manual implementation of an assign operation
146   --> assign_ops.rs:32:5
147    |
148 32 |     a = a / 2;
149    |     ^^^^^^^^^ help: replace it with `a /= 2`
150    |
151    = note: `-D assign-op-pattern` implied by `-D warnings`
152
153 error: manual implementation of an assign operation
154   --> assign_ops.rs:33:5
155    |
156 33 |     a = a % 5;
157    |     ^^^^^^^^^ help: replace it with `a %= 5`
158    |
159    = note: `-D assign-op-pattern` implied by `-D warnings`
160
161 error: manual implementation of an assign operation
162   --> assign_ops.rs:34:5
163    |
164 34 |     a = a & 1;
165    |     ^^^^^^^^^ help: replace it with `a &= 1`
166    |
167    = note: `-D assign-op-pattern` implied by `-D warnings`
168
169 error: manual implementation of an assign operation
170   --> assign_ops.rs:40:5
171    |
172 40 |     s = s + "bla";
173    |     ^^^^^^^^^^^^^ help: replace it with `s += "bla"`
174    |
175    = note: `-D assign-op-pattern` implied by `-D warnings`
176
177 error: aborting due to previous error(s)
178
179
180 To learn more, run the command again with --verbose.