1
Fork 0

Rollup merge of #112972 - nbdd0121:mir, r=davidtwco

Make `UnwindAction::Continue` explicit in MIR dump

Makes it easier to spot unwinding related issues in MIR by making `UnwindAction::Continue` explicit, just like all other `UnwindAction`s.
This commit is contained in:
Matthias Krüger 2023-06-27 22:10:14 +02:00 committed by GitHub
commit 9ec676dd7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
169 changed files with 346 additions and 345 deletions

View file

@ -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"),
};