Skip to content

Commit

Permalink
Make UnwindAction::Continue explicit in MIR dump
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Jun 23, 2023
1 parent 54d6738 commit c462291
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/rustc_middle/src/mir/terminator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ impl<'tcx> Debug for TerminatorKind<'tcx> {

let unwind = match self.unwind() {
// Not needed or included in successors
None | Some(UnwindAction::Continue) | Some(UnwindAction::Cleanup(_)) => None,
None | Some(UnwindAction::Cleanup(_)) => None,
Some(UnwindAction::Continue) => Some("unwind continue"),
Some(UnwindAction::Unreachable) => Some("unwind unreachable"),
Some(UnwindAction::Terminate) => Some("unwind terminate"),
};
Expand Down

0 comments on commit c462291

Please sign in to comment.