1 warning: unknown lint: `non_exhaustive_omitted_patterns`
2 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
4 LL | #![deny(non_exhaustive_omitted_patterns)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: the `non_exhaustive_omitted_patterns` lint is unstable
8 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
9 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
10 = note: `#[warn(unknown_lints)]` on by default
12 warning: unknown lint: `non_exhaustive_omitted_patterns`
13 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6:1
15 LL | #![allow(non_exhaustive_omitted_patterns)]
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 = note: the `non_exhaustive_omitted_patterns` lint is unstable
19 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
20 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
22 warning: unknown lint: `non_exhaustive_omitted_patterns`
23 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
25 LL | #[allow(non_exhaustive_omitted_patterns)]
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 = note: the `non_exhaustive_omitted_patterns` lint is unstable
29 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
30 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
32 warning: unknown lint: `non_exhaustive_omitted_patterns`
33 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
35 LL | #[allow(non_exhaustive_omitted_patterns)]
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 = note: the `non_exhaustive_omitted_patterns` lint is unstable
39 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
40 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
42 warning: unknown lint: `non_exhaustive_omitted_patterns`
43 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9
45 LL | #[warn(non_exhaustive_omitted_patterns)]
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 = note: the `non_exhaustive_omitted_patterns` lint is unstable
49 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
50 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
52 warning: unknown lint: `non_exhaustive_omitted_patterns`
53 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
55 LL | #![deny(non_exhaustive_omitted_patterns)]
56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58 = note: the `non_exhaustive_omitted_patterns` lint is unstable
59 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
60 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
62 warning: unknown lint: `non_exhaustive_omitted_patterns`
63 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6:1
65 LL | #![allow(non_exhaustive_omitted_patterns)]
66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68 = note: the `non_exhaustive_omitted_patterns` lint is unstable
69 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
70 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
72 warning: unknown lint: `non_exhaustive_omitted_patterns`
73 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
75 LL | #[allow(non_exhaustive_omitted_patterns)]
76 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78 = note: the `non_exhaustive_omitted_patterns` lint is unstable
79 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
80 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
82 warning: unknown lint: `non_exhaustive_omitted_patterns`
83 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
85 LL | #[allow(non_exhaustive_omitted_patterns)]
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88 = note: the `non_exhaustive_omitted_patterns` lint is unstable
89 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
90 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
92 warning: unknown lint: `non_exhaustive_omitted_patterns`
93 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9
95 LL | #[warn(non_exhaustive_omitted_patterns)]
96 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98 = note: the `non_exhaustive_omitted_patterns` lint is unstable
99 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
100 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
102 error[E0004]: non-exhaustive patterns: `Foo::C` not covered
103 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:20:11
106 | ^^^^^^ pattern `Foo::C` not covered
108 note: `Foo` defined here
109 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:12:15
115 = note: the matched value is of type `Foo`
116 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
119 LL + Foo::C => todo!()
122 error: aborting due to previous error; 10 warnings emitted
124 For more information about this error, try `rustc --explain E0004`.