1
Fork 0

Explain why a given pattern is considered unreachable

This commit is contained in:
Nadrieril 2024-07-21 14:46:05 +02:00
parent c4d6a4a7e4
commit 64ac2b8082
49 changed files with 1291 additions and 271 deletions

View file

@ -327,7 +327,10 @@ mir_build_union_pattern = cannot use unions in constant patterns
mir_build_unreachable_pattern = unreachable pattern
.label = unreachable pattern
.catchall_label = matches any value
.unreachable_matches_no_values = this pattern matches no values because `{$ty}` is uninhabited
.unreachable_covered_by_catchall = matches any value
.unreachable_covered_by_one = matches all the values already
.unreachable_covered_by_many = matches some of the same values
mir_build_unsafe_fn_safe_body = an unsafe function restricts its caller, but its body is safe by default
mir_build_unsafe_not_inherited = items do not inherit unsafety from separate enclosing items