Don't lint against named labels in naked_asm!

Naked functions are allowed to define global labels, just like
`global_asm!`.
This commit is contained in:
Amanieu d'Antras
2025-05-09 21:27:18 +01:00
parent b56aaec52b
commit 1f4561b63d
4 changed files with 48 additions and 32 deletions

View File

@@ -2849,7 +2849,7 @@ impl InlineAsmOperand {
}
}
#[derive(Clone, Copy, Encodable, Decodable, Debug, HashStable_Generic, Walkable)]
#[derive(Clone, Copy, Encodable, Decodable, Debug, HashStable_Generic, Walkable, PartialEq, Eq)]
pub enum AsmMacro {
/// The `asm!` macro
Asm,