about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorouz-a <oguz.agcayazi@gmail.com>2021-12-14 19:29:29 +0300
committerouz-a <oguz.agcayazi@gmail.com>2021-12-14 19:29:29 +0300
commita5054e3858150384c30ce71afc76ca9c57c8cec2 (patch)
tree0f784dbcdd6320271e2c5b1609c9e6c8e1ba0867 /compiler
parentb85762f436a2ef12e2a0a36ac3a61d680871b3cc (diff)
downloadrust-a5054e3858150384c30ce71afc76ca9c57c8cec2.tar.gz
rust-a5054e3858150384c30ce71afc76ca9c57c8cec2.zip
comment update
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_const_eval/src/interpret/operator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/operator.rs b/compiler/rustc_const_eval/src/interpret/operator.rs
index 3b8b65a50d2..48c90e1881a 100644
--- a/compiler/rustc_const_eval/src/interpret/operator.rs
+++ b/compiler/rustc_const_eval/src/interpret/operator.rs
@@ -329,7 +329,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
             }
             _ if left.layout.ty.is_any_ptr() => {
                 // The RHS type must be a `pointer` *or an integer type* (for `Offset`).
-                // (This is workaround for the issue #91636)
+                // (Even when both sides are pointers, their type might differ, see issue #91636)
                 assert!(
                     right.layout.ty.is_any_ptr() || right.layout.ty.is_integral(),
                     "Unexpected types for BinOp: {:?} {:?} {:?}",