1
Fork 0

improve error message when global asm uses inline asm operands

This commit is contained in:
Folkert 2024-07-28 15:11:14 +02:00
parent 3954398882
commit 571f7b6589
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 91 additions and 15 deletions

View file

@ -856,6 +856,15 @@ pub(crate) struct GlobalAsmUnsupportedOption {
pub(crate) full_span: Span,
}
#[derive(Diagnostic)]
#[diag(builtin_macros_global_asm_unsupported_operand)]
pub(crate) struct GlobalAsmUnsupportedOperand<'a> {
#[primary_span]
#[label]
pub(crate) span: Span,
pub(crate) symbol: &'a str,
}
#[derive(Diagnostic)]
#[diag(builtin_macros_test_runner_invalid)]
pub(crate) struct TestRunnerInvalid {