docs: Add overview of rustc_middle::mir::TerminatorKind

This commit is contained in:
pierwill
2022-07-06 12:48:19 -05:00
committed by GitHub
parent 049308cf8b
commit fb579435a5

View File

@@ -396,6 +396,8 @@ pub struct CopyNonOverlapping<'tcx> {
///////////////////////////////////////////////////////////////////////////
// Terminators
/// The various kinds of terminators, representing ways of exiting from a basic block.
///
/// A note on unwinding: Panics may occur during the execution of some terminators. Depending on the
/// `-C panic` flag, this may either cause the program to abort or the call stack to unwind. Such
/// terminators have a `cleanup: Option<BasicBlock>` field on them. If stack unwinding occurs, then