diff options
| author | Michael Goulet <michael@errs.io> | 2025-02-17 05:33:06 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-02-22 00:05:09 +0000 |
| commit | 9dd86e64cc19d24d5e62a028cae4515a1fbe95c2 (patch) | |
| tree | 0cbb92e3c62fddb7a65a455d513808430a886909 | |
| parent | 410a68a907b14db7eaa2152eccbbcef9ae357f7c (diff) | |
| download | rust-9dd86e64cc19d24d5e62a028cae4515a1fbe95c2.tar.gz rust-9dd86e64cc19d24d5e62a028cae4515a1fbe95c2.zip | |
Make asm a named field
| -rw-r--r-- | src/global_asm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/global_asm.rs b/src/global_asm.rs index 54745b0d8c1..0a23f63d6ba 100644 --- a/src/global_asm.rs +++ b/src/global_asm.rs @@ -16,7 +16,7 @@ use crate::prelude::*; pub(crate) fn codegen_global_asm_item(tcx: TyCtxt<'_>, global_asm: &mut String, item_id: ItemId) { let item = tcx.hir_item(item_id); - if let rustc_hir::ItemKind::GlobalAsm(asm) = item.kind { + if let rustc_hir::ItemKind::GlobalAsm { asm } = item.kind { let is_x86 = matches!(tcx.sess.asm_arch.unwrap(), InlineAsmArch::X86 | InlineAsmArch::X86_64); |
