Skip to content

Commit 47de8e9

Browse files
Rollup merge of rust-lang#98983 - pierwill:patch-3, r=RalfJung
docs: Add overview of `rustc_middle::mir::TerminatorKind`
2 parents e8ba113 + fb57943 commit 47de8e9

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)