diff options
| author | TheOddGarlic <umutinanerdogan@pm.me> | 2022-08-29 10:06:50 +0300 |
|---|---|---|
| committer | mejrs <> | 2022-12-17 19:08:25 +0100 |
| commit | e1c5073c07e52ebf9e8217d8bb4aaf795eda7a49 (patch) | |
| tree | 91d18ec2f3758331d24913b1e16c086c93dd64ef /compiler/rustc_error_messages | |
| parent | 6f82a00aa1a3dc26e2ba919e539bbc2504ebf22a (diff) | |
| download | rust-e1c5073c07e52ebf9e8217d8bb4aaf795eda7a49.tar.gz rust-e1c5073c07e52ebf9e8217d8bb4aaf795eda7a49.zip | |
Migrate pattern bindings with variant name lint
Diffstat (limited to 'compiler/rustc_error_messages')
| -rw-r--r-- | compiler/rustc_error_messages/locales/en-US/mir_build.ftl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/mir_build.ftl b/compiler/rustc_error_messages/locales/en-US/mir_build.ftl index 280b82b4ea4..539794086ee 100644 --- a/compiler/rustc_error_messages/locales/en-US/mir_build.ftl +++ b/compiler/rustc_error_messages/locales/en-US/mir_build.ftl @@ -233,3 +233,7 @@ mir_build_trailing_irrefutable_let_patterns = trailing irrefutable {$count -> [one] it *[other] them } into the body + +mir_build_bindings_with_variant_name = + pattern binding `{$ident}` is named the same as one of the variants of the type `{$ty_path}` + .suggestion = to match on the variant, qualify the path |
