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