1 warning: some fields are not explicitly listed
2 --> $DIR/omitted-patterns.rs:102:9
4 LL | VariantNonExhaustive::Bar { x, .. } => {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `y` not listed
7 note: the lint level is defined here
8 --> $DIR/omitted-patterns.rs:99:12
10 LL | #[warn(non_exhaustive_omitted_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
13 = note: the pattern is of type `VariantNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
15 warning: some fields are not explicitly listed
16 --> $DIR/omitted-patterns.rs:107:9
18 LL | let FunctionalRecord { first_field, second_field, .. } = FunctionalRecord::default();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `third_field` not listed
21 note: the lint level is defined here
22 --> $DIR/omitted-patterns.rs:106:12
24 LL | #[warn(non_exhaustive_omitted_patterns)]
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
27 = note: the pattern is of type `FunctionalRecord` and the `non_exhaustive_omitted_patterns` attribute was found
29 warning: some fields are not explicitly listed
30 --> $DIR/omitted-patterns.rs:115:29
32 LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = NestedStruct::default();
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `second_field` not listed
35 note: the lint level is defined here
36 --> $DIR/omitted-patterns.rs:114:12
38 LL | #[warn(non_exhaustive_omitted_patterns)]
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
41 = note: the pattern is of type `NormalStruct` and the `non_exhaustive_omitted_patterns` attribute was found
43 warning: some fields are not explicitly listed
44 --> $DIR/omitted-patterns.rs:115:9
46 LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = NestedStruct::default();
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `foo` not listed
49 = help: ensure that all fields are mentioned explicitly by adding the suggested fields
50 = note: the pattern is of type `NestedStruct` and the `non_exhaustive_omitted_patterns` attribute was found
52 error: some variants are not matched explicitly
53 --> $DIR/omitted-patterns.rs:58:9
56 | ^ pattern `Struct { .. }` not covered
58 note: the lint level is defined here
59 --> $DIR/omitted-patterns.rs:57:16
61 LL | #[deny(non_exhaustive_omitted_patterns)]
62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 = help: ensure that all variants are matched explicitly by adding the suggested match arms
64 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
66 error: some variants are not matched explicitly
67 --> $DIR/omitted-patterns.rs:65:9
70 | ^ pattern `Tuple(_)` not covered
72 note: the lint level is defined here
73 --> $DIR/omitted-patterns.rs:64:16
75 LL | #[deny(non_exhaustive_omitted_patterns)]
76 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77 = help: ensure that all variants are matched explicitly by adding the suggested match arms
78 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
80 error: some variants are not matched explicitly
81 --> $DIR/omitted-patterns.rs:75:9
84 | ^ pattern `Unit` not covered
86 note: the lint level is defined here
87 --> $DIR/omitted-patterns.rs:74:16
89 LL | #[deny(non_exhaustive_omitted_patterns)]
90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91 = help: ensure that all variants are matched explicitly by adding the suggested match arms
92 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
94 error: some variants are not matched explicitly
95 --> $DIR/omitted-patterns.rs:92:32
97 LL | NestedNonExhaustive::A(_) => {}
98 | ^ patterns `Tuple(_)` and `Struct { .. }` not covered
100 note: the lint level is defined here
101 --> $DIR/omitted-patterns.rs:89:12
103 LL | #[deny(non_exhaustive_omitted_patterns)]
104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105 = help: ensure that all variants are matched explicitly by adding the suggested match arms
106 = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
108 error: some variants are not matched explicitly
109 --> $DIR/omitted-patterns.rs:94:9
112 | ^ pattern `C` not covered
114 = help: ensure that all variants are matched explicitly by adding the suggested match arms
115 = note: the matched value is of type `NestedNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
117 error: some variants are not matched explicitly
118 --> $DIR/omitted-patterns.rs:132:9
121 | ^ pattern `A(_)` not covered
123 note: the lint level is defined here
124 --> $DIR/omitted-patterns.rs:130:12
126 LL | #[deny(non_exhaustive_omitted_patterns)]
127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128 = help: ensure that all variants are matched explicitly by adding the suggested match arms
129 = note: the matched value is of type `NonExhaustiveSingleVariant` and the `non_exhaustive_omitted_patterns` attribute was found
131 error: some variants are not matched explicitly
132 --> $DIR/omitted-patterns.rs:144:9
135 | ^ pattern `Unstable` not covered
137 note: the lint level is defined here
138 --> $DIR/omitted-patterns.rs:143:16
140 LL | #[deny(non_exhaustive_omitted_patterns)]
141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142 = help: ensure that all variants are matched explicitly by adding the suggested match arms
143 = note: the matched value is of type `UnstableEnum` and the `non_exhaustive_omitted_patterns` attribute was found
145 error: some variants are not matched explicitly
146 --> $DIR/omitted-patterns.rs:167:9
149 | ^ pattern `Unstable2` not covered
151 note: the lint level is defined here
152 --> $DIR/omitted-patterns.rs:164:12
154 LL | #[deny(non_exhaustive_omitted_patterns)]
155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
156 = help: ensure that all variants are matched explicitly by adding the suggested match arms
157 = note: the matched value is of type `OnlyUnstableEnum` and the `non_exhaustive_omitted_patterns` attribute was found
159 error: aborting due to 8 previous errors; 4 warnings emitted