From e1c5073c07e52ebf9e8217d8bb4aaf795eda7a49 Mon Sep 17 00:00:00 2001 From: TheOddGarlic Date: Mon, 29 Aug 2022 10:06:50 +0300 Subject: Migrate pattern bindings with variant name lint --- compiler/rustc_error_messages/locales/en-US/mir_build.ftl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/rustc_error_messages') 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 -- cgit 1.4.1-3-g733a5