@@ -770,9 +770,9 @@ impl<'cx, 'tcx, R> rustc_mir_dataflow::ResultsVisitor<'cx, 'tcx, R> for MirBorro
770770 }
771771
772772 TerminatorKind :: Goto { target : _ }
773- | TerminatorKind :: Terminate
773+ | TerminatorKind :: UnwindTerminate
774774 | TerminatorKind :: Unreachable
775- | TerminatorKind :: Resume
775+ | TerminatorKind :: UnwindResume
776776 | TerminatorKind :: Return
777777 | TerminatorKind :: GeneratorDrop
778778 | TerminatorKind :: FalseEdge { real_target : _, imaginary_target : _ }
@@ -803,7 +803,9 @@ impl<'cx, 'tcx, R> rustc_mir_dataflow::ResultsVisitor<'cx, 'tcx, R> for MirBorro
803803 }
804804 }
805805
806- TerminatorKind :: Resume | TerminatorKind :: Return | TerminatorKind :: GeneratorDrop => {
806+ TerminatorKind :: UnwindResume
807+ | TerminatorKind :: Return
808+ | TerminatorKind :: GeneratorDrop => {
807809 // Returning from the function implicitly kills storage for all locals and statics.
808810 // Often, the storage will already have been killed by an explicit
809811 // StorageDead, but we don't always emit those (notably on unwind paths),
@@ -815,7 +817,7 @@ impl<'cx, 'tcx, R> rustc_mir_dataflow::ResultsVisitor<'cx, 'tcx, R> for MirBorro
815817 }
816818 }
817819
818- TerminatorKind :: Terminate
820+ TerminatorKind :: UnwindTerminate
819821 | TerminatorKind :: Assert { .. }
820822 | TerminatorKind :: Call { .. }
821823 | TerminatorKind :: Drop { .. }
0 commit comments