Initial cleanups of InlineAsmCtxt

This commit is contained in:
Michael Goulet
2025-02-17 16:14:34 +00:00
parent 2a6daaf89a
commit 37060aae13
3 changed files with 39 additions and 60 deletions

View File

@@ -900,7 +900,7 @@ pub(crate) fn check_item_type(tcx: TyCtxt<'_>, def_id: LocalDefId) {
let hir::ItemKind::GlobalAsm { asm } = it.kind else {
span_bug!(it.span, "DefKind::GlobalAsm but got {:#?}", it)
};
InlineAsmCtxt::new_global_asm(tcx).check_asm(asm, def_id);
InlineAsmCtxt::new_global_asm(tcx, def_id).check_asm(asm);
}
_ => {}
}