about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/errors.rs
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2023-12-25 20:53:01 +0000
committerGary Guo <gary@garyguo.net>2024-02-24 18:49:39 +0000
commit93fa8579c6430d54525e1905eafff4dbcf9b31b0 (patch)
tree9067a6612b4f7d05213d708c49e6a64390be914d /compiler/rustc_ast_lowering/src/errors.rs
parent8f359beca4e58bc3ae795a666301a8f47023044c (diff)
downloadrust-93fa8579c6430d54525e1905eafff4dbcf9b31b0.tar.gz
rust-93fa8579c6430d54525e1905eafff4dbcf9b31b0.zip
Add asm label support to AST and HIR
Diffstat (limited to 'compiler/rustc_ast_lowering/src/errors.rs')
-rw-r--r--compiler/rustc_ast_lowering/src/errors.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/errors.rs b/compiler/rustc_ast_lowering/src/errors.rs
index 834409da675..76659216d87 100644
--- a/compiler/rustc_ast_lowering/src/errors.rs
+++ b/compiler/rustc_ast_lowering/src/errors.rs
@@ -263,6 +263,16 @@ pub struct InvalidAsmTemplateModifierSym {
 }
 
 #[derive(Diagnostic, Clone, Copy)]
+#[diag(ast_lowering_invalid_asm_template_modifier_label)]
+pub struct InvalidAsmTemplateModifierLabel {
+    #[primary_span]
+    #[label(ast_lowering_template_modifier)]
+    pub placeholder_span: Span,
+    #[label(ast_lowering_argument)]
+    pub op_span: Span,
+}
+
+#[derive(Diagnostic, Clone, Copy)]
 #[diag(ast_lowering_register_class_only_clobber)]
 pub struct RegisterClassOnlyClobber {
     #[primary_span]