Skip to content

Commit 08b5783

Browse files
compiler: use is_rustic_abi in mir_transform
no functional changes.
1 parent 1f32f7b commit 08b5783

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: compiler/rustc_mir_transform/src/ffi_unwind_calls.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ fn has_ffi_unwind_calls(tcx: TyCtxt<'_>, local_def_id: LocalDefId) -> bool {
5353

5454
// Rust calls cannot themselves create foreign unwinds.
5555
// We assume this is true for intrinsics as well.
56-
if let ExternAbi::RustIntrinsic
57-
| ExternAbi::Rust
58-
| ExternAbi::RustCall
59-
| ExternAbi::RustCold = sig.abi()
60-
{
56+
if sig.abi().is_rustic_abi() {
6157
continue;
6258
};
6359

0 commit comments

Comments
 (0)