Skip to content

Commit c462291

Browse files
committed
Make UnwindAction::Continue explicit in MIR dump
1 parent 54d6738 commit c462291

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_middle/src/mir/terminator.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ impl<'tcx> Debug for TerminatorKind<'tcx> {
272272

273273
let unwind = match self.unwind() {
274274
// Not needed or included in successors
275-
None | Some(UnwindAction::Continue) | Some(UnwindAction::Cleanup(_)) => None,
275+
None | Some(UnwindAction::Cleanup(_)) => None,
276+
Some(UnwindAction::Continue) => Some("unwind continue"),
276277
Some(UnwindAction::Unreachable) => Some("unwind unreachable"),
277278
Some(UnwindAction::Terminate) => Some("unwind terminate"),
278279
};

0 commit comments

Comments
 (0)