summaryrefslogtreecommitdiff
path: root/compiler/rustc_mir_dataflow
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2022-10-10 22:40:40 +0100
committerGary Guo <gary@garyguo.net>2023-04-06 09:34:16 +0100
commit0a5dac3062ffc80a283943e49e2ada08f0b0eaf7 (patch)
tree5110a2f63038db9e3e03883b3d3b5685452a5719 /compiler/rustc_mir_dataflow
parent5e6ed132fa8a1bd1ec6b365e61e9e290528c90f5 (diff)
downloadrust-0a5dac3062ffc80a283943e49e2ada08f0b0eaf7.tar.gz
Add `UnwindAction::Terminate`
Diffstat (limited to 'compiler/rustc_mir_dataflow')
-rw-r--r--compiler/rustc_mir_dataflow/src/elaborate_drops.rs4
1 files changed, 2 insertions, 2 deletions
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)