@@ -50,29 +50,29 @@ LL | let NestedStruct { bar: NormalStruct { first_field, .. }, .. } = Nested
50
50
= note: the pattern is of type `NestedStruct` and the `non_exhaustive_omitted_patterns` attribute was found
51
51
52
52
warning: some fields are not explicitly listed
53
- --> $DIR/omitted-patterns.rs:173 :9
53
+ --> $DIR/omitted-patterns.rs:184 :9
54
54
|
55
55
LL | let OnlyUnstableStruct { unstable, .. } = OnlyUnstableStruct::new();
56
56
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `unstable2` not listed
57
57
|
58
58
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
59
59
= note: the pattern is of type `OnlyUnstableStruct` and the `non_exhaustive_omitted_patterns` attribute was found
60
60
note: the lint level is defined here
61
- --> $DIR/omitted-patterns.rs:172 :12
61
+ --> $DIR/omitted-patterns.rs:183 :12
62
62
|
63
63
LL | #[warn(non_exhaustive_omitted_patterns)]
64
64
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65
65
66
66
warning: some fields are not explicitly listed
67
- --> $DIR/omitted-patterns.rs:181 :9
67
+ --> $DIR/omitted-patterns.rs:192 :9
68
68
|
69
69
LL | let UnstableStruct { stable, stable2, .. } = UnstableStruct::default();
70
70
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ field `unstable` not listed
71
71
|
72
72
= help: ensure that all fields are mentioned explicitly by adding the suggested fields
73
73
= note: the pattern is of type `UnstableStruct` and the `non_exhaustive_omitted_patterns` attribute was found
74
74
note: the lint level is defined here
75
- --> $DIR/omitted-patterns.rs:180 :12
75
+ --> $DIR/omitted-patterns.rs:191 :12
76
76
|
77
77
LL | #[warn(non_exhaustive_omitted_patterns)]
78
78
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -143,49 +143,49 @@ LL | _ => {}
143
143
= note: the matched value is of type `NestedNonExhaustive` and the `non_exhaustive_omitted_patterns` attribute was found
144
144
145
145
error: some variants are not matched explicitly
146
- --> $DIR/omitted-patterns.rs:132 :9
146
+ --> $DIR/omitted-patterns.rs:133 :9
147
147
|
148
148
LL | _ => {}
149
149
| ^ pattern `NonExhaustiveSingleVariant::A(_)` not covered
150
150
|
151
151
= help: ensure that all variants are matched explicitly by adding the suggested match arms
152
152
= note: the matched value is of type `NonExhaustiveSingleVariant` and the `non_exhaustive_omitted_patterns` attribute was found
153
153
note: the lint level is defined here
154
- --> $DIR/omitted-patterns.rs:130 :12
154
+ --> $DIR/omitted-patterns.rs:131 :12
155
155
|
156
156
LL | #[deny(non_exhaustive_omitted_patterns)]
157
157
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158
158
159
159
error: some variants are not matched explicitly
160
- --> $DIR/omitted-patterns.rs:144 :9
160
+ --> $DIR/omitted-patterns.rs:155 :9
161
161
|
162
162
LL | _ => {}
163
163
| ^ pattern `UnstableEnum::Unstable` not covered
164
164
|
165
165
= help: ensure that all variants are matched explicitly by adding the suggested match arms
166
166
= note: the matched value is of type `UnstableEnum` and the `non_exhaustive_omitted_patterns` attribute was found
167
167
note: the lint level is defined here
168
- --> $DIR/omitted-patterns.rs:143 :16
168
+ --> $DIR/omitted-patterns.rs:154 :16
169
169
|
170
170
LL | #[deny(non_exhaustive_omitted_patterns)]
171
171
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172
172
173
173
error: some variants are not matched explicitly
174
- --> $DIR/omitted-patterns.rs:168 :9
174
+ --> $DIR/omitted-patterns.rs:179 :9
175
175
|
176
176
LL | _ => {}
177
177
| ^ pattern `OnlyUnstableEnum::Unstable2` not covered
178
178
|
179
179
= help: ensure that all variants are matched explicitly by adding the suggested match arms
180
180
= note: the matched value is of type `OnlyUnstableEnum` and the `non_exhaustive_omitted_patterns` attribute was found
181
181
note: the lint level is defined here
182
- --> $DIR/omitted-patterns.rs:165 :12
182
+ --> $DIR/omitted-patterns.rs:176 :12
183
183
|
184
184
LL | #[deny(non_exhaustive_omitted_patterns)]
185
185
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
186
186
187
187
error[E0005]: refutable pattern in local binding
188
- --> $DIR/omitted-patterns.rs:194 :9
188
+ --> $DIR/omitted-patterns.rs:205 :9
189
189
|
190
190
LL | let local_refutable @ NonExhaustiveEnum::Unit = NonExhaustiveEnum::Unit;
191
191
| ^^^^^^^^^^^^^^^ pattern `_` not covered
@@ -199,19 +199,33 @@ LL | let local_refutable @ NonExhaustiveEnum::Unit = NonExhaustiveEnum::Unit
199
199
| ++++++++++++++++
200
200
201
201
error: some variants are not matched explicitly
202
- --> $DIR/omitted-patterns.rs:202 :9
202
+ --> $DIR/omitted-patterns.rs:213 :9
203
203
|
204
204
LL | _ => {}
205
205
| ^ pattern `NonExhaustiveEnum::Struct { .. }` not covered
206
206
|
207
207
= help: ensure that all variants are matched explicitly by adding the suggested match arms
208
208
= note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
209
209
note: the lint level is defined here
210
- --> $DIR/omitted-patterns.rs:198 :12
210
+ --> $DIR/omitted-patterns.rs:209 :12
211
211
|
212
212
LL | #[deny(non_exhaustive_omitted_patterns)]
213
213
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
214
214
215
- error: aborting due to 10 previous errors; 6 warnings emitted
215
+ error: some variants are not matched explicitly
216
+ --> $DIR/omitted-patterns.rs:226:9
217
+ |
218
+ LL | _ => {}
219
+ | ^ patterns `NonExhaustiveEnum::Tuple(_)` and `NonExhaustiveEnum::Struct { .. }` not covered
220
+ |
221
+ = help: ensure that all variants are matched explicitly by adding the suggested match arms
222
+ = note: the matched value is of type `NonExhaustiveEnum` and the `non_exhaustive_omitted_patterns` attribute was found
223
+ note: the lint level is defined here
224
+ --> $DIR/omitted-patterns.rs:223:12
225
+ |
226
+ LL | #[deny(non_exhaustive_omitted_patterns)]
227
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
228
+
229
+ error: aborting due to 11 previous errors; 6 warnings emitted
216
230
217
231
For more information about this error, try `rustc --explain E0005`.
0 commit comments