Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d0cc00f

Browse files
committed
Add comment.
1 parent 86dbcb5 commit d0cc00f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_middle/src/mir/syntax.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,9 @@ pub enum TerminatorKind<'tcx> {
671671
/// as parameters, and `None` for the destination. Keep in mind that the `cleanup` path is not
672672
/// necessarily executed even in the case of a panic, for example in `-C panic=abort`. If the
673673
/// assertion does not fail, execution continues at the specified basic block.
674+
///
675+
/// When overflow checking is disabled and we are generating run-time code, the `Overflow*`
676+
/// variants of this terminator are codegened as simple `goto target`.
674677
Assert {
675678
cond: Operand<'tcx>,
676679
expected: bool,

0 commit comments

Comments
 (0)