Skip to content

Commit 5ae3a53

Browse files
committed
Revert box_free unwind action
1 parent de3f8a1 commit 5ae3a53

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/rustc_mir_dataflow/src/elaborate_drops.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,11 @@ where
946946
args,
947947
destination: unit_temp,
948948
target: Some(target),
949-
unwind: UnwindAction::Terminate,
949+
unwind: if unwind.is_cleanup() {
950+
UnwindAction::Terminate
951+
} else {
952+
UnwindAction::Continue
953+
},
950954
from_hir_call: false,
951955
fn_span: self.source_info.span,
952956
}; // FIXME(#43234)

0 commit comments

Comments
 (0)