1
1
warning: found iterator that can be parallelized
2
- --> $DIR/main.rs:47 :5
2
+ --> $DIR/main.rs:64 :5
3
3
|
4
4
LL | (0..100).into_iter().for_each(|x| println!("{:?}", x));
5
5
| ^^^^^^^^^^^^^^^^^^^^ help: try using a parallel iterator: `(0..100).into_par_iter()`
6
6
|
7
7
= note: `#[warn(par_iter)]` on by default
8
8
9
9
warning: found iterator that can be parallelized
10
- --> $DIR/main.rs:71 :5
10
+ --> $DIR/main.rs:88 :5
11
11
|
12
12
LL | / (0..100)
13
13
LL | | .into_iter()
@@ -20,37 +20,37 @@ LL + .into_par_iter()
20
20
|
21
21
22
22
warning: found iterator that can be parallelized
23
- --> $DIR/main.rs:106 :5
23
+ --> $DIR/main.rs:123 :5
24
24
|
25
25
LL | list.into_iter().for_each(|x| println!("{:?}", x));
26
26
| ^^^^^^^^^^^^^^^^ help: try using a parallel iterator: `list.into_par_iter()`
27
27
28
28
warning: found iterator that can be parallelized
29
- --> $DIR/main.rs:122 :5
29
+ --> $DIR/main.rs:139 :5
30
30
|
31
31
LL | (0..10).into_iter().for_each(|x| {
32
32
| ^^^^^^^^^^^^^^^^^^^ help: try using a parallel iterator: `(0..10).into_par_iter()`
33
33
34
34
warning: found iterator that can be parallelized
35
- --> $DIR/main.rs:205 :5
35
+ --> $DIR/main.rs:222 :5
36
36
|
37
37
LL | data.iter()
38
38
| ^^^^^^^^^^^ help: try using a parallel iterator: `data.par_iter()`
39
39
40
40
warning: found iterator that can be parallelized
41
- --> $DIR/main.rs:232 :5
41
+ --> $DIR/main.rs:249 :5
42
42
|
43
43
LL | numbers.iter().enumerate().for_each(|t| {
44
44
| ^^^^^^^^^^^^^^ help: try using a parallel iterator: `numbers.par_iter()`
45
45
46
46
warning: found iterator that can be parallelized
47
- --> $DIR/main.rs:328 :30
47
+ --> $DIR/main.rs:345 :30
48
48
|
49
49
LL | let names: Vec<String> = people.iter().map(|p| p.name.clone()).collect();
50
50
| ^^^^^^^^^^^^^ help: try using a parallel iterator: `people.par_iter()`
51
51
52
52
warning: found iterator that can be parallelized
53
- --> $DIR/main.rs:384 :19
53
+ --> $DIR/main.rs:401 :19
54
54
|
55
55
LL | let buf = bufs
56
56
| ___________________^
@@ -63,5 +63,31 @@ LL ~ let buf = bufs
63
63
LL + .par_iter()
64
64
|
65
65
66
- warning: 8 warnings emitted
66
+ warning: found iterator that can be parallelized
67
+ --> $DIR/main.rs:417:29
68
+ |
69
+ LL | let required: Vec<Id> = used_filtered
70
+ | _____________________________^
71
+ LL | | .iter()
72
+ | |_______________^
73
+ |
74
+ help: try using a parallel iterator
75
+ |
76
+ LL ~ let required: Vec<Id> = used_filtered
77
+ LL + .par_iter()
78
+ |
79
+
80
+ warning: found iterator that can be parallelized
81
+ --> $DIR/main.rs:420:25
82
+ |
83
+ LL | .flat_map(|arg| arg.requires.iter().map(|item| &item.1))
84
+ | ^^^^^^^^^^^^^^^^^^^ help: try using a parallel iterator: `arg.requires.par_iter()`
85
+
86
+ warning: found iterator that can be parallelized
87
+ --> $DIR/main.rs:422:16
88
+ |
89
+ LL | .chain(used_filtered.iter())
90
+ | ^^^^^^^^^^^^^^^^^^^^ help: try using a parallel iterator: `used_filtered.par_iter()`
91
+
92
+ warning: 11 warnings emitted
67
93
0 commit comments