Skip to content

Commit 9dd86e6

Browse files
Make asm a named field
1 parent 410a68a commit 9dd86e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/global_asm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::prelude::*;
1616

1717
pub(crate) fn codegen_global_asm_item(tcx: TyCtxt<'_>, global_asm: &mut String, item_id: ItemId) {
1818
let item = tcx.hir_item(item_id);
19-
if let rustc_hir::ItemKind::GlobalAsm(asm) = item.kind {
19+
if let rustc_hir::ItemKind::GlobalAsm { asm } = item.kind {
2020
let is_x86 =
2121
matches!(tcx.sess.asm_arch.unwrap(), InlineAsmArch::X86 | InlineAsmArch::X86_64);
2222

0 commit comments

Comments
 (0)