diff options
| author | Gary Guo <gary@garyguo.net> | 2023-06-23 17:48:54 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2023-06-23 17:48:54 +0100 |
| commit | c462291e0c864b7d0e218bde12c9560f99cede3b (patch) | |
| tree | 82cd460586d7293ce0c80888c7a4bcb1f06b1489 | |
| parent | 54d6738a8df74382c439e1dfb9ce4e2382d7742e (diff) | |
| download | rust-c462291e0c864b7d0e218bde12c9560f99cede3b.tar.gz rust-c462291e0c864b7d0e218bde12c9560f99cede3b.zip | |
Make `UnwindAction::Continue` explicit in MIR dump
| -rw-r--r-- | compiler/rustc_middle/src/mir/terminator.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/terminator.rs b/compiler/rustc_middle/src/mir/terminator.rs index 561ef371b09..1b9c1438f40 100644 --- a/compiler/rustc_middle/src/mir/terminator.rs +++ b/compiler/rustc_middle/src/mir/terminator.rs @@ -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"), }; |
