@@ -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:15 :5
23+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:17 :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:15 :5
33+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:17 :5
3434 |
3535LL | #[allow(non_exhaustive_omitted_patterns)]
3636 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -41,15 +41,26 @@ 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:29:9
44+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:28:5
4545 |
46- LL | #[warn(non_exhaustive_omitted_patterns)]
47- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46+ LL | #[warn(non_exhaustive_omitted_patterns)]
47+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4848 |
4949 = note: the `non_exhaustive_omitted_patterns` lint is unstable
5050 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
5151 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
5252
53+ warning: unknown lint: `non_exhaustive_omitted_patterns`
54+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:28: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+
5364warning: unknown lint: `non_exhaustive_omitted_patterns`
5465 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
5566 |
@@ -73,7 +84,7 @@ LL | #![allow(non_exhaustive_omitted_patterns)]
7384 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
7485
7586warning: unknown lint: `non_exhaustive_omitted_patterns`
76- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15 :5
87+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:17 :5
7788 |
7889LL | #[allow(non_exhaustive_omitted_patterns)]
7990 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -84,7 +95,7 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
8495 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
8596
8697warning: unknown lint: `non_exhaustive_omitted_patterns`
87- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15 :5
98+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:17 :5
8899 |
89100LL | #[allow(non_exhaustive_omitted_patterns)]
90101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -95,36 +106,48 @@ LL | #[allow(non_exhaustive_omitted_patterns)]
95106 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
96107
97108warning: unknown lint: `non_exhaustive_omitted_patterns`
98- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9
109+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:28: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:28:5
99121 |
100- LL | #[warn(non_exhaustive_omitted_patterns)]
101- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122+ LL | #[warn(non_exhaustive_omitted_patterns)]
123+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102124 |
103125 = note: the `non_exhaustive_omitted_patterns` lint is unstable
104126 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
105127 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
106128 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
107129
108130error[E0004]: non-exhaustive patterns: `Foo::C` not covered
109- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:20 :11
131+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:22 :11
110132 |
111133LL | match Foo::A {
112134 | ^^^^^^ pattern `Foo::C` not covered
113135 |
114136note: `Foo` defined here
115- --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:12:15
137+ --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:14:9
116138 |
117139LL | enum Foo {
118140 | ---
119- LL | A, B, C,
120- | ^ not covered
141+ ...
142+ LL | C,
143+ | ^ not covered
121144 = note: the matched value is of type `Foo`
122145help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
123146 |
124147LL ~ Foo::B => {},
125148LL + Foo::C => todo!()
126149 |
127150
128- error: aborting due to previous error; 10 warnings emitted
151+ error: aborting due to previous error; 12 warnings emitted
129152
130153For more information about this error, try `rustc --explain E0004`.
0 commit comments