Skip to content

Commit 328696c

Browse files
cjgillotRalfJung
andcommitted
Update compiler/rustc_middle/src/mir/syntax.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent fb1f7f7 commit 328696c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_middle/src/mir/syntax.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,8 @@ pub enum TerminatorKind<'tcx> {
675675
/// When overflow checking is disabled and this is run-time MIR (as opposed to compile-time MIR
676676
/// that is used for CTFE), the following variants of this terminator behave as `goto target`:
677677
/// - `OverflowNeg(..)`,
678-
/// - `Overflow(op, ..)` if op is a checkable operation (add, sub, mul, shl, shr).
678+
/// - `Overflow(op, ..)` if op is a "checkable" operation (add, sub, mul, shl, shr, but NOT
679+
/// div or rem).
679680
Assert {
680681
cond: Operand<'tcx>,
681682
expected: bool,

0 commit comments

Comments
 (0)