@@ -10,7 +10,7 @@ LL | #![deny(non_exhaustive_omitted_patterns)]
1010 = note: `#[warn(unknown_lints)]` on by default
1111
1212warning: 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
1414 |
1515LL | #![allow(non_exhaustive_omitted_patterns)]
1616 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -20,7 +20,7 @@ LL | #![allow(non_exhaustive_omitted_patterns)]
2020 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
2121
2222warning: 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
2424 |
2525LL | #[allow(non_exhaustive_omitted_patterns)]
2626 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -30,7 +30,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
3030 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
3131
3232warning: 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
3434 |
3535LL | #[allow(non_exhaustive_omitted_patterns)]
3636 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -41,7 +41,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
4141 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
4242
4343warning: 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
4545 |
4646LL | #[warn(non_exhaustive_omitted_patterns)]
4747 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -51,73 +51,7 @@ LL | #[warn(non_exhaustive_omitted_patterns)]
5151 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
5252
5353warning: 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
12155 |
12256LL | #[warn(non_exhaustive_omitted_patterns)]
12357 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -128,13 +62,13 @@ LL | #[warn(non_exhaustive_omitted_patterns)]
12862 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
12963
13064error[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
13266 |
13367LL | match Foo::A {
13468 | ^^^^^^ pattern `Foo::C` not covered
13569 |
13670note: `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
13872 |
13973LL | enum Foo {
14074 | ^^^
@@ -148,50 +82,6 @@ LL ~ Foo::B => {},
14882LL + Foo::C => todo!()
14983 |
15084
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
19686
19787For more information about this error, try `rustc --explain E0004`.
0 commit comments