Skip to content

Commit a5054e3

Browse files
committed
comment update
1 parent b85762f commit a5054e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/interpret/operator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
329329
}
330330
_ if left.layout.ty.is_any_ptr() => {
331331
// The RHS type must be a `pointer` *or an integer type* (for `Offset`).
332-
// (This is workaround for the issue #91636)
332+
// (Even when both sides are pointers, their type might differ, see issue #91636)
333333
assert!(
334334
right.layout.ty.is_any_ptr() || right.layout.ty.is_integral(),
335335
"Unexpected types for BinOp: {:?} {:?} {:?}",

0 commit comments

Comments
 (0)