Rollup merge of #98983 - pierwill:patch-3, r=RalfJung
docs: Add overview of `rustc_middle::mir::TerminatorKind`
This commit is contained in:
commit
47de8e96f8
1 changed files with 2 additions and 0 deletions
|
@ -396,6 +396,8 @@ pub struct CopyNonOverlapping<'tcx> {
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// Terminators
|
// 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
|
/// 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
|
/// `-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
|
/// terminators have a `cleanup: Option<BasicBlock>` field on them. If stack unwinding occurs, then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue