1
- error: `Err(_)` will match all errors, maybe not a good idea
1
+ error: `Err(_)` matches all errors
2
2
--> $DIR/matches.rs:14:9
3
3
|
4
4
LL | Err(_) => panic!("err"),
5
5
| ^^^^^^
6
6
|
7
7
= note: `-D clippy::match-wild-err-arm` implied by `-D warnings`
8
- = note: to remove this warning, match each error separately or use `unreachable!` macro
8
+ = note: match each error separately or use the error output
9
9
10
10
error: this `match` has identical arm bodies
11
11
--> $DIR/matches.rs:13:18
@@ -26,13 +26,13 @@ LL | Ok(3) => println!("ok"),
26
26
| ^^^^^
27
27
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
28
28
29
- error: `Err(_)` will match all errors, maybe not a good idea
29
+ error: `Err(_)` matches all errors
30
30
--> $DIR/matches.rs:20:9
31
31
|
32
32
LL | Err(_) => panic!(),
33
33
| ^^^^^^
34
34
|
35
- = note: to remove this warning, match each error separately or use `unreachable!` macro
35
+ = note: match each error separately or use the error output
36
36
37
37
error: this `match` has identical arm bodies
38
38
--> $DIR/matches.rs:19:18
@@ -52,13 +52,13 @@ LL | Ok(3) => println!("ok"),
52
52
| ^^^^^
53
53
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
54
54
55
- error: `Err(_)` will match all errors, maybe not a good idea
55
+ error: `Err(_)` matches all errors
56
56
--> $DIR/matches.rs:26:9
57
57
|
58
58
LL | Err(_) => {
59
59
| ^^^^^^
60
60
|
61
- = note: to remove this warning, match each error separately or use `unreachable!` macro
61
+ = note: match each error separately or use the error output
62
62
63
63
error: this `match` has identical arm bodies
64
64
--> $DIR/matches.rs:25:18
@@ -78,13 +78,13 @@ LL | Ok(3) => println!("ok"),
78
78
| ^^^^^
79
79
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
80
80
81
- error: `Err(_e)` will match all errors, maybe not a good idea
81
+ error: `Err(_e)` matches all errors
82
82
--> $DIR/matches.rs:34:9
83
83
|
84
84
LL | Err(_e) => panic!(),
85
85
| ^^^^^^^
86
86
|
87
- = note: to remove this warning, match each error separately or use `unreachable!` macro
87
+ = note: match each error separately or use the error output
88
88
89
89
error: this `match` has identical arm bodies
90
90
--> $DIR/matches.rs:33:18
0 commit comments