compiler: use is_rustic_abi
in mir_transform
no functional changes.
This commit is contained in:
parent
1f32f7bd78
commit
08b578330e
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue