@@ -292,92 +292,40 @@ LL | vec.iter().cloned().map(|x| out.push(x)).collect::<Vec<_>>();
292
292
|
293
293
= note: `-D clippy::unused-collect` implied by `-D warnings`
294
294
295
- error: you seem to want to iterate on a map's values
296
- --> $DIR/for_loop.rs:337:19
297
- |
298
- LL | for (_, v) in &m {
299
- | ^^
300
- |
301
- = note: `-D clippy::for-kv-map` implied by `-D warnings`
302
- help: use the corresponding method
303
- |
304
- LL | for v in m.values() {
305
- | ^ ^^^^^^^^^^
306
-
307
- error: you seem to want to iterate on a map's values
308
- --> $DIR/for_loop.rs:342:19
309
- |
310
- LL | for (_, v) in &*m {
311
- | ^^^
312
- help: use the corresponding method
313
- |
314
- LL | for v in (*m).values() {
315
- | ^ ^^^^^^^^^^^^^
316
-
317
- error: you seem to want to iterate on a map's values
318
- --> $DIR/for_loop.rs:350:19
319
- |
320
- LL | for (_, v) in &mut m {
321
- | ^^^^^^
322
- help: use the corresponding method
323
- |
324
- LL | for v in m.values_mut() {
325
- | ^ ^^^^^^^^^^^^^^
326
-
327
- error: you seem to want to iterate on a map's values
328
- --> $DIR/for_loop.rs:355:19
329
- |
330
- LL | for (_, v) in &mut *m {
331
- | ^^^^^^^
332
- help: use the corresponding method
333
- |
334
- LL | for v in (*m).values_mut() {
335
- | ^ ^^^^^^^^^^^^^^^^^
336
-
337
- error: you seem to want to iterate on a map's keys
338
- --> $DIR/for_loop.rs:361:24
339
- |
340
- LL | for (k, _value) in rm {
341
- | ^^
342
- help: use the corresponding method
343
- |
344
- LL | for k in rm.keys() {
345
- | ^ ^^^^^^^^^
346
-
347
295
error: it looks like you're manually copying between slices
348
- --> $DIR/for_loop.rs:414 :14
296
+ --> $DIR/for_loop.rs:372 :14
349
297
|
350
298
LL | for i in 0..src.len() {
351
299
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])`
352
300
|
353
301
= note: `-D clippy::manual-memcpy` implied by `-D warnings`
354
302
355
303
error: it looks like you're manually copying between slices
356
- --> $DIR/for_loop.rs:419 :14
304
+ --> $DIR/for_loop.rs:377 :14
357
305
|
358
306
LL | for i in 0..src.len() {
359
307
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[10..(src.len() + 10)].clone_from_slice(&src[..])`
360
308
361
309
error: it looks like you're manually copying between slices
362
- --> $DIR/for_loop.rs:424 :14
310
+ --> $DIR/for_loop.rs:382 :14
363
311
|
364
312
LL | for i in 0..src.len() {
365
313
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[10..])`
366
314
367
315
error: it looks like you're manually copying between slices
368
- --> $DIR/for_loop.rs:429 :14
316
+ --> $DIR/for_loop.rs:387 :14
369
317
|
370
318
LL | for i in 11..src.len() {
371
319
| ^^^^^^^^^^^^^ help: try replacing the loop by: `dst[11..src.len()].clone_from_slice(&src[(11 - 10)..(src.len() - 10)])`
372
320
373
321
error: it looks like you're manually copying between slices
374
- --> $DIR/for_loop.rs:434 :14
322
+ --> $DIR/for_loop.rs:392 :14
375
323
|
376
324
LL | for i in 0..dst.len() {
377
325
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst.clone_from_slice(&src[..dst.len()])`
378
326
379
327
error: it looks like you're manually copying between slices
380
- --> $DIR/for_loop.rs:447 :14
328
+ --> $DIR/for_loop.rs:405 :14
381
329
|
382
330
LL | for i in 10..256 {
383
331
| ^^^^^^^
@@ -388,34 +336,34 @@ LL | dst2[(10 + 500)..(256 + 500)].clone_from_slice(&src[10..256]) {
388
336
|
389
337
390
338
error: it looks like you're manually copying between slices
391
- --> $DIR/for_loop.rs:459 :14
339
+ --> $DIR/for_loop.rs:417 :14
392
340
|
393
341
LL | for i in 10..LOOP_OFFSET {
394
342
| ^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[(10 + LOOP_OFFSET)..(LOOP_OFFSET + LOOP_OFFSET)].clone_from_slice(&src[(10 - some_var)..(LOOP_OFFSET - some_var)])`
395
343
396
344
error: it looks like you're manually copying between slices
397
- --> $DIR/for_loop.rs:472 :14
345
+ --> $DIR/for_loop.rs:430 :14
398
346
|
399
347
LL | for i in 0..src_vec.len() {
400
348
| ^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst_vec[..src_vec.len()].clone_from_slice(&src_vec[..])`
401
349
402
350
error: it looks like you're manually copying between slices
403
- --> $DIR/for_loop.rs:501 :14
351
+ --> $DIR/for_loop.rs:459 :14
404
352
|
405
353
LL | for i in from..from + src.len() {
406
354
| ^^^^^^^^^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + src.len()].clone_from_slice(&src[0..(from + src.len() - from)])`
407
355
408
356
error: it looks like you're manually copying between slices
409
- --> $DIR/for_loop.rs:505 :14
357
+ --> $DIR/for_loop.rs:463 :14
410
358
|
411
359
LL | for i in from..from + 3 {
412
360
| ^^^^^^^^^^^^^^ help: try replacing the loop by: `dst[from..from + 3].clone_from_slice(&src[0..(from + 3 - from)])`
413
361
414
362
error: it looks like you're manually copying between slices
415
- --> $DIR/for_loop.rs:512 :14
363
+ --> $DIR/for_loop.rs:470 :14
416
364
|
417
365
LL | for i in 0..src.len() {
418
366
| ^^^^^^^^^^^^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[..])`
419
367
420
- error: aborting due to 51 previous errors
368
+ error: aborting due to 46 previous errors
421
369
0 commit comments