Skip to content

Commit

Permalink
Update UI test output
Browse files Browse the repository at this point in the history
  • Loading branch information
phansch committed Dec 28, 2018
1 parent 0b09d35 commit 0a999af
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/ui/collect.stderr
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
error: you are creating a collection of `Result`s
--> $DIR/collect.rs:6:21
|
6 | let option_vec: Vec<_> = b.iter()
| ^^^^^^
|
= note: `-D clippy::possible-shortcircuiting-collect` implied by `-D warnings`
--> $DIR/collect.rs:16:21
|
LL | let option_vec: Vec<_> = b.iter()
| ^^^^^^
|
= note: `-D clippy::possible-shortcircuiting-collect` implied by `-D warnings`
help: if you are only interested in the case where all values are `Ok`, try
|
6 | let option_vec: Result<std::vec::Vec<_>, _> = b.iter()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
LL | let option_vec: Result<std::vec::Vec<_>, _> = b.iter()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: you are creating a collection of `Option`s
--> $DIR/collect.rs:23:18
--> $DIR/collect.rs:33:18
|
23 | let _result: Vec<_> = a.iter().map(Some).collect();
LL | let _result: Vec<_> = a.iter().map(Some).collect();
| ^^^^^^
help: if you are only interested in the case where all values are `Some`, try
|
23 | let _result: Option<std::vec::Vec<_>> = a.iter().map(Some).collect();
LL | let _result: Option<std::vec::Vec<_>> = a.iter().map(Some).collect();
| ^^^^^^^^^^^^^^^^^^^^^^^^

error: you are creating a collection of `Option`s
--> $DIR/collect.rs:27:34
--> $DIR/collect.rs:37:34
|
27 | Some(Some(elem)).into_iter().collect()
LL | Some(Some(elem)).into_iter().collect()
| ^^^^^^^^^
help: if you are only interested in the case where all values are `Some`, try
|
27 | Some(Some(elem)).into_iter().collect::<Option<C>>()
LL | Some(Some(elem)).into_iter().collect::<Option<C>>()
| ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 3 previous errors
Expand Down

0 comments on commit 0a999af

Please sign in to comment.