diff options
| author | Gary Guo <gary@garyguo.net> | 2022-05-18 03:51:52 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2022-06-08 21:32:41 +0100 |
| commit | 6ef203388483688b0a4598efbc63ee7295bff975 (patch) | |
| tree | 987623cb6b1214023462a9cb6e69f1dbb6471c08 /compiler/rustc_interface/src | |
| parent | 09d52bc5d4260bac8b9a2ea8ac7a07c5c72906f1 (diff) | |
| download | rust-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.rs | 1 |
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() |
