1
Fork 0

Forbid asm unwind to work with labels

This commit is contained in:
Gary Guo 2023-12-26 04:44:22 +00:00
parent 5e4e3d790b
commit 31f078ea99
3 changed files with 16 additions and 0 deletions

View file

@ -787,6 +787,13 @@ pub(crate) struct AsmNoReturn {
pub(crate) outputs_sp: Vec<Span>,
}
#[derive(Diagnostic)]
#[diag(builtin_macros_asm_mayunwind)]
pub(crate) struct AsmMayUnwind {
#[primary_span]
pub(crate) labels_sp: Vec<Span>,
}
#[derive(Diagnostic)]
#[diag(builtin_macros_global_asm_clobber_abi)]
pub(crate) struct GlobalAsmClobberAbi {