Skip to content

Commit 4f69870

Browse files
committed
Update UI test .stderr files
1 parent 5b7c206 commit 4f69870

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

tests/ui/collect.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: you are creating a collection of `Result`s
22
--> $DIR/collect.rs:6:21
33
|
4-
6 | let option_vec: Vec<_> = b.into_iter()
4+
6 | let option_vec: Vec<_> = b.iter()
55
| ^^^^^^
66
|
7-
= note: `-D possible-shortcircuiting-collect` implied by `-D warnings`
7+
= note: `-D clippy::possible-shortcircuiting-collect` implied by `-D warnings`
88
help: if you are only interested in the case where all values are `Ok`, try
99
|
10-
6 | let option_vec: Result<std::vec::Vec<_>, _> = b.into_iter()
10+
6 | let option_vec: Result<std::vec::Vec<_>, _> = b.iter()
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

1313
error: you are creating a collection of `Option`s

tests/ui/filter_methods.stderr

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
error: called `filter(p).map(q)` on an `Iterator`. This is more succinctly expressed by calling `.filter_map(..)` instead.
2-
--> $DIR/filter_methods.rs:18:21
2+
--> $DIR/filter_methods.rs:14:21
33
|
4-
18 | let _: Vec<_> = vec![5; 6].into_iter()
4+
14 | let _: Vec<_> = vec![5; 6].into_iter()
55
| _____________________^
6-
19 | | .filter(|&x| x == 0)
7-
20 | | .map(|x| x * 2)
6+
15 | | .filter(|&x| x == 0)
7+
16 | | .map(|x| x * 2)
88
| |_____________________________________________^
99
|
1010
= note: `-D clippy::filter-map` implied by `-D warnings`
1111

1212
error: called `filter(p).flat_map(q)` on an `Iterator`. This is more succinctly expressed by calling `.flat_map(..)` and filtering by returning an empty Iterator.
13-
--> $DIR/filter_methods.rs:23:21
13+
--> $DIR/filter_methods.rs:19:21
1414
|
15-
23 | let _: Vec<_> = vec![5_i8; 6].into_iter()
15+
19 | let _: Vec<_> = vec![5_i8; 6].into_iter()
1616
| _____________________^
17-
24 | | .filter(|&x| x == 0)
18-
25 | | .flat_map(|x| x.checked_mul(2))
17+
20 | | .filter(|&x| x == 0)
18+
21 | | .flat_map(|x| x.checked_mul(2))
1919
| |_______________________________________________________________^
2020

2121
error: called `filter_map(p).flat_map(q)` on an `Iterator`. This is more succinctly expressed by calling `.flat_map(..)` and filtering by returning an empty Iterator.
22-
--> $DIR/filter_methods.rs:28:21
22+
--> $DIR/filter_methods.rs:24:21
2323
|
24-
28 | let _: Vec<_> = vec![5_i8; 6].into_iter()
24+
24 | let _: Vec<_> = vec![5_i8; 6].into_iter()
2525
| _____________________^
26-
29 | | .filter_map(|x| x.checked_mul(2))
27-
30 | | .flat_map(|x| x.checked_mul(2))
26+
25 | | .filter_map(|x| x.checked_mul(2))
27+
26 | | .flat_map(|x| x.checked_mul(2))
2828
| |_______________________________________________________________^
2929

3030
error: called `filter_map(p).map(q)` on an `Iterator`. This is more succinctly expressed by only calling `.filter_map(..)` instead.
31-
--> $DIR/filter_methods.rs:33:21
31+
--> $DIR/filter_methods.rs:29:21
3232
|
33-
33 | let _: Vec<_> = vec![5_i8; 6].into_iter()
33+
29 | let _: Vec<_> = vec![5_i8; 6].into_iter()
3434
| _____________________^
35-
34 | | .filter_map(|x| x.checked_mul(2))
36-
35 | | .map(|x| x.checked_mul(2))
35+
30 | | .filter_map(|x| x.checked_mul(2))
36+
31 | | .map(|x| x.checked_mul(2))
3737
| |__________________________________________________________^
3838

3939
error: aborting due to 4 previous errors

0 commit comments

Comments
 (0)