We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 308efaf + 0854781 commit 72c0c08Copy full SHA for 72c0c08
1 file changed
compiler/rustc_const_eval/src/interpret/terminator.rs
@@ -39,7 +39,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
39
let mut target_block = targets.otherwise();
40
41
for (const_int, target) in targets.iter() {
42
- // Compare using binary_op, to also support pointer values
+ // Compare using MIR BinOp::Eq, to also support pointer values.
43
+ // (Avoiding `self.binary_op` as that does some redundant layout computation.)
44
let res = self
45
.overflowing_binary_op(
46
mir::BinOp::Eq,
0 commit comments