You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_error_messages/locales/en-US/mir_build.ftl
+12-2
Original file line number
Diff line number
Diff line change
@@ -313,14 +313,24 @@ mir_build_float_pattern = floating-point types cannot be used in patterns
313
313
314
314
mir_build_pointer_pattern = function pointers and unsized pointers in patterns behave unpredictably and should not be relied upon. See https://github.com/rust-lang/rust/issues/70861 for details.
315
315
316
-
mir_build_indirect_structural_match =
316
+
mir_build_indirect_structural_match =
317
317
to use a constant of type `{$non_sm_ty}` in a pattern, `{$non_sm_ty}` must be annotated with `#[derive(PartialEq, Eq)]`
318
318
319
-
mir_build_nontrivial_structural_match =
319
+
mir_build_nontrivial_structural_match =
320
320
to use a constant of type `{$non_sm_ty}` in a pattern, the constant's initializer must be trivial or `{$non_sm_ty}` must be annotated with `#[derive(PartialEq, Eq)]`
321
321
322
322
mir_build_overlapping_range_endpoints = multiple patterns overlap on their endpoints
323
323
.range = ... with this range
324
324
.note = you likely meant to write mutually exclusive ranges
325
325
326
326
mir_build_overlapping_range = this range overlaps on `{$range}`...
327
+
328
+
mir_build_non_exhaustive_omitted_pattern = some variants are not matched explicitly
329
+
.label = {$count->
330
+
[1] pattern `{$witness_1}`
331
+
[2] patterns `{$witness_1}` and `{$witness_2}`
332
+
[3] patterns `{$witness_1}`, `{$witness_2}` and `{$witness_3}`
333
+
*[other] patterns `{$witness_1}`, `{$witness_2}`, `{$witness_3}` and more
334
+
} not covered
335
+
.help = ensure that all variants are matched explicitly by adding the suggested match arms
336
+
.note = the matched value is of type `{$scrut_ty}` and the `non_exhaustive_omitted_patterns` attribute was found
0 commit comments