about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/messages.ftl
diff options
context:
space:
mode:
authorFolkert de Vries <folkert@folkertdev.nl>2025-01-29 11:57:37 +0100
committerFolkert de Vries <folkert@folkertdev.nl>2025-01-29 12:15:12 +0100
commitfbd30ea35fb79d73faa9d5b3feae391fed5336c8 (patch)
tree43bf93169a47f84e8443e1937f915a47e1a63da7 /compiler/rustc_ast_lowering/messages.ftl
parentcf577f34c47937ccb9983186eca5f8719da585f4 (diff)
downloadrust-fbd30ea35fb79d73faa9d5b3feae391fed5336c8.tar.gz
rust-fbd30ea35fb79d73faa9d5b3feae391fed5336c8.zip
show supported register classes
in inline assembly, show the supported register classes when an invalid one is found
Diffstat (limited to 'compiler/rustc_ast_lowering/messages.ftl')
-rw-r--r--compiler/rustc_ast_lowering/messages.ftl3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/messages.ftl b/compiler/rustc_ast_lowering/messages.ftl
index f96c9fe8e32..1b91c33742d 100644
--- a/compiler/rustc_ast_lowering/messages.ftl
+++ b/compiler/rustc_ast_lowering/messages.ftl
@@ -112,7 +112,8 @@ ast_lowering_invalid_register =
     invalid register `{$reg}`: {$error}
 
 ast_lowering_invalid_register_class =
-    invalid register class `{$reg_class}`: {$error}
+    invalid register class `{$reg_class}`: unknown register class
+    .note = the following register classes are supported on this target: {$supported_register_classes}
 
 ast_lowering_match_arm_with_no_body =
     `match` arm with no body