@@ -26,44 +26,50 @@ note: the lint level is defined here
26
26
LL | #[cfg_attr(lint, deny(non_exhaustive_omitted_patterns))]
27
27
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
28
29
- error : the `non_exhaustive_omitted_pattern` lint level must be set on the whole match
29
+ warning : the lint level must be set on the whole match
30
30
--> $DIR/omitted-patterns-dont-lint-on-arm.rs:34:9
31
31
|
32
+ LL | #[deny(non_exhaustive_omitted_patterns)]
33
+ | ------------------------------- remove this attribute
32
34
LL | _ => {}
33
35
| ^
34
36
|
35
- = help: it used to make sense to set the lint level on an individual match arm, but that is no longer the case
36
- note: the lint level is defined here
37
- --> $DIR/omitted-patterns-dont-lint-on-arm.rs:33:16
37
+ = help: it no longer has any effect to set the lint level on an individual match arm
38
+ help: set the lint level on the whole match
39
+ |
40
+ LL + #[deny(non_exhaustive_omitted_patterns)]
41
+ LL | match val {
38
42
|
39
- LL | #[deny(non_exhaustive_omitted_patterns)]
40
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41
43
42
- error : the `non_exhaustive_omitted_pattern` lint level must be set on the whole match
43
- --> $DIR/omitted-patterns-dont-lint-on-arm.rs:41 :9
44
+ warning : the lint level must be set on the whole match
45
+ --> $DIR/omitted-patterns-dont-lint-on-arm.rs:42 :9
44
46
|
47
+ LL | #[cfg_attr(lint, deny(non_exhaustive_omitted_patterns))]
48
+ | ------------------------------- remove this attribute
45
49
LL | _ => {}
46
50
| ^
47
51
|
48
- = help: it used to make sense to set the lint level on an individual match arm, but that is no longer the case
49
- note: the lint level is defined here
50
- --> $DIR/omitted-patterns-dont-lint-on-arm.rs:40:31
52
+ = help: it no longer has any effect to set the lint level on an individual match arm
53
+ help: set the lint level on the whole match
54
+ |
55
+ LL + #[deny(non_exhaustive_omitted_patterns)]
56
+ LL | match val {
51
57
|
52
- LL | #[cfg_attr(lint, deny(non_exhaustive_omitted_patterns))]
53
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54
58
55
- warning: the `non_exhaustive_omitted_pattern` lint level must be set on the whole match
56
- --> $DIR/omitted-patterns-dont-lint-on-arm.rs:48 :9
59
+ warning: the lint level must be set on the whole match
60
+ --> $DIR/omitted-patterns-dont-lint-on-arm.rs:50 :9
57
61
|
62
+ LL | #[cfg_attr(lint, warn(non_exhaustive_omitted_patterns))]
63
+ | ------------------------------- remove this attribute
58
64
LL | _ => {}
59
65
| ^
60
66
|
61
- = help: it used to make sense to set the lint level on an individual match arm, but that is no longer the case
62
- note: the lint level is defined here
63
- --> $DIR/omitted-patterns-dont-lint-on-arm.rs:47:31
67
+ = help: it no longer has any effect to set the lint level on an individual match arm
68
+ help: set the lint level on the whole match
69
+ |
70
+ LL + #[warn(non_exhaustive_omitted_patterns)]
71
+ LL | match val {
64
72
|
65
- LL | #[cfg_attr(lint, warn(non_exhaustive_omitted_patterns))]
66
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67
73
68
- error: aborting due to 4 previous errors; 1 warning emitted
74
+ error: aborting due to 2 previous errors; 3 warnings emitted
69
75
0 commit comments