]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | warning: unknown lint: `non_exhaustive_omitted_patterns` |
2 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1 | |
c295e0f8 XL |
3 | | |
4 | LL | #![deny(non_exhaustive_omitted_patterns)] | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
5e7ed085 | 7 | = note: the `non_exhaustive_omitted_patterns` lint is unstable |
c295e0f8 XL |
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 | |
2b03887a | 10 | = note: `#[warn(unknown_lints)]` on by default |
c295e0f8 | 11 | |
5e7ed085 FG |
12 | warning: unknown lint: `non_exhaustive_omitted_patterns` |
13 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6:1 | |
c295e0f8 XL |
14 | | |
15 | LL | #![allow(non_exhaustive_omitted_patterns)] | |
16 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
17 | | | |
5e7ed085 | 18 | = note: the `non_exhaustive_omitted_patterns` lint is unstable |
c295e0f8 XL |
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 | |
21 | ||
5e7ed085 FG |
22 | warning: unknown lint: `non_exhaustive_omitted_patterns` |
23 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5 | |
c295e0f8 XL |
24 | | |
25 | LL | #[allow(non_exhaustive_omitted_patterns)] | |
26 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
27 | | | |
5e7ed085 | 28 | = note: the `non_exhaustive_omitted_patterns` lint is unstable |
c295e0f8 XL |
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 | |
31 | ||
5e7ed085 FG |
32 | warning: unknown lint: `non_exhaustive_omitted_patterns` |
33 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5 | |
c295e0f8 XL |
34 | | |
35 | LL | #[allow(non_exhaustive_omitted_patterns)] | |
36 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
37 | | | |
5e7ed085 | 38 | = note: the `non_exhaustive_omitted_patterns` lint is unstable |
c295e0f8 XL |
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 | |
41 | ||
5e7ed085 FG |
42 | warning: unknown lint: `non_exhaustive_omitted_patterns` |
43 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9 | |
c295e0f8 XL |
44 | | |
45 | LL | #[warn(non_exhaustive_omitted_patterns)] | |
46 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
47 | | | |
5e7ed085 | 48 | = note: the `non_exhaustive_omitted_patterns` lint is unstable |
c295e0f8 XL |
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 | |
51 | ||
5e7ed085 FG |
52 | warning: unknown lint: `non_exhaustive_omitted_patterns` |
53 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1 | |
c295e0f8 XL |
54 | | |
55 | LL | #![deny(non_exhaustive_omitted_patterns)] | |
56 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
57 | | | |
5e7ed085 | 58 | = note: the `non_exhaustive_omitted_patterns` lint is unstable |
c295e0f8 XL |
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 | |
61 | ||
5e7ed085 FG |
62 | warning: unknown lint: `non_exhaustive_omitted_patterns` |
63 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6:1 | |
c295e0f8 XL |
64 | | |
65 | LL | #![allow(non_exhaustive_omitted_patterns)] | |
66 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
67 | | | |
5e7ed085 | 68 | = note: the `non_exhaustive_omitted_patterns` lint is unstable |
c295e0f8 XL |
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 | |
71 | ||
5e7ed085 FG |
72 | warning: unknown lint: `non_exhaustive_omitted_patterns` |
73 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5 | |
c295e0f8 XL |
74 | | |
75 | LL | #[allow(non_exhaustive_omitted_patterns)] | |
76 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
77 | | | |
5e7ed085 | 78 | = note: the `non_exhaustive_omitted_patterns` lint is unstable |
c295e0f8 XL |
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 | |
81 | ||
5e7ed085 FG |
82 | warning: unknown lint: `non_exhaustive_omitted_patterns` |
83 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5 | |
c295e0f8 XL |
84 | | |
85 | LL | #[allow(non_exhaustive_omitted_patterns)] | |
86 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
87 | | | |
5e7ed085 | 88 | = note: the `non_exhaustive_omitted_patterns` lint is unstable |
c295e0f8 XL |
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 | |
91 | ||
5e7ed085 FG |
92 | warning: unknown lint: `non_exhaustive_omitted_patterns` |
93 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9 | |
c295e0f8 XL |
94 | | |
95 | LL | #[warn(non_exhaustive_omitted_patterns)] | |
96 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
97 | | | |
5e7ed085 | 98 | = note: the `non_exhaustive_omitted_patterns` lint is unstable |
c295e0f8 XL |
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 | |
101 | ||
f2b60f7d | 102 | error[E0004]: non-exhaustive patterns: `Foo::C` not covered |
5e7ed085 FG |
103 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:20:11 |
104 | | | |
105 | LL | match Foo::A { | |
f2b60f7d | 106 | | ^^^^^^ pattern `Foo::C` not covered |
5e7ed085 FG |
107 | | |
108 | note: `Foo` defined here | |
109 | --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:12:15 | |
110 | | | |
111 | LL | enum Foo { | |
112 | | --- | |
113 | LL | A, B, C, | |
114 | | ^ not covered | |
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 | |
117 | | | |
118 | LL ~ Foo::B => {} | |
f2b60f7d | 119 | LL + Foo::C => todo!() |
5e7ed085 FG |
120 | | |
121 | ||
122 | error: aborting due to previous error; 10 warnings emitted | |
c295e0f8 | 123 | |
5e7ed085 | 124 | For more information about this error, try `rustc --explain E0004`. |