about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2022-05-18 03:51:52 +0100
committerGary Guo <gary@garyguo.net>2022-06-08 21:32:41 +0100
commit6ef203388483688b0a4598efbc63ee7295bff975 (patch)
tree987623cb6b1214023462a9cb6e69f1dbb6471c08 /compiler/rustc_interface/src
parent09d52bc5d4260bac8b9a2ea8ac7a07c5c72906f1 (diff)
downloadrust-6ef203388483688b0a4598efbc63ee7295bff975.tar.gz
rust-6ef203388483688b0a4598efbc63ee7295bff975.zip
Fix FFI-unwind unsoundness with mixed panic mode
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 3c867e308c4..ef9c7859dbb 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -944,6 +944,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
             if !tcx.sess.opts.debugging_opts.thir_unsafeck {
                 rustc_mir_transform::check_unsafety::check_unsafety(tcx, def_id);
             }
+            tcx.ensure().has_ffi_unwind_calls(def_id);
 
             if tcx.hir().body_const_context(def_id).is_some() {
                 tcx.ensure()