1
Fork 0

compiler: use is_rustic_abi in mir_transform

no functional changes.
This commit is contained in:
Jubilee Young 2025-03-04 16:38:19 -08:00
parent 1f32f7bd78
commit 08b578330e

View file

@ -53,11 +53,7 @@ fn has_ffi_unwind_calls(tcx: TyCtxt<'_>, local_def_id: LocalDefId) -> bool {
// Rust calls cannot themselves create foreign unwinds.
// We assume this is true for intrinsics as well.
if let ExternAbi::RustIntrinsic
| ExternAbi::Rust
| ExternAbi::RustCall
| ExternAbi::RustCold = sig.abi()
{
if sig.abi().is_rustic_abi() {
continue;
};