@@ -10,7 +10,7 @@ LL | #![deny(non_exhaustive_omitted_patterns)]
10
10
= note: `#[warn(unknown_lints)]` on by default
11
11
12
12
warning: unknown lint: `non_exhaustive_omitted_patterns`
13
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:7 :1
13
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:5 :1
14
14
|
15
15
LL | #![allow(non_exhaustive_omitted_patterns)]
16
16
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -20,7 +20,7 @@ LL | #![allow(non_exhaustive_omitted_patterns)]
20
20
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
21
21
22
22
warning: unknown lint: `non_exhaustive_omitted_patterns`
23
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:19 :5
23
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15 :5
24
24
|
25
25
LL | #[allow(non_exhaustive_omitted_patterns)]
26
26
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -30,7 +30,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
30
30
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
31
31
32
32
warning: unknown lint: `non_exhaustive_omitted_patterns`
33
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:19 :5
33
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15 :5
34
34
|
35
35
LL | #[allow(non_exhaustive_omitted_patterns)]
36
36
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -41,7 +41,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
41
41
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
42
42
43
43
warning: unknown lint: `non_exhaustive_omitted_patterns`
44
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:31 :5
44
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:24 :5
45
45
|
46
46
LL | #[warn(non_exhaustive_omitted_patterns)]
47
47
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -51,73 +51,7 @@ LL | #[warn(non_exhaustive_omitted_patterns)]
51
51
= help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
52
52
53
53
warning: unknown lint: `non_exhaustive_omitted_patterns`
54
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:31:5
55
- |
56
- LL | #[warn(non_exhaustive_omitted_patterns)]
57
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
- |
59
- = note: the `non_exhaustive_omitted_patterns` lint is unstable
60
- = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
61
- = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
62
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
63
-
64
- warning: unknown lint: `non_exhaustive_omitted_patterns`
65
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
66
- |
67
- LL | #![deny(non_exhaustive_omitted_patterns)]
68
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69
- |
70
- = note: the `non_exhaustive_omitted_patterns` lint is unstable
71
- = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
72
- = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
73
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
74
-
75
- warning: unknown lint: `non_exhaustive_omitted_patterns`
76
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:7:1
77
- |
78
- LL | #![allow(non_exhaustive_omitted_patterns)]
79
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
- |
81
- = note: the `non_exhaustive_omitted_patterns` lint is unstable
82
- = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
83
- = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
84
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
85
-
86
- warning: unknown lint: `non_exhaustive_omitted_patterns`
87
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:19:5
88
- |
89
- LL | #[allow(non_exhaustive_omitted_patterns)]
90
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91
- |
92
- = note: the `non_exhaustive_omitted_patterns` lint is unstable
93
- = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
94
- = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
95
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
96
-
97
- warning: unknown lint: `non_exhaustive_omitted_patterns`
98
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:19:5
99
- |
100
- LL | #[allow(non_exhaustive_omitted_patterns)]
101
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102
- |
103
- = note: the `non_exhaustive_omitted_patterns` lint is unstable
104
- = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
105
- = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
106
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
107
-
108
- warning: unknown lint: `non_exhaustive_omitted_patterns`
109
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:31:5
110
- |
111
- LL | #[warn(non_exhaustive_omitted_patterns)]
112
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
- |
114
- = note: the `non_exhaustive_omitted_patterns` lint is unstable
115
- = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
116
- = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
117
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
118
-
119
- warning: unknown lint: `non_exhaustive_omitted_patterns`
120
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:31:5
54
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:24:5
121
55
|
122
56
LL | #[warn(non_exhaustive_omitted_patterns)]
123
57
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -128,13 +62,13 @@ LL | #[warn(non_exhaustive_omitted_patterns)]
128
62
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
129
63
130
64
error[E0004]: non-exhaustive patterns: `Foo::C` not covered
131
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:25 :11
65
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:18 :11
132
66
|
133
67
LL | match Foo::A {
134
68
| ^^^^^^ pattern `Foo::C` not covered
135
69
|
136
70
note: `Foo` defined here
137
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:13 :10
71
+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:9 :10
138
72
|
139
73
LL | enum Foo {
140
74
| ^^^
@@ -148,50 +82,6 @@ LL ~ Foo::B => {},
148
82
LL + Foo::C => todo!()
149
83
|
150
84
151
- warning: unknown lint: `non_exhaustive_omitted_patterns`
152
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
153
- |
154
- LL | #![deny(non_exhaustive_omitted_patterns)]
155
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
156
- |
157
- = note: the `non_exhaustive_omitted_patterns` lint is unstable
158
- = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
159
- = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
160
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
161
-
162
- warning: unknown lint: `non_exhaustive_omitted_patterns`
163
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:7:1
164
- |
165
- LL | #![allow(non_exhaustive_omitted_patterns)]
166
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
167
- |
168
- = note: the `non_exhaustive_omitted_patterns` lint is unstable
169
- = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
170
- = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
171
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
172
-
173
- warning: unknown lint: `non_exhaustive_omitted_patterns`
174
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:19:5
175
- |
176
- LL | #[allow(non_exhaustive_omitted_patterns)]
177
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178
- |
179
- = note: the `non_exhaustive_omitted_patterns` lint is unstable
180
- = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
181
- = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
182
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
183
-
184
- warning: unknown lint: `non_exhaustive_omitted_patterns`
185
- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:31:5
186
- |
187
- LL | #[warn(non_exhaustive_omitted_patterns)]
188
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
189
- |
190
- = note: the `non_exhaustive_omitted_patterns` lint is unstable
191
- = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
192
- = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
193
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
194
-
195
- error: aborting due to 1 previous error; 16 warnings emitted
85
+ error: aborting due to 1 previous error; 6 warnings emitted
196
86
197
87
For more information about this error, try `rustc --explain E0004`.
0 commit comments