diff options
| author | Michael Goulet <michael@errs.io> | 2025-06-24 22:29:54 +0000 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2025-07-17 14:02:06 -0700 |
| commit | c9ba9aab8ca58ab079e9c892eabd1bff340eb386 (patch) | |
| tree | 4c0db5632a4c920d0d2398b91684d4299a11af3a /compiler/rustc_middle | |
| parent | c24557234c6531af7d1cfcc8f518ec4aad55d823 (diff) | |
| download | rust-c9ba9aab8ca58ab079e9c892eabd1bff340eb386.tar.gz rust-c9ba9aab8ca58ab079e9c892eabd1bff340eb386.zip | |
Add rust-invalid ABI
(cherry picked from commit e245570def155191b61f73647eb543dd45685b2f)
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/ty/layout.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/layout.rs b/compiler/rustc_middle/src/ty/layout.rs index 13c281a6182..5cb943b0d8c 100644 --- a/compiler/rustc_middle/src/ty/layout.rs +++ b/compiler/rustc_middle/src/ty/layout.rs @@ -1253,7 +1253,8 @@ pub fn fn_can_unwind(tcx: TyCtxt<'_>, fn_def_id: Option<DefId>, abi: ExternAbi) | CCmseNonSecureCall | CCmseNonSecureEntry | Custom - | Unadjusted => false, + | Unadjusted + | RustInvalid => false, Rust | RustCall | RustCold => tcx.sess.panic_strategy() == PanicStrategy::Unwind, } } |
