]>
Commit | Line | Data |
---|---|---|
2b03887a FG |
1 | error: arithmetic operation that can potentially result in unexpected side-effects |
2 | --> $DIR/arithmetic_side_effects.rs:78:13 | |
f2b60f7d | 3 | | |
2b03887a FG |
4 | LL | let _ = String::new() + ""; |
5 | | ^^^^^^^^^^^^^^^^^^ | |
f2b60f7d FG |
6 | | |
7 | = note: `-D clippy::arithmetic-side-effects` implied by `-D warnings` | |
8 | ||
2b03887a FG |
9 | error: arithmetic operation that can potentially result in unexpected side-effects |
10 | --> $DIR/arithmetic_side_effects.rs:86:27 | |
f2b60f7d | 11 | | |
2b03887a FG |
12 | LL | let inferred_string = string + ""; |
13 | | ^^^^^^^^^^^ | |
f2b60f7d | 14 | |
2b03887a FG |
15 | error: arithmetic operation that can potentially result in unexpected side-effects |
16 | --> $DIR/arithmetic_side_effects.rs:90:13 | |
f2b60f7d | 17 | | |
2b03887a FG |
18 | LL | let _ = inferred_string + ""; |
19 | | ^^^^^^^^^^^^^^^^^^^^ | |
f2b60f7d | 20 | |
2b03887a | 21 | error: arithmetic operation that can potentially result in unexpected side-effects |
487cf647 | 22 | --> $DIR/arithmetic_side_effects.rs:165:5 |
2b03887a FG |
23 | | |
24 | LL | _n += 1; | |
25 | | ^^^^^^^ | |
26 | ||
27 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 28 | --> $DIR/arithmetic_side_effects.rs:166:5 |
2b03887a FG |
29 | | |
30 | LL | _n += &1; | |
31 | | ^^^^^^^^ | |
32 | ||
33 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 34 | --> $DIR/arithmetic_side_effects.rs:167:5 |
2b03887a FG |
35 | | |
36 | LL | _n -= 1; | |
37 | | ^^^^^^^ | |
38 | ||
39 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 40 | --> $DIR/arithmetic_side_effects.rs:168:5 |
2b03887a FG |
41 | | |
42 | LL | _n -= &1; | |
43 | | ^^^^^^^^ | |
44 | ||
45 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 46 | --> $DIR/arithmetic_side_effects.rs:169:5 |
2b03887a FG |
47 | | |
48 | LL | _n /= 0; | |
49 | | ^^^^^^^ | |
50 | ||
51 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 52 | --> $DIR/arithmetic_side_effects.rs:170:5 |
2b03887a FG |
53 | | |
54 | LL | _n /= &0; | |
55 | | ^^^^^^^^ | |
56 | ||
57 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 58 | --> $DIR/arithmetic_side_effects.rs:171:5 |
2b03887a FG |
59 | | |
60 | LL | _n %= 0; | |
61 | | ^^^^^^^ | |
62 | ||
63 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 64 | --> $DIR/arithmetic_side_effects.rs:172:5 |
2b03887a FG |
65 | | |
66 | LL | _n %= &0; | |
67 | | ^^^^^^^^ | |
68 | ||
69 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 70 | --> $DIR/arithmetic_side_effects.rs:173:5 |
2b03887a FG |
71 | | |
72 | LL | _n *= 2; | |
73 | | ^^^^^^^ | |
74 | ||
75 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 76 | --> $DIR/arithmetic_side_effects.rs:174:5 |
2b03887a FG |
77 | | |
78 | LL | _n *= &2; | |
79 | | ^^^^^^^^ | |
80 | ||
81 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 82 | --> $DIR/arithmetic_side_effects.rs:177:10 |
2b03887a FG |
83 | | |
84 | LL | _n = _n + 1; | |
85 | | ^^^^^^ | |
86 | ||
87 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 88 | --> $DIR/arithmetic_side_effects.rs:178:10 |
2b03887a FG |
89 | | |
90 | LL | _n = _n + &1; | |
91 | | ^^^^^^^ | |
92 | ||
93 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 94 | --> $DIR/arithmetic_side_effects.rs:179:10 |
2b03887a FG |
95 | | |
96 | LL | _n = 1 + _n; | |
97 | | ^^^^^^ | |
98 | ||
99 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 100 | --> $DIR/arithmetic_side_effects.rs:180:10 |
2b03887a FG |
101 | | |
102 | LL | _n = &1 + _n; | |
103 | | ^^^^^^^ | |
104 | ||
105 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 106 | --> $DIR/arithmetic_side_effects.rs:181:10 |
2b03887a FG |
107 | | |
108 | LL | _n = _n - 1; | |
109 | | ^^^^^^ | |
110 | ||
111 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 112 | --> $DIR/arithmetic_side_effects.rs:182:10 |
2b03887a FG |
113 | | |
114 | LL | _n = _n - &1; | |
115 | | ^^^^^^^ | |
116 | ||
117 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 118 | --> $DIR/arithmetic_side_effects.rs:183:10 |
2b03887a FG |
119 | | |
120 | LL | _n = 1 - _n; | |
121 | | ^^^^^^ | |
122 | ||
123 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 124 | --> $DIR/arithmetic_side_effects.rs:184:10 |
2b03887a FG |
125 | | |
126 | LL | _n = &1 - _n; | |
127 | | ^^^^^^^ | |
128 | ||
129 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 130 | --> $DIR/arithmetic_side_effects.rs:185:10 |
2b03887a FG |
131 | | |
132 | LL | _n = _n / 0; | |
133 | | ^^^^^^ | |
134 | ||
135 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 136 | --> $DIR/arithmetic_side_effects.rs:186:10 |
2b03887a FG |
137 | | |
138 | LL | _n = _n / &0; | |
139 | | ^^^^^^^ | |
140 | ||
141 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 142 | --> $DIR/arithmetic_side_effects.rs:187:10 |
2b03887a FG |
143 | | |
144 | LL | _n = _n % 0; | |
145 | | ^^^^^^ | |
146 | ||
147 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 148 | --> $DIR/arithmetic_side_effects.rs:188:10 |
2b03887a FG |
149 | | |
150 | LL | _n = _n % &0; | |
151 | | ^^^^^^^ | |
152 | ||
153 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 154 | --> $DIR/arithmetic_side_effects.rs:189:10 |
2b03887a FG |
155 | | |
156 | LL | _n = _n * 2; | |
157 | | ^^^^^^ | |
158 | ||
159 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 160 | --> $DIR/arithmetic_side_effects.rs:190:10 |
2b03887a FG |
161 | | |
162 | LL | _n = _n * &2; | |
163 | | ^^^^^^^ | |
164 | ||
165 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 166 | --> $DIR/arithmetic_side_effects.rs:191:10 |
2b03887a FG |
167 | | |
168 | LL | _n = 2 * _n; | |
169 | | ^^^^^^ | |
170 | ||
171 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 172 | --> $DIR/arithmetic_side_effects.rs:192:10 |
2b03887a FG |
173 | | |
174 | LL | _n = &2 * _n; | |
175 | | ^^^^^^^ | |
176 | ||
177 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 178 | --> $DIR/arithmetic_side_effects.rs:193:10 |
2b03887a FG |
179 | | |
180 | LL | _n = 23 + &85; | |
181 | | ^^^^^^^^ | |
182 | ||
183 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 184 | --> $DIR/arithmetic_side_effects.rs:194:10 |
2b03887a FG |
185 | | |
186 | LL | _n = &23 + 85; | |
187 | | ^^^^^^^^ | |
188 | ||
189 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 190 | --> $DIR/arithmetic_side_effects.rs:195:10 |
2b03887a FG |
191 | | |
192 | LL | _n = &23 + &85; | |
193 | | ^^^^^^^^^ | |
194 | ||
195 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 196 | --> $DIR/arithmetic_side_effects.rs:198:13 |
2b03887a FG |
197 | | |
198 | LL | let _ = Custom + 0; | |
199 | | ^^^^^^^^^^ | |
200 | ||
201 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 202 | --> $DIR/arithmetic_side_effects.rs:199:13 |
2b03887a FG |
203 | | |
204 | LL | let _ = Custom + 1; | |
205 | | ^^^^^^^^^^ | |
206 | ||
207 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 208 | --> $DIR/arithmetic_side_effects.rs:200:13 |
2b03887a FG |
209 | | |
210 | LL | let _ = Custom + 2; | |
211 | | ^^^^^^^^^^ | |
212 | ||
213 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 214 | --> $DIR/arithmetic_side_effects.rs:201:13 |
2b03887a FG |
215 | | |
216 | LL | let _ = Custom + 0.0; | |
217 | | ^^^^^^^^^^^^ | |
218 | ||
219 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 220 | --> $DIR/arithmetic_side_effects.rs:202:13 |
2b03887a FG |
221 | | |
222 | LL | let _ = Custom + 1.0; | |
223 | | ^^^^^^^^^^^^ | |
224 | ||
225 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 226 | --> $DIR/arithmetic_side_effects.rs:203:13 |
2b03887a FG |
227 | | |
228 | LL | let _ = Custom + 2.0; | |
229 | | ^^^^^^^^^^^^ | |
230 | ||
231 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 232 | --> $DIR/arithmetic_side_effects.rs:204:13 |
2b03887a FG |
233 | | |
234 | LL | let _ = Custom - 0; | |
235 | | ^^^^^^^^^^ | |
236 | ||
237 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 238 | --> $DIR/arithmetic_side_effects.rs:205:13 |
2b03887a FG |
239 | | |
240 | LL | let _ = Custom - 1; | |
241 | | ^^^^^^^^^^ | |
242 | ||
243 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 244 | --> $DIR/arithmetic_side_effects.rs:206:13 |
2b03887a FG |
245 | | |
246 | LL | let _ = Custom - 2; | |
247 | | ^^^^^^^^^^ | |
248 | ||
249 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 250 | --> $DIR/arithmetic_side_effects.rs:207:13 |
2b03887a FG |
251 | | |
252 | LL | let _ = Custom - 0.0; | |
253 | | ^^^^^^^^^^^^ | |
254 | ||
255 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 256 | --> $DIR/arithmetic_side_effects.rs:208:13 |
2b03887a FG |
257 | | |
258 | LL | let _ = Custom - 1.0; | |
259 | | ^^^^^^^^^^^^ | |
260 | ||
261 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 262 | --> $DIR/arithmetic_side_effects.rs:209:13 |
2b03887a FG |
263 | | |
264 | LL | let _ = Custom - 2.0; | |
265 | | ^^^^^^^^^^^^ | |
266 | ||
267 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 268 | --> $DIR/arithmetic_side_effects.rs:210:13 |
2b03887a FG |
269 | | |
270 | LL | let _ = Custom / 0; | |
271 | | ^^^^^^^^^^ | |
272 | ||
273 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 274 | --> $DIR/arithmetic_side_effects.rs:211:13 |
2b03887a FG |
275 | | |
276 | LL | let _ = Custom / 1; | |
277 | | ^^^^^^^^^^ | |
278 | ||
279 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 280 | --> $DIR/arithmetic_side_effects.rs:212:13 |
2b03887a FG |
281 | | |
282 | LL | let _ = Custom / 2; | |
283 | | ^^^^^^^^^^ | |
284 | ||
285 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 286 | --> $DIR/arithmetic_side_effects.rs:213:13 |
2b03887a FG |
287 | | |
288 | LL | let _ = Custom / 0.0; | |
289 | | ^^^^^^^^^^^^ | |
290 | ||
291 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 292 | --> $DIR/arithmetic_side_effects.rs:214:13 |
2b03887a FG |
293 | | |
294 | LL | let _ = Custom / 1.0; | |
295 | | ^^^^^^^^^^^^ | |
296 | ||
297 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 298 | --> $DIR/arithmetic_side_effects.rs:215:13 |
2b03887a FG |
299 | | |
300 | LL | let _ = Custom / 2.0; | |
301 | | ^^^^^^^^^^^^ | |
302 | ||
303 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 304 | --> $DIR/arithmetic_side_effects.rs:216:13 |
2b03887a FG |
305 | | |
306 | LL | let _ = Custom * 0; | |
307 | | ^^^^^^^^^^ | |
308 | ||
309 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 310 | --> $DIR/arithmetic_side_effects.rs:217:13 |
2b03887a FG |
311 | | |
312 | LL | let _ = Custom * 1; | |
313 | | ^^^^^^^^^^ | |
314 | ||
315 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 316 | --> $DIR/arithmetic_side_effects.rs:218:13 |
2b03887a FG |
317 | | |
318 | LL | let _ = Custom * 2; | |
319 | | ^^^^^^^^^^ | |
320 | ||
321 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 322 | --> $DIR/arithmetic_side_effects.rs:219:13 |
2b03887a FG |
323 | | |
324 | LL | let _ = Custom * 0.0; | |
325 | | ^^^^^^^^^^^^ | |
326 | ||
327 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 328 | --> $DIR/arithmetic_side_effects.rs:220:13 |
2b03887a FG |
329 | | |
330 | LL | let _ = Custom * 1.0; | |
331 | | ^^^^^^^^^^^^ | |
332 | ||
333 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 334 | --> $DIR/arithmetic_side_effects.rs:221:13 |
2b03887a FG |
335 | | |
336 | LL | let _ = Custom * 2.0; | |
337 | | ^^^^^^^^^^^^ | |
338 | ||
339 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 340 | --> $DIR/arithmetic_side_effects.rs:224:10 |
2b03887a FG |
341 | | |
342 | LL | _n = -_n; | |
343 | | ^^^ | |
344 | ||
345 | error: arithmetic operation that can potentially result in unexpected side-effects | |
487cf647 | 346 | --> $DIR/arithmetic_side_effects.rs:225:10 |
2b03887a FG |
347 | | |
348 | LL | _n = -&_n; | |
349 | | ^^^^ | |
350 | ||
351 | error: aborting due to 58 previous errors | |
f2b60f7d | 352 |