about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/messages.ftl
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2023-11-27 03:47:49 +0100
committerNadrieril <nadrieril+git@gmail.com>2023-12-03 12:25:46 +0100
commit06a8ed10b627d04c9e91c41064c38745374acc71 (patch)
tree628ff5eae9837097b2949a7f510493dc2a866817 /compiler/rustc_ast_lowering/messages.ftl
parenta2dcb3a6d9aead3964b3b1cdf814dc7eb9c5d8ed (diff)
downloadrust-06a8ed10b627d04c9e91c41064c38745374acc71.tar.gz
rust-06a8ed10b627d04c9e91c41064c38745374acc71.zip
Disallow guards on never patterns
Diffstat (limited to 'compiler/rustc_ast_lowering/messages.ftl')
-rw-r--r--compiler/rustc_ast_lowering/messages.ftl4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/messages.ftl b/compiler/rustc_ast_lowering/messages.ftl
index 2a519b418e6..ecbe8cc6aec 100644
--- a/compiler/rustc_ast_lowering/messages.ftl
+++ b/compiler/rustc_ast_lowering/messages.ftl
@@ -108,6 +108,10 @@ ast_lowering_misplaced_impl_trait =
 ast_lowering_misplaced_relax_trait_bound =
     `?Trait` bounds are only permitted at the point where a type parameter is declared
 
+ast_lowering_never_pattern_with_guard =
+    a guard on a never pattern will never be run
+    .suggestion = remove this guard
+
 ast_lowering_not_supported_for_lifetime_binder_async_closure =
     `for<...>` binders on `async` closures are not currently supported