Skip to content

Commit fb57943

Browse files
authored
docs: Add overview of rustc_middle::mir::TerminatorKind
1 parent 049308c commit fb57943

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/mir/syntax.rs

+2
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ pub struct CopyNonOverlapping<'tcx> {
396396
///////////////////////////////////////////////////////////////////////////
397397
// Terminators
398398

399+
/// The various kinds of terminators, representing ways of exiting from a basic block.
400+
///
399401
/// A note on unwinding: Panics may occur during the execution of some terminators. Depending on the
400402
/// `-C panic` flag, this may either cause the program to abort or the call stack to unwind. Such
401403
/// terminators have a `cleanup: Option<BasicBlock>` field on them. If stack unwinding occurs, then

0 commit comments

Comments
 (0)