Skip to content

Commit dafda36

Browse files
RickyRicky
Ricky
authored and
Ricky
committed
Update the stderr message in ui tests
1 parent 75482f9 commit dafda36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ui/map_err.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
error: `map_err(|_|...` ignores the original error
1+
error: `map_err(|_|...` wildcard pattern discards the original error"
22
--> $DIR/map_err.rs:23:32
33
|
44
LL | println!("{:?}", x.map_err(|_| Errors::Ignored));
55
| ^^^
66
|
77
= note: `-D clippy::map-err-ignore` implied by `-D warnings`
8-
= help: Consider wrapping the error in an enum variant for more error context, or using a named wildcard (`.map_err(|_ignored| ...`) to intentionally ignore the error
8+
= help: Consider storing the original error as a source in the new error, or silence this warning using an ignored identifier (`.map_err(|_foo| ...`)
99

1010
error: aborting due to previous error
1111

0 commit comments

Comments
 (0)