diff options
| author | bors <bors@rust-lang.org> | 2024-09-14 07:04:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-14 07:04:57 +0000 |
| commit | f9567d0f2bc8f6f7f45c42d432a5dbbd161a6104 (patch) | |
| tree | f9fdc646af42889ab9d89f13694e1a6d96a21cdf /compiler/rustc_mir_build/messages.ftl | |
| parent | 4a47e8e449da0d4b8252483ecb831c842ff59aa2 (diff) | |
| parent | 1f696384005c27c49ee0e31b1b9031d61b89be6b (diff) | |
| download | rust-f9567d0f2bc8f6f7f45c42d432a5dbbd161a6104.tar.gz rust-f9567d0f2bc8f6f7f45c42d432a5dbbd161a6104.zip | |
Auto merge of #128991 - Nadrieril:rustfix-unreachable-pattern, r=compiler-errors
Add a machine-applicable suggestion to "unreachable pattern"
Diffstat (limited to 'compiler/rustc_mir_build/messages.ftl')
| -rw-r--r-- | compiler/rustc_mir_build/messages.ftl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_mir_build/messages.ftl b/compiler/rustc_mir_build/messages.ftl index 7a10e627ccd..1c4e9fd11cb 100644 --- a/compiler/rustc_mir_build/messages.ftl +++ b/compiler/rustc_mir_build/messages.ftl @@ -338,6 +338,7 @@ mir_build_unreachable_pattern = unreachable pattern .unreachable_covered_by_catchall = matches any value .unreachable_covered_by_one = matches all the relevant values .unreachable_covered_by_many = multiple earlier patterns match some of the same values + .suggestion = remove the match arm 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 |
