rust/tests/ui/for_loop_fixable.stderr

97 lines
4.1 KiB
Plaintext
Raw Normal View History

error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:38:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in vec.iter() {}
| ^^^^^^^^^^ help: to write this more concisely, try: `&vec`
2018-12-27 09:57:55 -06:00
|
= note: `-D clippy::explicit-iter-loop` implied by `-D warnings`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:40:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in vec.iter_mut() {}
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut vec`
2020-01-06 00:36:33 -06:00
error: it is more concise to loop over containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:43:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in out_vec.into_iter() {}
| ^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `out_vec`
2018-12-27 09:57:55 -06:00
|
= note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:48:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in [1, 2, 3].iter() {}
| ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:52:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in [0; 32].iter() {}
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:57:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in ll.iter() {}
| ^^^^^^^^^ help: to write this more concisely, try: `&ll`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:60:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in vd.iter() {}
| ^^^^^^^^^ help: to write this more concisely, try: `&vd`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:63:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in bh.iter() {}
| ^^^^^^^^^ help: to write this more concisely, try: `&bh`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:66:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in hm.iter() {}
| ^^^^^^^^^ help: to write this more concisely, try: `&hm`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:69:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in bt.iter() {}
| ^^^^^^^^^ help: to write this more concisely, try: `&bt`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:72:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in hs.iter() {}
| ^^^^^^^^^ help: to write this more concisely, try: `&hs`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:75:15
2018-12-27 09:57:55 -06:00
|
LL | for _v in bs.iter() {}
| ^^^^^^^^^ help: to write this more concisely, try: `&bs`
2020-01-06 00:36:33 -06:00
error: it is more concise to loop over containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:250:18
|
LL | for i in iterator.into_iter() {
| ^^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `iterator`
error: it is more concise to loop over references to containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:270:18
|
LL | for _ in t.into_iter() {}
| ^^^^^^^^^^^^^ help: to write this more concisely, try: `&t`
2020-01-06 00:36:33 -06:00
error: it is more concise to loop over containers instead of using explicit iteration methods
2021-09-27 17:19:33 -05:00
--> $DIR/for_loop_fixable.rs:272:18
|
LL | for _ in r.into_iter() {}
| ^^^^^^^^^^^^^ help: to write this more concisely, try: `r`
2020-05-10 17:53:31 -05:00
error: aborting due to 15 previous errors
2018-01-16 10:06:27 -06:00