improve error message when global asm uses inline asm operands
This commit is contained in:
parent
3954398882
commit
571f7b6589
5 changed files with 91 additions and 15 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue