about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/messages.ftl
diff options
context:
space:
mode:
authorLuca Versari <veluca93@gmail.com>2024-09-16 11:56:22 +0200
committerLuca Versari <veluca93@gmail.com>2024-11-16 01:07:51 +0100
commitb462c68aee956602408373975d3ca898e464030b (patch)
treefcb0b903238a67ca25d22c8bf7212b99629dc5a2 /compiler/rustc_ast_lowering/messages.ftl
parentce40196577ecc0b72f6de7e2c8e43fdc728fb69a (diff)
downloadrust-b462c68aee956602408373975d3ca898e464030b.tar.gz
rust-b462c68aee956602408373975d3ca898e464030b.zip
Fix ICE when passing DefId-creating args to legacy_const_generics.
Diffstat (limited to 'compiler/rustc_ast_lowering/messages.ftl')
-rw-r--r--compiler/rustc_ast_lowering/messages.ftl6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/messages.ftl b/compiler/rustc_ast_lowering/messages.ftl
index a5ee6713be8..f704320c71d 100644
--- a/compiler/rustc_ast_lowering/messages.ftl
+++ b/compiler/rustc_ast_lowering/messages.ftl
@@ -103,6 +103,12 @@ ast_lowering_invalid_asm_template_modifier_reg_class =
 ast_lowering_invalid_asm_template_modifier_sym =
     asm template modifiers are not allowed for `sym` arguments
 
+ast_lowering_invalid_legacy_const_generic_arg =
+    invalid argument to a legacy const generic: cannot have const blocks, closures, async blocks or items
+
+ast_lowering_invalid_legacy_const_generic_arg_suggestion =
+    try using a const generic argument instead
+
 ast_lowering_invalid_register =
     invalid register `{$reg}`: {$error}