From 0a5dac3062ffc80a283943e49e2ada08f0b0eaf7 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Mon, 10 Oct 2022 22:40:40 +0100 Subject: Add `UnwindAction::Terminate` --- compiler/rustc_mir_dataflow/src/elaborate_drops.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_mir_dataflow/src') diff --git a/compiler/rustc_mir_dataflow/src/elaborate_drops.rs b/compiler/rustc_mir_dataflow/src/elaborate_drops.rs index f4801645060..ba51adee308 100644 --- a/compiler/rustc_mir_dataflow/src/elaborate_drops.rs +++ b/compiler/rustc_mir_dataflow/src/elaborate_drops.rs @@ -80,7 +80,7 @@ impl Unwind { fn into_action(self) -> UnwindAction { match self { Unwind::To(bb) => UnwindAction::Cleanup(bb), - Unwind::InCleanup => UnwindAction::Continue, + Unwind::InCleanup => UnwindAction::Terminate, } } @@ -946,7 +946,7 @@ where args, destination: unit_temp, target: Some(target), - unwind: UnwindAction::Unreachable, + unwind: UnwindAction::Terminate, from_hir_call: false, fn_span: self.source_info.span, }; // FIXME(#43234) -- cgit 1.4.1-3-g733a5