fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: it is more concise to loop over references to containers instead of using explicit iteration methods 2 --> $DIR/explicit_iter_loop.rs:17:14 3 | 4LL | for _ in vec.iter() {} 5 | ^^^^^^^^^^ help: to write this more concisely, try: `&vec` 6 | 7note: the lint level is defined here 8 --> $DIR/explicit_iter_loop.rs:1:9 9 | 10LL | #![deny(clippy::explicit_iter_loop)] 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 13error: it is more concise to loop over references to containers instead of using explicit iteration methods 14 --> $DIR/explicit_iter_loop.rs:18:14 15 | 16LL | for _ in vec.iter_mut() {} 17 | ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut vec` 18 19error: it is more concise to loop over references to containers instead of using explicit iteration methods 20 --> $DIR/explicit_iter_loop.rs:21:14 21 | 22LL | for _ in rvec.iter() {} 23 | ^^^^^^^^^^^ help: to write this more concisely, try: `rvec` 24 25error: it is more concise to loop over references to containers instead of using explicit iteration methods 26 --> $DIR/explicit_iter_loop.rs:30:14 27 | 28LL | for _ in [1, 2, 3].iter() {} 29 | ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]` 30 31error: it is more concise to loop over references to containers instead of using explicit iteration methods 32 --> $DIR/explicit_iter_loop.rs:34:14 33 | 34LL | for _ in [0; 32].iter() {} 35 | ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]` 36 37error: it is more concise to loop over references to containers instead of using explicit iteration methods 38 --> $DIR/explicit_iter_loop.rs:35:14 39 | 40LL | for _ in [0; 33].iter() {} 41 | ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 33]` 42 43error: it is more concise to loop over references to containers instead of using explicit iteration methods 44 --> $DIR/explicit_iter_loop.rs:38:14 45 | 46LL | for _ in ll.iter() {} 47 | ^^^^^^^^^ help: to write this more concisely, try: `&ll` 48 49error: it is more concise to loop over references to containers instead of using explicit iteration methods 50 --> $DIR/explicit_iter_loop.rs:40:14 51 | 52LL | for _ in rll.iter() {} 53 | ^^^^^^^^^^ help: to write this more concisely, try: `rll` 54 55error: it is more concise to loop over references to containers instead of using explicit iteration methods 56 --> $DIR/explicit_iter_loop.rs:43:14 57 | 58LL | for _ in vd.iter() {} 59 | ^^^^^^^^^ help: to write this more concisely, try: `&vd` 60 61error: it is more concise to loop over references to containers instead of using explicit iteration methods 62 --> $DIR/explicit_iter_loop.rs:45:14 63 | 64LL | for _ in rvd.iter() {} 65 | ^^^^^^^^^^ help: to write this more concisely, try: `rvd` 66 67error: it is more concise to loop over references to containers instead of using explicit iteration methods 68 --> $DIR/explicit_iter_loop.rs:48:14 69 | 70LL | for _ in bh.iter() {} 71 | ^^^^^^^^^ help: to write this more concisely, try: `&bh` 72 73error: it is more concise to loop over references to containers instead of using explicit iteration methods 74 --> $DIR/explicit_iter_loop.rs:51:14 75 | 76LL | for _ in hm.iter() {} 77 | ^^^^^^^^^ help: to write this more concisely, try: `&hm` 78 79error: it is more concise to loop over references to containers instead of using explicit iteration methods 80 --> $DIR/explicit_iter_loop.rs:54:14 81 | 82LL | for _ in bt.iter() {} 83 | ^^^^^^^^^ help: to write this more concisely, try: `&bt` 84 85error: it is more concise to loop over references to containers instead of using explicit iteration methods 86 --> $DIR/explicit_iter_loop.rs:57:14 87 | 88LL | for _ in hs.iter() {} 89 | ^^^^^^^^^ help: to write this more concisely, try: `&hs` 90 91error: it is more concise to loop over references to containers instead of using explicit iteration methods 92 --> $DIR/explicit_iter_loop.rs:60:14 93 | 94LL | for _ in bs.iter() {} 95 | ^^^^^^^^^ help: to write this more concisely, try: `&bs` 96 97error: it is more concise to loop over references to containers instead of using explicit iteration methods 98 --> $DIR/explicit_iter_loop.rs:149:14 99 | 100LL | for _ in x.iter() {} 101 | ^^^^^^^^ help: to write this more concisely, try: `&x` 102 103error: it is more concise to loop over references to containers instead of using explicit iteration methods 104 --> $DIR/explicit_iter_loop.rs:150:14 105 | 106LL | for _ in x.iter_mut() {} 107 | ^^^^^^^^^^^^ help: to write this more concisely, try: `&mut x` 108 109error: it is more concise to loop over references to containers instead of using explicit iteration methods 110 --> $DIR/explicit_iter_loop.rs:153:14 111 | 112LL | for _ in r.iter() {} 113 | ^^^^^^^^ help: to write this more concisely, try: `r` 114 115error: aborting due to 18 previous errors 116