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
+61
Original file line number
Diff line number
Diff line change
@@ -303,3 +303,64 @@ mir_build_multiple_mut_borrows = cannot borrow value as mutable more than once a
303
303
.mutable_borrow = another mutable borrow, by `{$name_mut}`, occurs here
304
304
.immutable_borrow = also borrowed as immutable, by `{$name_immut}`, here
305
305
.moved = also moved into `{$name_moved}` here
306
+
307
+
mir_build_union_pattern = cannot use unions in constant patterns
308
+
309
+
mir_build_type_not_structural =
310
+
to use a constant of type `{$non_sm_ty}` in a pattern, `{$non_sm_ty}` must be annotated with `#[derive(PartialEq, Eq)]`
311
+
312
+
mir_build_unsized_pattern = cannot use unsized non-slice type `{$non_sm_ty}` in constant patterns
313
+
314
+
mir_build_invalid_pattern = `{$non_sm_ty}` cannot be used in patterns
315
+
316
+
mir_build_float_pattern = floating-point types cannot be used in patterns
317
+
318
+
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.
319
+
320
+
mir_build_indirect_structural_match =
321
+
to use a constant of type `{$non_sm_ty}` in a pattern, `{$non_sm_ty}` must be annotated with `#[derive(PartialEq, Eq)]`
322
+
323
+
mir_build_nontrivial_structural_match =
324
+
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)]`
325
+
326
+
mir_build_overlapping_range_endpoints = multiple patterns overlap on their endpoints
327
+
.range = ... with this range
328
+
.note = you likely meant to write mutually exclusive ranges
329
+
330
+
mir_build_non_exhaustive_omitted_pattern = some variants are not matched explicitly
331
+
.help = ensure that all variants are matched explicitly by adding the suggested match arms
332
+
.note = the matched value is of type `{$scrut_ty}` and the `non_exhaustive_omitted_patterns` attribute was found
333
+
334
+
mir_build_uncovered = {$count->
335
+
[1] pattern `{$witness_1}`
336
+
[2] patterns `{$witness_1}` and `{$witness_2}`
337
+
[3] patterns `{$witness_1}`, `{$witness_2}` and `{$witness_3}`
338
+
*[other] patterns `{$witness_1}`, `{$witness_2}`, `{$witness_3}` and {$remainder} more
339
+
} not covered
340
+
341
+
mir_build_pattern_not_covered = refutable pattern in {$origin}
342
+
.pattern_ty = the matched value is of type `{$pattern_ty}`
343
+
344
+
mir_build_inform_irrefutable = `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant
345
+
346
+
mir_build_more_information = for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html
347
+
348
+
mir_build_res_defined_here = {$res} defined here
349
+
350
+
mir_build_adt_defined_here = `{$ty}` defined here
351
+
352
+
mir_build_variant_defined_here = not covered
353
+
354
+
mir_build_interpreted_as_const = introduce a variable instead
355
+
356
+
mir_build_confused = missing patterns are not covered because `{$variable}` is interpreted as {$article}{$res} pattern, not a new variable
357
+
358
+
mir_build_suggest_if_let = you might want to use `if let` to ignore the {$count->
359
+
[one] variant that isn't
360
+
*[other] variants that aren't
361
+
} matched
362
+
363
+
mir_build_suggest_let_else = you might want to use `let else` to handle the {$count->
0 commit comments