about summary refs log tree commit diff
path: root/compiler/rustc_ast
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2025-05-09 21:27:18 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2025-07-26 00:42:21 +0100
commit1f4561b63d1bca64675373385ed8292dcd23e7e6 (patch)
tree6d289869751a69b07ec571284ef2eaa3a2fcc699 /compiler/rustc_ast
parentb56aaec52bc0fa35591a872fb4aac81f606e265c (diff)
downloadrust-1f4561b63d1bca64675373385ed8292dcd23e7e6.tar.gz
rust-1f4561b63d1bca64675373385ed8292dcd23e7e6.zip
Don't lint against named labels in `naked_asm!`
Naked functions are allowed to define global labels, just like
`global_asm!`.
Diffstat (limited to 'compiler/rustc_ast')
-rw-r--r--compiler/rustc_ast/src/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index 97e07095875..984b280e81b 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -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,