mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
docs: Add overview of rustc_middle::mir::TerminatorKind
This commit is contained in:
parent
049308cf8b
commit
fb579435a5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user