about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-11-20 04:15:37 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-12-04 20:29:36 +0000
commitfb2f6a44c05c017139ef0266683fdfe3c66c4220 (patch)
tree3bba270872b390f31fef8ca7fb3c4d1306dcd801 /compiler
parenta6040bc230bc7b26f413d7fbf60402e6e7940192 (diff)
downloadrust-fb2f6a44c05c017139ef0266683fdfe3c66c4220.tar.gz
rust-fb2f6a44c05c017139ef0266683fdfe3c66c4220.zip
Reword message for non-structural type constant in pattern
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_mir_build/messages.ftl3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_mir_build/messages.ftl b/compiler/rustc_mir_build/messages.ftl
index 1e6b32bf605..df51388c772 100644
--- a/compiler/rustc_mir_build/messages.ftl
+++ b/compiler/rustc_mir_build/messages.ftl
@@ -273,8 +273,7 @@ mir_build_non_exhaustive_patterns_type_not_empty = non-exhaustive patterns: type
     .suggestion = ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
     .help = ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
 
-mir_build_non_partial_eq_match =
-    to use a constant of type `{$non_peq_ty}` in a pattern, the type must implement `PartialEq`
+mir_build_non_partial_eq_match = constant of non-structural type `{$non_peq_ty}` in a pattern
     .label = constant of non-structural type
 
 mir_build_pattern_not_covered = refutable pattern in {$origin}